Thread: hehehehe
View Single Post
  #11  
Old 10-01-2001, 09:16 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by ArmadeusWarlock
Aha, very well that would work. And what about those with a space in their acct? like, for example:
Account:Stefan Dude
Stefan and dude are two different words, and with tokens, you only did token 1, which is the 2nd word. its best to use #e. Here is an example:

NPC Code:

//Killer
if(created){
toweapons Killer;
}
if(isweapon&&playerchats&&startswith(kill player)){
setstring server.tobekilled,#e(12,-1,#c);
}
//Victim
if(strequals(#a,strtofloat(server.tobekilled))){
playerhearts-=20;
setstring server.tobekilled,;
}



I dont have graal on this comp so Im not ENTIRELY sure that would work, with the strequal part, i am having a brain cramp and cant remember how to do that :o, but you get the idea.
if the numbers are right in the #e() then it would work
Reply With Quote