05.06.2010, 17:46
Maybe:
pawn Код:
public StartRound(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(team[i] == DMB || team[i] == DMO)
{
TogglePlayerControllable(i,1);
GameTextForPlayer(i,"~r~ FIGHT", 2500, 0);
endround = SetTimerEx("EndRound", RoundTime*60000, false, "i", i);
GivePlayerWeapon(i, 24, 5000);
if(GunSet[i] == M4) GivePlayerWeapon(i, 31, 5000);
if(GunSet[i] == SNIPER) GivePlayerWeapon(i, 34, 5000);
if(GunSet[i] == AK47) GivePlayerWeapon(i, 30, 5000);
SetPlayerHealth(i, 100);
}
}
}
return 1;
}