pawn Код:
enum Info
{
team
//Other player info stuff.
};
new gPlayer[MAX_PLAYERS][Info];
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);
SetPlayerPos(playerid, 877.9190,-1077.0901,24.5843);
SetPlayerFacingAngle(playerid, 360.0000);
SetPlayerCameraPos(playerid, 877.9275,-1072.0787,24.3923);
SetPlayerCameraLookAt(playerid, 877.9190,-1077.0901,24.5843);
new skinid = GetPlayerSkin(playerid);
switch(skinid)
{
case 280:
{
GameTextForPlayer(playerid,"~b~ Police",2000,6);
gPlayer[playerid][teamid] = TEAM_POLICE;
}
case 281:
{
GameTextForPlayer(playerid,"~b~ Police",2000,6);
gPlayer[playerid][teamid] = TEAM_POLICE;
}
case 282:
{
GameTextForPlayer(playerid,"~b~ Police",2000,6);
gPlayer[playerid][teamid] = TEAM_POLICE;
}
}
return 1;
}