27.07.2011, 18:56
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"
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;
}