30.07.2011, 18:43
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
GetPlayerName(playerid, Nome[playerid], 24);
switch(reason)
{
case 0: format(stringa, sizeof stringa, "%s e` uscito da Italian Las Venturas (Crash)", Nome[playerid]);
case 1: format(stringa, sizeof stringa, "%s e` uscito da Italian Las Venturas", Nome[playerid]);
case 2:
{
format(stringa, sizeof stringa, "%s e` uscito da Italian Las Venturas (Kickato/Bannato)", Nome[playerid]);
PlayCrimeReportForPlayer(playerid, playerid, 3);
}
}
SendClientMessageToAll(-1, stringa);
return 1;
}