Skip to content

Instantly share code, notes, and snippets.

@Dronr
Created July 17, 2015 06:21
Show Gist options
  • Save Dronr/f821ef098d57e69903ff to your computer and use it in GitHub Desktop.
Save Dronr/f821ef098d57e69903ff to your computer and use it in GitHub Desktop.
CMD:clearreconnect(playerid, params[])
{
if(!AcceptWrite(playerid)) return 1;
if(pData[playerid][IsAdmin] <= 8) return 1;
ClearReconnect();
SendClientMessage(playerid,COLOR_YELLOW,"Reconnect list cleaner");
return true;
}
stock ClearReconnect()
{
for(new i=0; i<MAX_PLAYERS; i++) DeleteSVar(pData[i][CurrentIP]);
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment