12.04.2012, 18:16 
	
	
	
		under: OnGameModeInit()
uner: OnPlayerRequestClass(playerid)
this should give you an idea
	
	
	
	
pawn Код:
AddPlayerClass(SKIN, ClassPos, ClassAngle, 0, 0, 0, 0, 0, 1);
AddPlayerClass(SKIN, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
AddPlayerClass(SKIN, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); //Change SKIN to the skin Id's
uner: OnPlayerRequestClass(playerid)
pawn Код:
if(classid == 0) //The amount of player classes you have added above (3)
{
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);
gTeam[playerid] = TEAM_POLICE;
GameTextForPlayer(playerid, "Police!", 4000, 6);
SetPlayerColor(playerid,COLOR); //Change COLOR to the players team color
}
if(classid == 1) //The amount of player classes you have added above (3)
{
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);
gTeam[playerid] = TEAM_CITIZEN;
GameTextForPlayer(playerid, "Citizen!", 4000, 6);
SetPlayerColor(playerid,COLOR); //Change COLOR to the players team color
}
if(classid == 2) //The amount of player classes you have added above (3)
{
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);
gTeam[playerid] = TEAM_CRIMINAL;
GameTextForPlayer(playerid, "Criminal!", 4000, 6);
SetPlayerColor(playerid,COLOR); //Change COLOR to the players team color
}

