28.12.2014, 17:06
I have a problem, I still do to this message spam. How can I make just send playerii in Paintball? As if one takes only 1x and if 2 sends several times.
pawn Код:
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);
}
}
PHP код:
[19:41:24] Cea mai votata arma a fost: Deagle. (2 voturi)
[19:41:24] Cea mai votata arma a fost: Deagle. (2 voturi)
[19:41:25] Cea mai votata arma a fost: Deagle. (2 voturi)
[19:41:25] Cea mai votata arma a fost: Deagle. (2 voturi)
[19:41:25] Cea mai votata arma a fost: Deagle. (2 voturi)
[19:41:25] Cea mai votata arma a fost: Deagle. (2 voturi)
[19:41:27] Cea mai votata arma a fost: Deagle. (2 voturi)
[19:41:27] Cea mai votata arma a fost: Deagle. (2 voturi)