SA-MP Forums Archive
a little help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: a little help (/showthread.php?tid=162259)



a little help - omidi - 22.07.2010

i have a problem with my script i want when player do /ya first anime will be run then when the first one is over auto goto the sacend anime

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
new idx;
new cmd[256];

cmd = strtok(cmdtext, idx);

if(strcmp(cmd, "/ya", true) == 0)
{
for(new i=1 ;i<2 ;i++)
{
if(i==1)
{ApplyAnimation(playerid,"BLOWJOBZ","BJ_COUCH_STAR T_W",4.0, 0, 0, 0, 0,0);
else
ApplyAnimation(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_ W ",4.0, 0, 0, 0, 0,0);}
}
}
return 1;
}