28.12.2014, 18:12
Quote:
Yeah but you showed us this:
Код:
[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) |
PHP код:
foreach(Player, i)
{
if(InPaintball[i] != 0)
{
if(VoteGuns[1] == 0 && VoteGuns[2] == 0 && VoteGuns[3] == 0 && VoteGuns[4] == 0 && VoteGuns[5] == 0 && VoteGuns[6] == 0)
{
SendClientMessage(i, COLOR_WHITE, "Runda de paintball a fost amanata cu 30 de secunde deoarece nu s-a votat nici o arma.");
SetTimer("StartPaintball", 30000, 0);
return 1;
}
if(VoteGuns[1] > VoteGuns[2] && VoteGuns[1] > VoteGuns[3] && VoteGuns[1] > VoteGuns[4] && VoteGuns[1] > VoteGuns[5] && VoteGuns[1] > VoteGuns[6])
{
format(string, sizeof(string), "Cea mai votata arma a fost: Deagle. (%d voturi)", VoteGuns[1]);
GivePlayerWeapon(i, 24, 500);
pGun[1] = 1;
}
SendClientMessage(i, COLOR_WHITE, string);
SetTimer("StopPaintball", 180000, 0);