04.07.2015, 16:22
Hello everyone, how can I make skinds appear in class selection? This is my code:
For some reason, I can only see the game text but not the actual skins. Am I doing it wrong?
Код:
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Basic Team Deathmatch");
//----------------|| COPS ||-------------------------
//(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
AddPlayerClass(280, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
// Homeless
AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
switch(classid)
{
case 0:
{
SetPlayerTeam(playerid, Cops);
GameTextForPlayer(playerid, "~b~Cops", 1000, 3);
}
case 1:
{
SetPlayerTeam(playerid, Homeless);
GameTextForPlayer(playerid, "~r~Homeless", 1000, 3);
}
}
return 1;
}



