View Single Post
  #5  
Old 02-05-2004, 02:22 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally posted by Termina_Owner
NPCW:

NPC Code:

if (serverside){
if (strequals(#p(0),a)){
with (getplayer(#p(1))){
setstring client.a,1;
}
}
if (strequals(#p(0),b)){
setplayerprop #c,Arg... How can you do this to me?!;
}
}
//#CLIENTSIDE
if (playerenters) timeout = 0.05;
if (timeout){
if (!strequals(#s(client.a),)){
setstring client.a,;
triggeraction 0,0,serverside,NPCW,b;
}
}
if (weaponfired){
triggeraction 0,0,serverside,NPCW,a,#a;
}



A short example... I don't know if you can do that to someone else, but well, this is a detour if you can't.
should be if (actionserverside) and also you can use callnpcs or do a triggeraction and add in the acct as a param and check if the person has that account.
__________________
Reply With Quote