SA-MP Forums Archive
skin visible - 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: skin visible (/showthread.php?tid=272270)



skin visible - phil_lendon - 27.07.2011

How can i make the skin visible? i still have no idea :/ i did it in my first game mode and now i dunno :P also when i go over that character how can i make it say " Civilian" and "Cop"


Re: skin visible - PotH3Ad - 27.07.2011

You will have to edit this a bit.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    classid = GetPlayerSkin(playerid);
   
    SetPlayerPos(playerid, 2018.374, 1441.007, 39.000); //Change all these coords with your own, this will make the player visible in the class selection
    SetPlayerCameraPos(playerid, 2017.8604, 1426.3507, 39.4044);
    SetPlayerCameraLookAt(playerid, 2018.3740, 1441.0073, 39.0000);

    switch(classid)
    {
        //Say this is the cop skin id
        case 178:
        {
            GameTextForPlayer(playerid, "Cops", 3000, 1);
        }
        //Say this is the civilian skin id
        case 160:
        {
            GameTextForPlayer(playerid, "Civilian", 3000, 1);
        }
    }
    return 1;
}



Re: skin visible - phil_lendon - 27.07.2011

It doesnt appear to work the characters and i dont get the text bit?