
10-01-2001, 09:16 AM
|
|
bryan986
|
 |
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
|
|
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 |
|
|
|