Someone should make a weapon were you say /ganiall (ganihere) and every player in the room does the gani… xD:shrug:
I think you might have over-complicated it in your mind then? Would take only a minute to make…
Either use a level variable or a server-string and an npc in the room that uses setani on a timeout loop.
To detect what the gani would be used, use tokens. In this case you’d want #t(1).
Ahhh, Kondie, you’d have to specify who’s Ganis to set though x.x
if(playerenters && isleader){
setstring level.gani,-1;
}
if(playerchats && startswith(#c,/ganiall)){
tokenize #c;
setstring level.gani,#t(1);
}
if(!strtofloat(#s(level.gani))==-1){
setani #s(level.gani);
setstring level.gani,-1;
}
Something like that xD Now that I think about it, your right xP You don’t need to define who to set…
That above might work :0 Writing it from my iPod though, so…
Lol, you’re retarded sometimes. Setani in an npc will apply to everyone in the level. Derp.
Just put in each npc thats valid the code:
if (playerchats && startswith(/ganiall)){
tokenize #c;
setcharani #t(1),;
}
Job friggin done!
No level strings no nothing, just common sense!!
As far as im aware theres no other way
[QUOTE=tricxta;73549]
Just put in each npc thats valid the code:
if (playerchats && startswith(/ganiall)){
tokenize #c;
setcharani #t(1),;
}
Job friggin done!
No level strings no nothing, just common sense!!
As far as im aware theres no other way
[/QUOTE]
“Someone should make a weapon were you say /ganiall (ganihere) and every player in the room does the gani… xD”
Setcharani x.x
And it would only apply to the player that chats, even if you fix setcharani…?
Alex stop being ignorant and accept you cant manipulate npc ganis like you can there dir,x,y etc…
Its not as simple as doing
for (i=0;i<npcscount;i++)npcs[i].gani=#t(1);
Use my method and everyone lives happily ever after. The end… no more posts from me for this thread
IK xP Was just saying that he asked for players, not NPCS changing their animations :0
.< cant beleive i didnt see that…
ok here you go…
weapon for all players
//Made by tricxta
if (playerenters || timeout){
tokenize #s(server.ganisetter);
this.time=strtofloat(#t(1));
if (!strtofloat(#s(client.ganiset))==strtofloat(#t(0)) && this.time in |timevar,timevar+2| && strequals(#t(2),#L)){
setani #t(3),;
setstring client.ganiset,strtofloat(#t(0));
}
timeout=0.05;
}
and the control weapon:
// NPC made by tricxta
if (playerchats && startswith(/ganiall,#c)){
tokenize #s(server.ganisetter);
this.id=strtofloat(#t(0));
tokenize #c;
setstring server.ganisetter,#v(this.id+1),#v(timevar),#L,#t(1);
}
Sorry the solution is quite simple as you can see I just didnt see the player set bit in the first question. >.< why am i so blind…
And if I see you taking credit for this script you can just get Alex to script for you…
nah I made it so it only works only for players inside the same level as the calling player, with the delete button you can change this so it works in all levels though.