animations - 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: animations (
/showthread.php?tid=119776)
animations -
smuf_albert95 - 09.01.2010
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1 ,1,1,1);
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/drunk", true))
(AND AT THE NEXT STEPS, I DON'T KNOW...)
i dont know what to put at "onplayercommand" for animations..
Re: animations -
FireFox_ - 09.01.2010
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/drunk",true) == 0)
{
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
}
return 1;
}
U mean this?
Re: animations -
Miguel - 09.01.2010
Quote:
Originally Posted by <Krys>
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/drunk",true) == 0) { ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1); } return 1; }
U mean this?
|
Wrong.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/drunk",true) == 0)
{
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
return 1;
}
return 0;
}
This one is right.