public OnPlayerDisconnect(playerid, reason)
{
new pName[MAX_PLAYER_NAME];
new string[566];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s Desconectou-se do Servidor. (Problemas na conexao)", pName);
case 1: format(string, sizeof(string), "%s Desconectou-se do Servidor. (saiu)", pName);
case 2: format(string, sizeof(string), "%s Desconectou-se do Servidor. (Kickado/Banido Leia As Regras /Regras)", pName);
}
SendClientMessageToAll(Cinza, string);
total--;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new pName[MAX_PLAYER_NAME];
new string[566];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s Desconectou-se do Servidor. (Problemas na conexao)", pName);
case 1: format(string, sizeof(string), "%s Desconectou-se do Servidor. (saiu)", pName);
case 2: format(string, sizeof(string), "%s Desconectou-se do Servidor. (Kickado/Banido Leia As Regras /Regras)", pName);
}
GameTextForAll(string, 2500, 3);
total--;
return 1;
}
GameTextForAll(string, 2500, 3);
SendClientMessageToAll(CINZA, string);
GameTextForAll(string, 2500, 3);
@Junior, este OnPlayerDisconnect й igualzin do meu GameMode... atй a cor...
|