04.04.2014, 15:36
Hello we have a problem
last time we had {server closed connection}
We found the problem where it is
if we put the kick / / kick then you can just join
only then is the problem for a few minutes
joint and someone gets this error
{SendClientMessage (playerid, COLOR_ERROR, "Your IP Has Been Banned Due To Abuse, Visit" WEBSITE "For More Information.");}
but you can just join, but then you do not teloggen or register
so anyone can log in admins acounds
we currently have in the database admin levels put out
For safety, we hope that maybe someone has made along the same
and that the gene on unloading know because we want it to register and login
well have
I hope to comment
This'll be highly appreciated
MvG Rutger
sorry bad english
----------------------------------------------------------------------------------------------------------------
public OnPlayerConnect(playerid)
----------------------------------------------------------------------------------------------------------------
new PIP[56]; //Creates the IP string
GetPlayerIp(playerid, PIP, 56); //Gets the players IP
format(Query, sizeof(Query), "SELECT * FROM banned WHERE IP = '%s'", PIP); //Checks if the players IP is in the database, if so it will kick them
mysql_query(Query);//Queries
mysql_store_result(); //Stores the result
if(mysql_num_rows() != 0) //If the ip is found
{
SendClientMessage(playerid, COLOR_ERROR, "Your IP Has Been Banned Due To Abuse, Visit "WEBSITE" For More Info.");
Kick(playerid);
return 0;
last time we had {server closed connection}
We found the problem where it is
if we put the kick / / kick then you can just join
only then is the problem for a few minutes
joint and someone gets this error
{SendClientMessage (playerid, COLOR_ERROR, "Your IP Has Been Banned Due To Abuse, Visit" WEBSITE "For More Information.");}
but you can just join, but then you do not teloggen or register
so anyone can log in admins acounds
we currently have in the database admin levels put out
For safety, we hope that maybe someone has made along the same
and that the gene on unloading know because we want it to register and login
well have
I hope to comment
This'll be highly appreciated
MvG Rutger
sorry bad english
----------------------------------------------------------------------------------------------------------------
public OnPlayerConnect(playerid)
----------------------------------------------------------------------------------------------------------------
new PIP[56]; //Creates the IP string
GetPlayerIp(playerid, PIP, 56); //Gets the players IP
format(Query, sizeof(Query), "SELECT * FROM banned WHERE IP = '%s'", PIP); //Checks if the players IP is in the database, if so it will kick them
mysql_query(Query);//Queries
mysql_store_result(); //Stores the result
if(mysql_num_rows() != 0) //If the ip is found
{
SendClientMessage(playerid, COLOR_ERROR, "Your IP Has Been Banned Due To Abuse, Visit "WEBSITE" For More Info.");
Kick(playerid);
return 0;