Skin Selection with random animations help! +REP - 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)
+--- Thread: Skin Selection with random animations help! +REP (
/showthread.php?tid=569498)
Skin Selection with random animations help! +REP -
Chausar - 31.03.2015
if skin selection appeared. i want the character to do the random animations Example:
ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.1, 1, 1, 1, 1, 1, 1);
ApplyAnimation(playerid, "FIGHT_B", "FightB_1", 4.1, 1, 1, 1, 1, 1, 1);
can you guys help me?
The Second Problem.
When in skin selection..the animations just started when i pressed the arrow button. how can i fix that?
Respuesta: Skin Selection with random animations help! +REP -
JuanStone - 31.03.2015
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
switch(random(2))
{
case 0: ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.1, 1, 1, 1, 1, 1, 1);
case 1: ApplyAnimation(playerid, "FIGHT_B", "FightB_1", 4.1, 1, 1, 1, 1, 1, 1);
}
return true;
}
The second not i understood it, could you explain more?
Re: Skin Selection with random animations help! +REP -
Chausar - 31.03.2015
Nevermine dude you already fixed it! thanks!!!