04.04.2011, 11:17
It's because your not checking if the player is online, you can't work with offline players.
Try this:
Also i think this is pointless, because players will 'win' purely by being just online (and it will spam the chat).
Try this:
pawn Код:
forward GAPoint( playerid );
public GAPoint( playerid )
{
new string[ 128 ];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
format( string, sizeof( string ), "** %s Won! **", GetName( i ) );
SendClientMessageToAll(YELLOW, string);
}
}
}

