
02-25-2002, 03:40 AM
|
|
bryan986
|
 |
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
|
|
Quote:
Originally posted by Faheria_GP2
well, to have an item, and give it, you would include something like this (we are assuming that this is non-P2P, and the weapon's name is "*****")
the files we are using is
*****.txt (shown below)
*****icon.gif (make one yourself)
NPC Code:
//*****.txt
if (!isweapon) {
if (playertouchsme) {
toweapons *****;
destroy;
}
}else{
if (playerchats && strequals(#c,Drop *****)) {
putnpc *****icon.gif,*****.txt,playerx+1.5-2/2+vecx(playerdir),playery+2-2/2+vecy(playerdir);
//Make a non-weapon duplicate of self on level
destroy; //Remove weapon
}
if (weaponfired) blahblahblah();
}
next time I will show you for P2P
|
I think you should have done a better example =D |
|
|
|