SendClientMessageToAll(format) problem
#10

public OnPlayerDisconnect(playerid, reason)
{
new
szString[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
switch(reason)
{
case 0: format(szString, sizeof (szString), "{FF0000}%s{FFFFFF} has been disconnected in the server. (Timed Out/Crashed)", name);
case 1: format(szString, sizeof (szString), "{FF0000}%s{FFFFFF} has been disconnected in the server. (Quit)", name);
case 2: format(szString, sizeof (szString), "{FF0000}%s{FFFFFF} has been disconnected in the server. (Kicked/Banned)", name);
}
SendClientMessageToAll(-1, szString);
return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)