SA-MP Forums Archive
Will This Work? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Will This Work? (/showthread.php?tid=67590)



Will This Work? - StrickenKid - 02.03.2009

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


Re: Will This Work? - ICECOLDKILLAK8 - 02.03.2009

Should work


Re: Will This Work? - Rks25 - 02.03.2009

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


Re: Will This Work? - Daren_Jacobson - 02.03.2009

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


Re: Will This Work? - Danut - 02.03.2009

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 ...


Re: Will This Work? - StrickenKid - 02.03.2009

k thx.


Re: Will This Work? - Pghpunkid - 02.03.2009

Why not just try it?