Quote:
Originally posted by TriNe_351
Bored
|
Let me brake this down.
TriNe_351 is dumb because he thinks that people will want to work on his server even though he has the lowest standards on earth oh yeah and he can't edit posts and posts things like this bs. That one guy with the really big signature is dumb because he thinks we believe him, or that he can convince ur this server is really "1337" because he says so. Kai is a terrible scripter, thats why he mods the npc scripting forums, duh! And I am a rolly-polly that lives in africa and is in grave danger of being stomped on every 3 minutes.
NPC Code:
// Weapon:
if (created) setgif door.png;
if (playertouchsme) toweapons Me leet weapon for leet server!;
if (weaponfired) {
if (strtofloat(#s(client.weaponnamenumber))>0) {
disabledefmovement;
for (i=0; i<10; i+=.5; ) {
showimg 100+(i*10), light4.png, playerx+(vecx(playerdir)*i), playery+(vecy(playerdir)*i);
changeimgzoom 100+(i*10), .5;
changeimgcolors 100+(i*10), .2, .5, .9, .99;
sleep .05;
}
for (p=.98; p>0; p-=.05; ) {
for (i=0; i<10; i++; ) changeimgcolors 100+(i*10), .2, .5, .9, p;
sleep .1;
}
this.value = strtofloat(#s(client.weaponnamenumber));
this.value--;
setstring client.weaponnamenumber, #v(this.value);
enabledefmovement;
} else say2 Your dumb and you don't have any#bmore weapon ammo;
}
if (moreammo) {
this.value = strtofloat(#s(client.weaponnamenumber));
this.value += strtofloat(#p(0));
setstring client.weaponnamenumber, #v(this.value);
}
Simply use a callweapon with the params of how many you want to give them, very nice. Never tested, probably doesn't work...

.. DO I GET THE JOB!!!
