Detecting a Timeout/Crash
#9

new string[250];
switch(reason){
case 0: format(string,sizeof(string),"*Player %s(id:%d) has left the server [Leaving]",GetName(playerid),playerid);
case 1: format(string,sizeof(string),"*Player %s(id:%d) has left the server [Timeout]",GetName(playerid),playerid);
case 2: format(string,sizeof(string),"*Player %s(id:%d) has left the server [Kicked/Banned]",GetName(playerid),playerid);}
SendClientMessageToAll(0x696969AA,string);

stock GetName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
return name;
}
Reply


Messages In This Thread
Detecting a Timeout/Crash - by DaniceMcHarley - 27.02.2015, 08:41
Re: Detecting a Timeout/Crash - by SickAttack - 27.02.2015, 08:49
Re: Detecting a Timeout/Crash - by DaniceMcHarley - 27.02.2015, 08:50
Re: Detecting a Timeout/Crash - by SickAttack - 27.02.2015, 08:55
Re: Detecting a Timeout/Crash - by CalvinC - 27.02.2015, 09:24
Re: Detecting a Timeout/Crash - by DaniceMcHarley - 27.02.2015, 09:39
Re: Detecting a Timeout/Crash - by Threshold - 27.02.2015, 10:39
Re: Detecting a Timeout/Crash - by SickAttack - 27.02.2015, 14:23
Re: Detecting a Timeout/Crash - by kyriakos587 - 28.02.2015, 23:29
Re: Detecting a Timeout/Crash - by maramizo - 28.02.2015, 23:43

Forum Jump:


Users browsing this thread: 1 Guest(s)