01.12.2012, 21:04
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0:
{
gTeam[playerid] = TEAM_SWAT;
GameTextForPlayer(playerid, "~b~SWAT", 5000, 5);
SetPlayerPos(playerid, 1522.6503,-806.6635,72.1700);
SetPlayerFacingAngle(playerid, 4018);
SetPlayerCameraPos(playerid, 1514.0861,-806.9355,72.0768);
SetPlayerCameraLookAt(playerid, 1522.6503,-806.6635,72.1700);
}
case 1:
{
gTeam[playerid] = TEAM_ARMY;
GameTextForPlayer(playerid, "~g~ARMY", 5000, 5);
SetPlayerPos(playerid, 1279.3276,-778.4965,95.9663);
SetPlayerFacingAngle(playerid,8298);
SetPlayerCameraPos(playerid,1266.1062,-778.3137,95.9665);
SetPlayerCameraLookAt(playerid,1279.3276,-778.4965,95.9663);
}
}
SetPlayerToTeamColour(playerid); // 971
return 1; //975
}