24.07.2009, 20:17
I made these leave messages but I want to avoid spamming.how can I change the "sendclientmessagetoall" so it will be visible only local?
Here is the code:
Код:
Public OnPlayerdisconnect(playerid, reason) { new pName[MAX_PLAYER_NAME], string[56]; GetPlayerName(playerid, pName, sizeof(pName)); switch(reason) { case 0: format(string, sizeof(string), "% has left the server.(Lost Connection)", pName); case 1: format(string, sizeof(string), "% has left the server.(Leaving)", pName); case 2: format(string, sizeof(string), "% has left the server.(Kicked/Banned)", pName); } SendClientMessageToAll(0xAAAAAAAA, string); return 1; }