View Single Post
  #5  
Old 02-06-2004, 06:12 PM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
The actionclientside action only works for weapon npcs.

NPC Code:

Code of weapon: "Bank"
if (actionserverside) {
if (strequals(#p(0),deposit)) {
if (strtofloat(#s(clientr.money))>=strtofloat(#p(1)) {
setstring clientr.money,#v(strtofloat(#s(clientr.money))-strtofloat(#p(1)));
playerrupees+=strtofloat(#p(1));
triggeraction 0,0,clientside,Bank,done;
}
}
}
//#CLIENTSIDE
if (weaponfired) {
tokenize #c;
triggeraction 0,0,serverside,#t(0),#t(1);
}
if (actionclientside) {
if (strequals(#p(0),done)) {
showtext -1,playerx+1.5,playery-.5,,Arial,bc,Done!;
changeimgzoom -1,0.7;
}
}



dunno if that works, just did it in the reply box
Reply With Quote