How do i get a players reason for leaving?
#1

I made a leave message but it always just says they left,even if they just timeout.I was wondering if someone could help me get different message for if they timeout.
Reply
#2

OnPlayerDisconnect
Reply
#3

hmm,
PHP код:
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
switch(
reason)
{
    case 
0format(stringsizeof string"%s has left the server. (Crash)"pName);
    case 
1format(stringsizeof string"%s has left the server. (Exit the game)"pName);
    case 
2format(stringsizeof string"%s has left the server. (Kicked/Banned)"pName);
}
SendClientMessageToAll(whitestring); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)