Carry animation not working - 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: Carry animation not working (
/showthread.php?tid=523745)
Carry animation not working -
gychem - 03.07.2014
I can't get the carry animation working, someone knows how to fix it?
Код:
public MinerTimer(playerid)
{
RemovePlayerAttachedObject(playerid, 3);
SendClientMessage(playerid, -1, "{00FF00}Average {FFFFFF}metal produced. Take it to the refinery.");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE); // 1st to clear all special actions
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY); // 2nd to make Carry animation on
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0, 1);
if ( GetPlayerSpecialAction( playerid ) != SPECIAL_ACTION_CARRY ) { // Still not carrying, try to remove this check if still not working
SetTimerEx("carry", 200, false, "i", playerid); // A timer to set carry animation
}
// SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
SetPlayerAttachedObject(playerid, 4, 2936, 1, 0.184699, 0.426247, 0.000000, 259.531341, 80.949592, 0.000000, 0.476124, 0.468181, 0.470769);
SetPlayerCheckpoint(playerid, -1866.611328, -1609.435546, 21.757812, 3.0);
ExtraMetall[playerid] = 0;
return 1;
}
forward carry(playerid);
public carry(playerid)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0, 1);
return 1;
}
Re : Carry animation not working -
iLegendary - 03.07.2014
I have similar problem, my NPC doesn't play any animation.
PHP код:
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
if(!strcmp(npcname, "Jess_Parker", true))
{
new Text3D:Jess = Create3DTextLabel(""grey"[NPC]:\n"white"Jess_Parker\nDanceuse", COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Jess, playerid, 0.0, 0.0, -0.3);
ApplyAnimation(playerid, "DANCING", "bd_clap1", 4.1, 1, 1, 1, 1, 1, 1);
SetPlayerSkin(playerid, 93);
}
}
I try to make animation when i record, i have try OnPlayerStreamIn, and any solution..
I am in front of a wall