OnPlayerDisconnect
#3

pawn Code:
public OnPlayerDisconnect(playerid, reason)
{
    new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    switch(reason)
    {
        case 0: format(string, sizeof(string), "%s has left the server. (Lost Connection)", pname);
        case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", pname);
        case 2: format(string, sizeof(string), "%s has left the server. (Kicked)", pname);
    }
    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;
}
Reply


Messages In This Thread
OnPlayerDisconnect - by new121 - 14.03.2012, 20:54
Re: OnPlayerDisconnect - by Jack_minka - 14.03.2012, 20:55
Re: OnPlayerDisconnect - by Twisted_Insane - 14.03.2012, 21:01
Re: OnPlayerDisconnect - by Alexy_Dramon - 14.03.2012, 21:03
Re: OnPlayerDisconnect - by Twisted_Insane - 14.03.2012, 21:09

Forum Jump:


Users browsing this thread: 1 Guest(s)