Код:
Something like this:
public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
if(classid==0||classid==1||classid==2) {
SetPlayerTeam( playerid, 1 );
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2473.2205,-1686.0530,13.5078);
SetPlayerFacingAngle(playerid,140.4312);
SetPlayerCameraPos(playerid,2470.3530,-1689.5225,15.0139);
SetPlayerCameraLookAt(playerid,2473.2205,-1686.0530,13.5078);
}
if(classid==3||classid==4||classid==5){
SetPlayerTeam( playerid, 2 );
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2304.0139,-1666.7949,14.6378);
SetPlayerFacingAngle(playerid, 234.2924);
SetPlayerCameraPos(playerid,2306.7917,-1668.7916,16.1490);
SetPlayerCameraLookAt(playerid,2304.0139,-1666.7949,14.6378);
}
if(classid==6||classid==7||classid==8){
SetPlayerTeam( playerid, 3 );
SetPlayerInterior(playerid,9);
SetPlayerPos(playerid,315.8073,994.3613,1956.7516);
SetPlayerFacingAngle(playerid, 359.7871);
SetPlayerCameraPos(playerid,315.8260,999.4017,1957.5885);
SetPlayerCameraLookAt(playerid,315.8073,994.3613,1956.7516);
}
return 1;
}
Try something like that, I took it from my gamemode.