Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerFacingAngle(playerid,1);
gPlayerClass[playerid] = classid;
switch (classid) {
case 0:
{
gTeam[playerid] = TEAM_SWAT;
GameTextForPlayer(playerid, "~g~Swat", 1000, 6);
SetPlayerCameraPos(playerid,-1585.859,712.039,-4.088);
SetPlayerCameraLookAt(playerid,-1590.260,714.383,-5.242);
SetPlayerPos(playerid, -1590.260,714.383,-5.242);
SetPlayerFacingAngle(playerid,1);
}
case 1:
{
gTeam[playerid] = TEAM_CHICKENS;
GameTextForPlayer(playerid, "~y~Chickens", 1000, 6);
SetPlayerCameraPos(playerid,-2674.063,272.076,6.053);
SetPlayerCameraLookAt(playerid,-2672.888,266.586,4.335);
SetPlayerPos(playerid,-2672.888,266.586,4.335);
SetPlayerFacingAngle(playerid,1);
}
case 2:
{
gTeam[playerid] = TEAM_KAMIKAZERS;
GameTextForPlayer(playerid, "~r~Kamikazers", 1000, 6);
SetPlayerCameraPos(playerid,-1833.725,881.319,87.250);
SetPlayerCameraLookAt(playerid,-1830.012,881.114,87.195);
SetPlayerPos(playerid,-1830.012,881.114,87.195);
SetPlayerFacingAngle(playerid,1);
}
case 3:
{
gTeam[playerid] = TEAM_IMMIGRANTS;
GameTextForPlayer(playerid, "~g~Immigrants", 1000, 6);
SetPlayerCameraPos(playerid,-1453.411,1505.879,2.141);
SetPlayerCameraLookAt(playerid,-1448.855,1504.286,1.736);
SetPlayerPos(playerid,-1448.855,1504.286,1.736);
SetPlayerFacingAngle(playerid,1);
}
case 4:
{
gTeam[playerid] = TEAM_MEDICS;
GameTextForPlayer(playerid, "~r~Medics", 1000, 6);
SetPlayerCameraPos(playerid,-2689.175,622.850,15.528);
SetPlayerCameraLookAt(playerid,-2690.032,633.025,14.453);
SetPlayerPos(playerid,-2690.032,633.025,14.453);
SetPlayerFacingAngle(playerid,1);
}
case 5:
{
gTeam[playerid] = TEAM_FARMERS;
GameTextForPlayer(playerid, "~g~Farmers", 1000, 6);
SetPlayerCameraPos(playerid,-1115.033,-1196.493,129.692);
SetPlayerCameraLookAt(playerid,-1109.436,-1196.336,129.225);
SetPlayerPos(playerid,-1109.436,-1196.336,129.225);
SetPlayerFacingAngle(playerid,1);
}
case 6:
{
gTeam[playerid] = TEAM_RICHS;
GameTextForPlayer(playerid, "~y~Richs", 1000, 6);
SetPlayerCameraPos(playerid,-2726.348,992.213,55.236);
SetPlayerCameraLookAt(playerid,-2724.392,988.204,54.460);
SetPlayerPos(playerid,-2724.392,988.204,54.460);
SetPlayerFacingAngle(playerid,1);
}
case 7:
{
gTeam[playerid] = TEAM_PILOTS;
GameTextForPlayer(playerid, "~b~Pilots", 1000, 6);
SetPlayerCameraPos(playerid,-1373.156,-211.685,14.751);
SetPlayerCameraLookAt(playerid,-1374.170,-215.035,14.148);
SetPlayerPos(playerid,-1374.170,-215.035,14.148);
SetPlayerFacingAngle(playerid,1);
}
}
return 1;
}