06.10.2013, 18:40
Eu tentei de todas as maneiras mas continua a nao mandar as msg e a remover da team
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
playersconnected--;
new string[999];
if(reason == 0)
{
if(TeamAlien[playerid] == 1) TeamAlien[playerid] = 0, Aliens--;
if(TeamHuman[playerid] == 1) TeamHuman[playerid] = 0; Humans--;
format(string, sizeof(string), "O jogador {ffffff}%s {2CF52C}[ID:{ffffff}%d{2CF52C}] caiu/crashou do servidor.[{ffffff}%d/50{2CF52C}]", GetPlayerNameEx(playerid),playerid,playersconnected);
SendClientMessageToAll(COLOR_GREEN, string);
playersconnected--;
SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
}
else if(reason == 1)
{
if(TeamAlien[playerid] == 1) TeamAlien[playerid] = 0, Aliens--;
if(TeamHuman[playerid] == 1) TeamHuman[playerid] = 0; Humans--;
format(string, sizeof(string), "O jogador {ffffff}%s {2CF52C}[ID:{ffffff}%d{2CF52C}] abandonou o servidor.[{ffffff}%d/50{2CF52C}]", GetPlayerNameEx(playerid),playerid,playersconnected);
SendClientMessageToAll(COLOR_GREEN, string);
SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
return 1;
}
MySQL_SaveAccount(playerid);
return 1;
}