28.09.2012, 14:38
Nothing.....
new bool: isRelogging[MAX_PLAYERS], relogPlayerIP[MAX_PLAYERS][17];
public OnPlayerDisconnect(playerid)
{
if(isRelogging[playerid])
{
new string[30];
isRelogging[playerid] = false;
format(string, sizeof(string), "unbanip %s", relogPlayerIP[playerid]);
SendRconCommand(string);
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/relog", true))
{
new string[30];
isRelogging[playerid] = true;
GetPlayerIp(playerid, relogPlayerIP[playerid], 17);
format(string, sizeof(string), "banip %s", relogPlayerIP[playerid]);
SendRconCommand(string);
SendClientMessage(playerid, -1, "Reconnecting...");
return 1;
}
return 0;
}
new bool: isRelogging[MAX_PLAYERS], relogPlayerIP[MAX_PLAYERS][17];
public OnPlayerDisconnect(playerid)
{
if(isRelogging[playerid])
{
new string[30];
isRelogging[playerid] = false;
format(string, sizeof(string), "unbanip %s", relogPlayerIP[playerid]);
SendRconCommand(string);
}
return 1;
}
COMMAND:relog(playerid, params[])
{
new string[30];
isRelogging[playerid] = true;
GetPlayerIp(playerid, relogPlayerIP[playerid], 17);
format(string, sizeof(string), "banip %s", relogPlayerIP[playerid]);
SendRconCommand(string);
SendClientMessage(playerid, -1, "Reconnecting...");
return 1;
}
pawn Код:
pawn Код:
|