Advertisement
DraKiNs

[COD] Reconectar Players

Jul 1st, 2011
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.78 KB | None | 0 0
  1. new
  2.     bool:AdoramosQueijo = false,
  3.     sString[128] = {EOS, ...};
  4.  
  5. public OnPlayerDisconnect(playerid, reason)
  6. {
  7.     if(AdoramosQueijo) {
  8.         GetPlayerIp(playerid, sString, 16);
  9.         format(sString, 32, "unbanip %s", sString);
  10.         SendRconCommand(sString);
  11.     }
  12.     return true;
  13. }
  14.  
  15.  
  16. stock reconnectPlayers( playerid )
  17. {
  18.     AdoramosQueijo = true;
  19.     for(new i; i < MAX_PLAYERS; i++ ) {
  20.         if(!IsPlayerConnected( i )) continue;
  21.  
  22.         GetPlayerIp(i, sString, 16);
  23.         format(sString, 32, "banip %s", sString);
  24.         SendRconCommand(sString);
  25.     }
  26.     return AdoramosQueijo = false, true;
  27. }
  28. /*
  29.          Reconnect All Players
  30.      @Developed: Gibson and DraKiNs    
  31.      @Url:www.ips-team.blogspot.com
  32.  
  33.       (c) Copyright [iPs]TeaM 2011
  34. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement