30.12.2014, 09:48
Also make spam, and look only at id 0. It happens and startpaintball function, do not understand why spam.
Help!
Help!
pawn Код:
forward StopPaintball();
public StopPaintball()
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(InPaintball[i] != 0)
{
pRound = 0;
PlayerKills[i] = -1;
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;
}
}
}