public OnActiveStartedWinnerChecking() { if(activestart && activeplayers == 1) { SendFormatMessageToAll(color_orange, message, "~ SAWN ~"); for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && player[i][joinACT]) { SendFormatMessageToAll(color_white, message, "!%s has won", getname[i]); SpawnPlayer(i); GivePlayerMoney(i, activeamout); } SendFormatMessageToAll(color_orange, message, "~ SAWN ~"); OnActiveStatusStop(); } }
for(..)
public OnActiveStartedWinnerChecking()
{
if(activestart && activeplayers == 1)
{
SendFormatMessageToAll(color_orange, message, "~ SAWN ~");
for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && player[i][joinACT])
{
if(IsPlayerConnected(i))
{
if(!IsPlayerNPC(i))
{
SendFormatMessageToAll(color_white, message, "!%s has won", getname[i]);
SpawnPlayer(i);
GivePlayerMoney(i, activeamout);
}
}
}
SendFormatMessageToAll(color_orange, message, "~ SAWN ~");
OnActiveStatusStop();
}
}
Not sure but you can try..
pawn Код:
|
public OnActiveStartedWinnerChecking() { if(activestart && activeplayers == 1) { new i = -1; for(new x; x < MAX_PLAYERS && i == -1; x++) if(IsPlayerConnected(x) && player[x][joinACT]) i = x; SendFormatMessageToAll(color_orange, message, "~ дсъййод Sawn-фтймеъ д ~"); SendFormatMessageToAll(color_white, message, "!жлд бфтймеъ %s дщзчп", getname[i]); SendFormatMessageToAll(color_orange, message, "~ дсъййод Sawn-фтймеъ д ~"); SpawnPlayer(i); GivePlayerMoney(i, activeamout); OnActiveStatusStop(); } }
public OnActiveStartedWinnerChecking()
{
if(activestart && activeplayers == 1)
{
new i = -1;
for(new x; x < MAX_PLAYERS && i == -1; x++) if(IsPlayerConnected(x) && player[x][joinACT]) i = x;
SendFormatMessageToAll(color_orange, message, "~ a"n~u'ййоa" Sawn-фo`йi`a*u' a" ~");
SendFormatMessageToAll(color_white, message, "%s has won!", getname[i]); // change it to what ever you want but keep '%s'
SendFormatMessageToAll(color_orange, message, "~ a"n~u'ййоa" Sawn-фo`йi`a*u' a" ~");
SpawnPlayer(i);
GivePlayerMoney(i, activeamout);
OnActiveStatusStop();
}
}
pawn Код:
|