[HELP] Animation drink/eat - 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: [HELP] Animation drink/eat (
/showthread.php?tid=155314)
[HELP] Animation drink/eat -
WThieves - 17.06.2010
Hi there people i give you this part of a script:
pawn Код:
case 7: //Grove Street
{
new Float:armour;
GetPlayerArmour(playerid, armour);
if(GetPlayerArmour(playerid,armour) >= 150)
{
return 1;
}
SetPlayerArmour(playerid, armour + 80.0);
GivePlayerMoney(playerid, - 38);
SendClientMessage(playerid, 0xFFFFFFFF, "You gained 80 AP (Max 150)");
HideMenuForPlayer(GetPlayerMenu(playerid), playerid);
TogglePlayerControllable(playerid, true);
ApplyAnimation(playerid,"PED","VEND_Eat_P",4.1,0,1,1,1,5000);
}
But the animation doesn't work, what can i do??
Re: [HELP] Animation drink/eat -
WThieves - 17.06.2010
Quote:
|
Originally Posted by WThieves
Hi there people i give you this part of a script:
pawn Код:
case 7: //Grove Street { new Float:armour; GetPlayerArmour(playerid, armour); if(GetPlayerArmour(playerid,armour) >= 150) { return 1; } SetPlayerArmour(playerid, armour + 80.0); GivePlayerMoney(playerid, - 38); SendClientMessage(playerid, 0xFFFFFFFF, "You gained 80 AP (Max 150)"); HideMenuForPlayer(GetPlayerMenu(playerid), playerid); TogglePlayerControllable(playerid, true); ApplyAnimation(playerid,"PED","VEND_Eat_P",4.1,0,1,1,1,5000); }
But the animation doesn't work, what can i do??
|
Oops never mind, forgot to set PED to VENDING.