09.10.2015, 10:29
Hello, can someone tell me why this message is repeating multiple times?
The message is "bla bla has won last man standing".
Код:
public UpdateLmsTxd()
{
new LmsString[100];
format(LmsString,sizeof(LmsString),"Players Alive: ~r~%d",PlayersAlive);
TextDrawSetString(LmsTxd,LmsString);
if(PlayersAlive == 1)
{
foreach (new i : Player)
{
new pName[24], String[128];
GetPlayerName(i,pName,24);
format(String, sizeof(String), "{F2C80C}%s (%d) {FFFFFF}has won the {F2C80C}Last Man Standing game!", pName, i);
SendClientMessageToAll(-1, String);
format(String, sizeof(String), "~r~%s (%d) ~w~has won the ~r~Last Man Standing ~w~game!",pName, i);
GameTextForAll(String,5000,4);
CallRemoteFunction("LMS_REWARD","",i);
SetTimer("WaitChange",5000,0);
}
}
return 1;
}

