09.01.2013, 15:43
pawn Код:
forward SetPlayerTeamFromClass(playerid, classid);
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);
{
if(classid == 0 && PlayerInfo[playerid][Clan] == 1)
{
gTeam[playerid] = TEAM_US;
SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512);
SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732);
SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512);
SetPlayerFacingAngle(playerid,252.4717);
GameTextForPlayer(playerid, "~b~American's", 3000, 5);
SetPlayerColor(playerid, BLUE);
return 1;
}
else if(classid == 1)
{
gTeam[playerid] = TEAM_RUS;
SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512);
SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732);
SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512);
SetPlayerFacingAngle(playerid,252.4717);
GameTextForPlayer(playerid, "~r~Russian's", 3000, 5);
SetPlayerColor(playerid, RED);
return 1;
}
}
return 1;
}