18.03.2010, 10:31
hmm.. try this callback here ; https://sampwiki.blast.hk/wiki/NPC:OnPlayerStreamIn
its for the npc script, put a SendCommand under the Onplayerstreamedin.
Make the command itself in your gamemode.
The command must set the animation
so something like this here;
in the npc script
in normal script under onplayercommandtext;
good luck!
its for the npc script, put a SendCommand under the Onplayerstreamedin.
Make the command itself in your gamemode.
The command must set the animation
so something like this here;
in the npc script
Код:
public OnPlayerStreamIn(playerid) { SendCommand("/animate"); return 1; }
Код:
if(strcmp(cmdtext, "/animate", true, 10) == 0) { ApplyAnimation..blablabla (the kind of animation you want