Jump to content

Functions and events


Zed159

Recommended Posts

You need a saving system to save all the banned countries/serials, I'd recommend using SQL functions for that. 

dbConnect
dbExec
dbPoll
dbQuery

And to prevent them from joining you need 

onPlayerConnect -- when player connects
getPlayerSerial -- check if that player has access by his serial or not
getPlayerCountry -- I believe this function can be found in the default admin panel
cancelEvent -- if that X player doesn't have access.

 

Link to comment
2 hours ago, HassoN said:

You need a saving system to save all the banned countries/serials, I'd recommend using SQL functions for that. 


dbConnect
dbExec
dbPoll
dbQuery

And to prevent them from joining you need 


onPlayerConnect -- when player connects
getPlayerSerial -- check if that player has access by his serial or not
getPlayerCountry -- I believe this function can be found in the default admin panel
cancelEvent -- if that X player doesn't have access.

 

Oh my god xdd, db is so hard for me 

I've never used it before

Link to comment
2 hours ago, Zed159 said:

I've got an idea, what about i get the rows from the gridlist and add them to a table? and then i check the countries in the table and ban them?

if it works, give me examples how to insert the countries in the gridlist into a table

I wouldn't recommend that because if you restart your script everything will be gone.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...