24.01.2012, 08:04
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
if(WarStart == 0)
{
SetPlayerTeamFromClass(playerid, classid);
}
if(WarStart == 1)
{
SendClientMessage(playerid,COLOR_ADMIN,"*** An Admin is Selecting Team for You");
for(new i;i<MAX_PLAYERS;i++)
{
if(IsPlayerAdmin(i))
{
if(Team[i] == 3)
{
new string[256];
format(string,sizeof(string),"~r~Dx\n~b~%s\n~w~Spectator",oppclan);
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
new string2[256];
format(string,sizeof(string),"Select Team for %s",pName);
playerjoin = playerid;
ShowPlayerDialog(i,6,2,string2,string,"This One","Kick");
}
}
}
}
return 1;
}