Need Help About Text
#2

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new PlayerName[MAX_PLAYER_NAME], str[128];
    GetPlayerName(playerid, Playername, MAX_PLAYER_NAME);
    switch (reason) {
            case 0: format(str, sizeof(str), "*** %s (ID: %d) has left the server (Timeout).", PlayerName, playerid);                  
            case 1: format(str, sizeof(str), "*** %s (ID: %d) has left the server (Leaving).", PlayerName, playerid);                  
            case 2: format(str, sizeof(str), "*** %s (ID: %d) has left the server (Kicked/Banned).", PlayerName, playerid);
            }
    SendClientMessageToAll(0xC0C0C0AA, str);
    return 1;
}
I hope this helps you.
Reply


Messages In This Thread
Need Help About Text - by xinix000 - 19.08.2010, 15:22
Re: Need Help About Text - by Jeffry - 19.08.2010, 15:39
Re: Need Help About Text - by Hiddos - 19.08.2010, 15:50
Re: Need Help About Text - by Jeffry - 19.08.2010, 16:26
Re: Need Help About Text - by xinix000 - 19.08.2010, 17:06
Re: Need Help About Text - by xinix000 - 19.08.2010, 17:37
Re: Need Help About Text - by xinix000 - 20.08.2010, 03:46
Re: Need Help About Text - by BP13 - 20.08.2010, 03:57
Re: Need Help About Text - by xinix000 - 20.08.2010, 04:25
Re: Need Help About Text - by BP13 - 20.08.2010, 05:00

Forum Jump:


Users browsing this thread: 1 Guest(s)