12.04.2012, 13:51
well, I working on my server and when log every player have to choose job skin but sometimes there are noobs and don't know what skin they should took ( its written ) and I have a question:
how to do when player log in show skins which is availables for it !
some codes:
any ideas?
how to do when player log in show skins which is availables for it !
some codes:
pawn Код:
public OnGameModeInit();
{
AddPlayerClassEx(TEAM_CITIZEN,2,2321.7683,-2078.6880,13.5469,91.7119,1,1,0,0,0,0);
AddPlayerClassEx(TEAM_CITIZEN,55,2321.7683,-2078.6880,13.5469,91.7119,1,1,0,0,0,0);
AddPlayerClassEx(TEAM_COP,280,1553.2623,-1675.2860,16.1953,92.7704,3,1,0,0,0,0);
AddPlayerClassEx(TEAM_COP,282,1553.2623,-1675.2860,16.1953,92.7704,3,1,0,0,0,0);
AddPlayerClassEx(TEAM_CRIMINAL,29,2748.2466,-2448.6731,13.6484,166.0463,5,1,0,0,0,0);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1133.0504,-2038.4034,69.1000);
SetPlayerFacingAngle(playerid,0.0);
SetPlayerCameraPos(playerid,1133.0504,-2035.4034,69.1000);
SetPlayerCameraLookAt(playerid,1133.0504,-2038.4034,69.1000);
if(GetPlayerJobID(playerid) == 1)
{
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~w~Citizen",50000, 3);
}
else if(GetPlayerJobID(playerid) == 2)
{
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~b~Police Officer",50000, 3);
}
else if(GetPlayerJobID(playerid) == 3)
{
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~r~Criminal",50000, 3);
}
return 1;
}