A website for every gema-assaultcube fan
 
HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  

Share | 
 

 ban function documentation

View previous topic View next topic Go down 
AuthorMessage
Baruch



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

Gema stats
farthest jump:

PostSubject: ban function documentation   Wed 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
View user profile
Baruch



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

Gema stats
farthest jump:

PostSubject: Re: ban function documentation   Thu 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
View user profile
 
ban function documentation
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Median XL: Ultimative - Documentation
» Median XL Ultimative v6b Offline Documentation v2.1
» Median XL Documentation (English + Chinese)
» MXL: Ultimative v7 HTML Documentation v2.3pre
» Documentation in .pdf Format?

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