join/kick/leave messages not in order
#5

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new 
pname[MAX_PLAYER_NAME], string[39 MAX_PLAYER_NAME];
    
GetPlayerName(playeridpnamesizeof(pname));
    switch(
reason)
    {
        case 
0format(stringsizeof(string), "%s left the server [crash]."pname);
        case 
1format(stringsizeof(string), "%s left the server [/q]."pname);
        case 
2format(stringsizeof(string), "%s left the server [kick/ban]"pname);
    }
    
SendClientMessageToAll(0xFFFFFFAAstring);
    return 
1;

it works on my server perfectly!
Reply


Messages In This Thread
join/kick/leave messages not in order - by SnG.Scot_MisCuDI - 22.12.2011, 04:00
Re: join/kick/leave messages not in order - by Jeffry - 22.12.2011, 09:53
Re: join/kick/leave messages not in order - by SnG.Scot_MisCuDI - 22.12.2011, 19:02
Re: join/kick/leave messages not in order - by Jeffry - 24.12.2011, 09:37
Re: join/kick/leave messages not in order - by ProdrifterX - 24.12.2011, 11:53
Re: join/kick/leave messages not in order - by SnG.Scot_MisCuDI - 24.12.2011, 19:03
Re: join/kick/leave messages not in order - by SnG.Scot_MisCuDI - 24.12.2011, 19:09
Re: join/kick/leave messages not in order - by Jeffry - 25.12.2011, 11:18

Forum Jump:


Users browsing this thread: 1 Guest(s)