Player Selection Animation
#5

pawn Код:
//something I found in vactions.pwn
PreloadAnimLib(playerid, animlib[]) ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);

public OnPlayerConnect(playerid)
{   //loading the animation libraries
    PreloadAnimLib(playerid,"BOMBER");
    PreloadAnimLib(playerid,"RAPPING");
    PreloadAnimLib(playerid,"SHOP");
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"SMOKING");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"ON_LOOKERS");
    PreloadAnimLib(playerid,"DEALER");
    PreloadAnimLib(playerid,"CRACK");
    PreloadAnimLib(playerid,"CARRY");
    PreloadAnimLib(playerid,"COP_AMBIENT");
    PreloadAnimLib(playerid,"PARK");
    PreloadAnimLib(playerid,"INT_HOUSE");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"PED");
    //so the timer can be executed again
    PlayerInfo[playerid][SpawnDance] = true;
    ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //preventing a bug for the animation not being applied the first time OnPlayerRequestClass is called
    return 1;
}
Something I found from: https://sampforum.blast.hk/showthread.php?tid=90880
Reply


Messages In This Thread
Player Selection Animation - by (_AcE_) - 14.12.2011, 03:27
Re: Player Selection Animation - by suhrab_mujeeb - 14.12.2011, 03:35
Re: Player Selection Animation - by (_AcE_) - 14.12.2011, 04:04
Re: Player Selection Animation - by [ABK]Antonio - 14.12.2011, 04:05
Re: Player Selection Animation - by suhrab_mujeeb - 14.12.2011, 04:14
Re: Player Selection Animation - by Steven82 - 14.12.2011, 04:36
Re: Player Selection Animation - by (_AcE_) - 14.12.2011, 21:07

Forum Jump:


Users browsing this thread: 1 Guest(s)