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
#2

Should work
Reply
#3

NOTE:
if you put another format above this line:
SendClientMessageToAll(COLOR_GREY,string);
It won't send the message of yours.
Reply
#4

well than it is a good thing he isn't now isn't it?
Reply
#5

Quote:
Originally Posted by Daren_Jacobson
well than it is a good thing he isn't now isn't it?
What ?

Yes, the code works ...
Reply
#6

k thx.
Reply
#7

Why not just try it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)