Will This Work?
#1

sorry, i didnt have enough time to test this out so ill ask you guys if you know it will work

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new pName[MAX_PLAYER_NAME];
  new string[48];
  GetPlayerName(playerid, pName, sizeof(pName));
  if(reason == 0)
    {
        format(string, sizeof(string), "* %s (%d) Has Left. (Timeout)", pName, playerid);
    }
    else if(reason == 1)
    {
      format(string, sizeof(string), "* %s (%d) Has Left. (Quit)", pName, playerid);
    }
    else if(reason == 2)
    {
      format(string, sizeof(string), "* %s (%d) Has Left. (Kicked)", pName, playerid);
    }
   
  SendClientMessageToAll(COLOR_GREY,string);
    return 1;
}
thanks
Reply


Messages In This Thread
Will This Work? - by StrickenKid - 02.03.2009, 14:39
Re: Will This Work? - by ICECOLDKILLAK8 - 02.03.2009, 14:46
Re: Will This Work? - by Rks25 - 02.03.2009, 14:59
Re: Will This Work? - by Daren_Jacobson - 02.03.2009, 15:01
Re: Will This Work? - by Danut - 02.03.2009, 15:19
Re: Will This Work? - by StrickenKid - 02.03.2009, 21:36
Re: Will This Work? - by Pghpunkid - 02.03.2009, 21:38

Forum Jump:


Users browsing this thread: 1 Guest(s)