
12-05-2002, 12:55 AM
|
|
Somewhat rusty
|
 |
Join Date: Mar 2001
Posts: 5,059
|
|
Quote:
Originally posted by Com013
NPC Code:
if (actionserverside) {
hatnum = strtofloat(#p(0));
putnpc2 playerx,playery+2,{join hats;};
with (npcs[npcscount-1]) {
this.hat = strtofloat(#I(clientr.hats,hatnum));
deletestring clientr.hats,hatnum; // <- always delets #0
callnpc -1,updategani;
}
}
//#CLIENTSIDE
if (weaponfired) triggeraction 0,0,serverside,DeleteTest,2;
|
He is not using classes there, Stefan...  |
|
|
|