03.11.2011, 23:37
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
SalvarPlayer(playerid);
SendDeathMessage(INVALID_PLAYER_ID,playerid,201);
DestroyVehicle(GetPVarInt(playerid,"Veiculo"));
if(ServerInfo[ConectMsg] == 1){
new string[76];
GetPlayerName(playerid,NomeP,sizeof(NomeP));
switch(reason)
{
case 0: format(string, sizeof(string),"[HS]--> %s Saiu Do Servidor (Caiu a Conexгo Ou Crash)",NomeP);
case 1: format(string, sizeof(string),"[HS]--> %s Saiu Do Servidor",NomeP);
case 2: format(string, sizeof(string),"[HS]--> %s Saiu Do Servidor(Foi banido)",NomeP);
}
SendClientMessageToAll(cinza,string);
}
return 1;
}