02.03.2009, 14:39
sorry, i didnt have enough time to test this out so ill ask you guys if you know it will work
thanks
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
if(reason == 0)
{
format(string, sizeof(string), "* %s (%d) Has Left. (Timeout)", pName, playerid);
}
else if(reason == 1)
{
format(string, sizeof(string), "* %s (%d) Has Left. (Quit)", pName, playerid);
}
else if(reason == 2)
{
format(string, sizeof(string), "* %s (%d) Has Left. (Kicked)", pName, playerid);
}
SendClientMessageToAll(COLOR_GREY,string);
return 1;
}