22.03.2012, 20:35
pawn Код:
public OnPlayerDisconnect(playerid, reason) //This is From my Script Simple Join and Leave Messages
{
new name[24];
GetPlayerName(playerid, name, sizeof name);
new string[128];
switch(reason) {
case 0: format(string, sizeof(string), "%s has left the server. (Lost Connection)", name);
case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", name);
case 2: format(string, sizeof(string), "%s has left the server. (Kicked/Banned)", name);
}
SendClientMessageToAll(0x880088FF, string);
return 1;
}