30.12.2014, 08:12
pawn Код:
forward StopPaintball();
public StopPaintball()
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(InPaintball[i] != 0)
{
pRound = 0;
VotedMap[i] = 0;
VotedGun[i] = 0;
pVoted = 1;
ResetPlayerWeapons(i);
SetPlayerInterior(i, 10);
SetPlayerVirtualWorld(i, 0);
pGun[1] = 0, pGun[2] = 0, pGun[3] = 0, pGun[4] = 0, pGun[5] = 0, pGun[6] = 0;
new sendername[MAX_PLAYER_NAME], string[256];
GetPlayerName(pWinner, sendername, sizeof(sendername));
format(string, sizeof(string), "Castigatorul acestei runde de paintball este: %s - %d kills", GetName(pWinner), pWinnerScore);
SendClientMessage(i, COLOR_YELLOW, string);
SetTimer("StartPaintball", 30000, 0);
break; // this breaks the loop from looping anymore..
}
}
return 1;
}