Guest User

Untitled

a guest
May 9th, 2012
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. public OnPlayerDisconnect(playerid, reason)
  2. {
  3. new leaveMsg1[256];
  4. IsPlayerMuted[playerid] = 0;
  5. format(leaveMsg1, 256, "2** 4[%i]2 %s has left the server. (%s)", playerid, PlayerName(playerid), aDisconnectNames[reason]);
  6. IRC_GroupSay(GroupID[0], EchoChan, leaveMsg1);
  7. IsPlayerJailed[playerid] = false;
  8. IsPlayerMuted[playerid] = false;
  9. if(strlen(AdminChan) != 0)
  10. {
  11. if(IsPlayerNPC(playerid))
  12. {
  13. new leaveMsg2[256];
  14. format(leaveMsg2, 256, "2** 4[NPC] [%i]2 %s has left the server. (%s)", playerid, PlayerName(playerid), aDisconnectNames[reason]);
  15. IRC_GroupSay(GroupID[1], AdminChan, leaveMsg2);
  16. }
  17. else
  18. {
  19. new leaveMsg2[256];
  20. new current = Now() - TimeAtConnect[playerid];
  21. format(leaveMsg2, 256, "2** 4[%i]2 %s has left the server. (%s) (%s)", playerid, PlayerName(playerid), aDisconnectNames[reason], ConvertTime(current));
  22. IRC_GroupSay(GroupID[1], AdminChan, leaveMsg2);
  23. }
  24. }
  25. return true;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment