animation issue? - 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: animation issue? (
/showthread.php?tid=203691)
animation issue? -
BlackWolf120 - 27.12.2010
hi,
i included some animation cmds into my script.
But i have to type in the command twice before it does the requested animation.
heres the code:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/piss", cmdtext, true) == 0)
{
ApplyAnimation(playerid,"PAULNMAC","Piss_loop",4.1,1,1,1,1,1,1);
return 1;
}
if (strcmp("/dance", cmdtext, true) == 0)
{
ApplyAnimation(playerid,"DANCING","dance_loop",4.1,1,1,1,1,1,1);
return 1;
}
SendClientMessage(playerid, 0xAA3333AA,"This command doesn't exist!");
return 1;
}
and antoher stupid question
why dont u see any water coming out if u piss?
Ive seen it on some rp servers, so it is possible
regards.
Re: animation issue? -
Baboon - 27.12.2010
have you returned onplayercommandtext with return 0;? And try removing the == 0)
Re: animation issue? -
BlackWolf120 - 27.12.2010
i return it with
pawn Код:
SendClientMessage(playerid, 0xAA3333AA,"This command doesn't exist!");
return 1;
}
ive listened the whole OnPlayerCommandText above.
mhh, why to remove the ==0?