ApplyAnimation on OnPlayerRequestClass - 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: ApplyAnimation on OnPlayerRequestClass (
/showthread.php?tid=159884)
ApplyAnimation on OnPlayerRequestClass -
RedFusion - 14.07.2010
How do i do if i want every skin to have the same animation on OnPlayerRequestClass
Код:
if(GetPlayerSkin(playerid) == 188)
This just works one one skin ID i want something that toggles all skins on the animation.
Re: ApplyAnimation on OnPlayerRequestClass -
Finn - 14.07.2010
Post your OnPlayerRequestClass callback.
Re: ApplyAnimation on OnPlayerRequestClass -
RedFusion - 14.07.2010
Код:
public OnPlayerRequestClass(playerid, classid)
{
PlayerPlaySound (playerid, 1183, 0, 0, 0);
SetPlayerPos(playerid, 2103.9080,1285.1174,10.8203);
SetPlayerCameraPos(playerid, 2110.9810,1285.0741,10.8203);
SetPlayerCameraLookAt(playerid, 2103.9080,1285.1174,10.8203);
if(GetPlayerSkin(playerid) == 0>)
ApplyAnimation (playerid, "ON_LOOKERS", "Wave_loop", 1, 1, 1, 1, 0, 0);
return 1;
}
Re: ApplyAnimation on OnPlayerRequestClass -
RedFusion - 14.07.2010
Hello? I need to get this script done very soon so i can send it to a guy.
Re: ApplyAnimation on OnPlayerRequestClass -
Nero_3D - 14.07.2010
Just put it somewhere without any if statement before
So the animation is always played when OnPlayerRequestClass is called
Re: ApplyAnimation on OnPlayerRequestClass -
RedFusion - 14.07.2010
Yes but then the first skin doesnt make any animation, i have to trigger it by changing skin and then it starts.
And also, why does my character face to north instead of east in class selection when i do F4 and then /kill?
Re: ApplyAnimation on OnPlayerRequestClass -
willsuckformoney - 14.07.2010
i can tell you how to fix but im to lazy atm to do that
Re: ApplyAnimation on OnPlayerRequestClass -
RedFusion - 14.07.2010
Mhmm ok.