gema
Would you like to react to this message? Create an account in a few clicks or log in to continue.


A website for every gema-assaultcube fan
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log in  

 

 ban function documentation

Go down 
AuthorMessage
Baruch

Baruch


Messages : 105
Joined/Date d'inscription : 2012-08-04
Age : 32
Location/Localisation : France

Gema stats
farthest jump:

ban function documentation Empty
PostSubject: ban function documentation   ban function documentation EmptyWed Sep 12, 2012 5:18 am

It seems the time argument in the ban function isn't in minutes, but in milliseconds, am I right ?

I didn't know why banned players could go back instantly in the server... ^^ (actually after 20 milliseconds)
Back to top Go down
Baruch

Baruch


Messages : 105
Joined/Date d'inscription : 2012-08-04
Age : 32
Location/Localisation : France

Gema stats
farthest jump:

ban function documentation Empty
PostSubject: Re: ban function documentation   ban function documentation EmptyThu Sep 13, 2012 10:55 am

By the way, I just fixed a bug for my autokick/autoban :

I was using this :

function onPlayerDeath(target_cn, actor_cn, gib, gun)
disconnect(actor_cn, 0)
end

But the consequence is that target_cn isn't killed and lags (can't pick items).

I modified it like that :

In the onPlayerDeath handler, when I want to kick, I store the information in a table. In the lualoop handler, when the table isn't empty, I kick the cn stored in the table.
Back to top Go down
 
ban function documentation
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
gema :: International :: Lua-
Jump to: