HOW TO DO THIS
#2

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new
        
string[64],
        
name[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    switch(
reason)
    {
        case 
0format(string,sizeof string,"%s left the server. (Timed out)",name);
        case 
1format(string,sizeof string,"%s left the server. (Leaving)",name);
        case 
2format(string,sizeof string,"%s left the server. (Kicked/Banned)",name);
    }
    
SendClientMessageToAll(0xFFFFFFAA,string);
    return 
1;

Note: Copied from wiki!

https://sampwiki.blast.hk/wiki/OnPlayerDisconnect
Reply


Messages In This Thread
HOW TO DO THIS - by [MKD]Max - 16.09.2011, 07:56
Re: HOW TO DO THIS - by [MG]Dimi - 16.09.2011, 08:00
Re: HOW TO DO THIS - by [MKD]Max - 16.09.2011, 08:02
Re: HOW TO DO THIS - by [MG]Dimi - 16.09.2011, 08:07
Re: HOW TO DO THIS - by [MKD]Max - 16.09.2011, 08:15
Re: HOW TO DO THIS - by Pharrel - 16.09.2011, 08:20
Re: HOW TO DO THIS - by [MG]Dimi - 16.09.2011, 08:34
Re: HOW TO DO THIS - by [MKD]Max - 16.09.2011, 10:33

Forum Jump:


Users browsing this thread: 4 Guest(s)