30.12.2014, 21:58
Quote:
I do not understand. What can I do, what can replace that lop to send that message at all.
|
You were supposed to edit that line and make it send the message with regular SendClientMessage and not PaintMessage.
Like this:
pawn Код:
forward StopPaintball();
public StopPaintball()
{
for(new i = 0; i < MAX_PLAYERS; i ++) // #1 Loop
{
if(InPaintball[i] == 1)
{
new string[256];
ResetPlayerWeapons(i);
SetTimer("StartPaintball", 30000, 0);
pGun[1] = 0, pGun[2] = 0, pGun[3] = 0, pGun[4] = 0, pGun[5] = 0, pGun[6] = 0;
pRound = 0, PlayerKills[i] = 0, VotedMap[i] = 0, VotedGun[i] = 0, pVoted = 1;
format(string, sizeof(string), "Castigatorul acestei runde de paintball este: %s - %d kills", GetName(pWinner), pWinnerScore);
SendClientMessage(i, COLOR_YELLOW, string); // See how this simple line of code changed?
SetTimer("StartPaintball", 20000, false);
}
}
return 1;
}