SA-MP Forums Archive
Selecting Skins - 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: Selecting Skins (/showthread.php?tid=264588)



Selecting Skins - cloudysky - 26.06.2011

pawn Код:
public OnGameModeInit()
{
    AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0); // Survivors
    AddPlayerClass(2, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0); // Survivors
    AddPlayerClass(3, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0); // Survivors
   
    AddPlayerClass(4, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0); //Zombies
    AddPlayerClass(5, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(6, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
    return 1;
}


public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid, classid);
    return 1;
}

public SetPlayerTeamFromClass(playerid, classid)
{
    switch(classid)
    {
        case 0..2:
        {
            GameTextForPlayer(playerid, "~w~Survivor", 1500, 6);
            SetPlayerInterior(playerid,0);
            SetPlayerCameraPos(playerid, 2446.008056, -1974.017700, 13.546875);
            SetPlayerCameraLookAt(playerid, 2442.248535, -1971.448486, 13.546875);
            SetPlayerPos(playerid, 2442.248535, -1971.448486, 13.546875);
            SetPlayerInterior(playerid, 0);
            SetPlayerFacingAngle(playerid, 226.874053);
            ApplyAnimation(playerid,"COLT45","colt45_crouchfire",4.1,1,1,1,1,1);
         }
         case 3..5:
         {
            GameTextForPlayer(playerid, "~y~Zombie", 1500, 6);
            SetPlayerInterior(playerid,0);
            SetPlayerCameraPos(playerid, 2446.008056, -1974.017700, 13.546875);
            SetPlayerCameraLookAt(playerid, 2442.248535, -1971.448486, 13.546875);
            SetPlayerPos(playerid, 2442.248535, -1971.448486, 13.546875);
            SetPlayerInterior(playerid, 0);
            SetPlayerFacingAngle(playerid, 226.874053);
            ApplyAnimation(playerid,"WUZI","CS_Dead_Guy",4.1,1,1,1,1,1);
        }
    }
    return 1;
}
Survivors work fine, it's the zombies however. Every skin is CJ. I can't see what's wrong...


Re: Selecting Skins - cloudysky - 26.06.2011

Anyone?


Re: Selecting Skins - iPLEOMAX - 26.06.2011

Here are few valid skin ids that you can use: All Skin IDs List

because 4,5,6 are all invalid or CJ skins.