07.04.2009, 13:03
This:
Could be replaced by:
Alot simpler..
I'm not 100% sure how SendPlayerMessageToAll works, but it looks like you're getting every player on the server to send a message? I'd have thought that the message would appear as many times in the chatbox as you have players.. Could be wrong..
pawn Код:
format(name,sizeof(name),"%s",PlayerName(playerid));
---
stock PlayerName(playerid)
{
new name2[MAX_PLAYER_NAME];
GetPlayerName(playerid, name2, MAX_PLAYER_NAME);
return name2;
}
pawn Код:
GetPlayerName(playerid, name, sizeof(name);
I'm not 100% sure how SendPlayerMessageToAll works, but it looks like you're getting every player on the server to send a message? I'd have thought that the message would appear as many times in the chatbox as you have players.. Could be wrong..