Jump to content
  • 0

Problema la conectare


Question

Posted

Salut, am o problema la un server de mod stunt.

Problema este legata de connectarea la server ..

Deficare data cand intru pe el , cu orice nume as intra , imi da Login in loc de Register ..

Ce pot sa fac in privinta asta ? :(

3 answers to this question

Recommended Posts

Posted

Dute la onplayerconnect si vezi ce trebuie sa ai pentru ati aparea Register.

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Posted

[pawn]public OnPlayerConnect( playerid )

{

    gsString[ 0 ] = EOS;

    new

connecting_ip[ 16 ]

;

GetPlayerIp( playerid, connecting_ip, 16 );

if ( GetNumberOfPlayersOnThisIP( connecting_ip ) > MAX_CONNECTIONS_FROM_IP )

{

    format( gsString, 144, ">> Server-Security << :: IP Ban player '%s'. {FFFF00}Reason: Too many connections from this IP", PlayerName( playerid ) );

SendClientMessageToAll( COLOR_ULTRARED, gsString );

    BanEx( playerid, "Bots Flood" );

    return 1;

}

format( gsQuery, 512, "SELECT * FROM `Banlist` WHERE `IP` = '%s' OR `Name` = '%s'", connecting_ip, PlayerName( playerid ) );

    mysql_query( gsQuery, THREAD_CHECK_BANS_LIST, playerid );

    return 1;

}[/pawn]

Asta imi apare la OnePlayerConnect , fii mai explicit te rog .. sunt nou in lumea scripturilor :D

Deci ... care este problema ? Si , cum o pot repara ? :D

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.