pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0: // Change everything to your needs
{
SetPlayerTeamFromClass(playerid, classid);
SetPlayerInterior(playerid,17);
SetPlayerPos(playerid,486.0409, -9.4562, 1000.6719);
SetPlayerFacingAngle(playerid, 137.9666);
SetPlayerCameraPos(playerid, 483.809051, -13.435981, 1000.679687);
SetPlayerCameraLookAt(playerid, 486.0409, -9.4562, 1000.6719);
GameTextForPlayer(playerid, "Class 1", 1000, 3);
}
case 1:
{
SetPlayerTeamFromClass(playerid, classid);
SetPlayerInterior(playerid,17);
SetPlayerPos(playerid,486.0409, -9.4562, 1000.6719);
SetPlayerFacingAngle(playerid, 137.9666);
SetPlayerCameraPos(playerid, 483.809051, -13.435981, 1000.679687);
SetPlayerCameraLookAt(playerid, 486.0409, -9.4562, 1000.6719);
GameTextForPlayer(playerid, "Class 2", 1000, 3);
}
}
return 1;
}