SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 08/09/2016, 02:06 PM   #21
jlalt
High-roller
 
Join Date: Oct 2014
Posts: 1,324
Reputation: 304
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Quote:
Originally Posted by Gammix View Post
It depends on how many max instances you set to before inclusion. If you are looping through all users, you should make sure you set the INI_MAX_INSTANCES to the max users/players.

I would suggest to use dini_Timeout instead when you are looping through all users, and keep the max instances value less. Or set the INI_MAX_TIMEOUT to very small value, say 50ms!
I know its not its place but I had to post lol:

Yea that worked, however passwords bugged yet.
the function which creating user with password is:
PHP Code:
stock udb_Create(nickname[],pwd[]) {
  if (
udb_Exists(nickname)) return false;
  new 
fname[MAX_STRING];
  
format(fname,sizeof(fname),"ladmin/users/%s.sav",udb_encode(nickname));
  
dini_Create(fname);
  
udb_UserSetInt(nickname,"password_hash",udb_hash(pwd));
  return 
true;
}

stock udb_UserSetInt(nickname[],key[],value) {
  new 
fname[MAX_STRING];
  
format(fname,sizeof(fname),"ladmin/users/%s.sav",udb_encode(nickname));
  return 
dini_IntSet(fname,key,value);

Sorry jake to turn your topic to dini topic o.o
jlalt is offline   Reply With Quote
Old 08/09/2016, 02:17 PM   #22
AndySedeyn
High-roller
 
AndySedeyn's Avatar
 
Join Date: Feb 2014
Location: Belgium
Posts: 1,339
Reputation: 681
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Quote:
Originally Posted by jlalt View Post
On topic: Well done JaKe, by the way you've escaped player name on all querys except the query in saveplayer function xD.
however I am pretty sure escaping player name is not necessary.
All database inputs should be escaped!
AndySedeyn is offline   Reply With Quote
Old 08/09/2016, 02:21 PM   #23
jlalt
High-roller
 
Join Date: Oct 2014
Posts: 1,324
Reputation: 304
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Quote:
Originally Posted by AndySedeyn View Post
All database inputs should be escaped!
if a input being hashed / its numeric gotta escape it too?
however you can't put space, ' symobl , `symbol or ; symbol in your name how you would you do injection without them?
jlalt is offline   Reply With Quote
Old 08/09/2016, 02:31 PM   #24
HeLiOn_PrImE
High-roller
 
HeLiOn_PrImE's Avatar
 
Join Date: Jul 2010
Location: Cluj Napoca, Romania
Posts: 2,839
Reputation: 384
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Quote:
Originally Posted by JaKe Elite View Post
I am not good at setting up the MySQL servers so yaaa.. been a big problem for me since 2012.
You can set up a local MySQL server in like 5 minutes using WAMP.
I won't push on it, but I'm telling you, it ain't that hard. Just consider it in the future.
__________________

"It's only a game, but people are real. You have to respect them." - Mick88
"You don't deserve a +rep, if you ask for it. Those who deserve it, don't have to ask." - me

HeLiOn_PrImE is offline   Reply With Quote
Old 08/09/2016, 03:01 PM   #25
JaKe Elite
High-roller
 
JaKe Elite's Avatar
 
Join Date: Apr 2012
Location: Philippines
Posts: 3,630
Reputation: 444
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

There is a problem though that avoids me from using MySQL, I am using Windows XP which is very old and not compatible on today's plugins ; I have few reasons why I am still using XP and don't even ask why the hell am I using it... (Latest version of MySQL doesn't run well on my PC however the older version runs smoothly)
__________________

Click here to connect to Opis Gaming Roleplay
Known as Elaine Patterson on Opis-Gaming Roleplay (Server Admin)
JaKe Elite is offline   Reply With Quote
Old 08/09/2016, 03:22 PM   #26
SyS
High-roller
 
SyS's Avatar
 
Join Date: Oct 2015
Posts: 1,974
Reputation: 424
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Quote:
Originally Posted by JaKe Elite View Post
There is a problem though that avoids me from using MySQL, I am using Windows XP which is very old and not compatible on today's plugins ; I have few reasons why I am still using XP and don't even ask why the hell am I using it... (Latest version of MySQL doesn't run well on my PC however the older version runs smoothly)
dual boot....
__________________

SyS is offline   Reply With Quote
Old 08/09/2016, 03:49 PM   #27
Quinncell
Guest
 
Posts: n/a
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

I get that Harley Quinn is hot but do you have to be a crazy fan girl/boy lol?
The edit is really good, well done Harley!
  Reply With Quote
Old 08/09/2016, 05:26 PM   #28
markparker12
Banned
 
Join Date: Sep 2015
Posts: 217
Reputation: 25
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Quote:
Originally Posted by JaKe Elite View Post
There is a problem though that avoids me from using MySQL, I am using Windows XP which is very old and not compatible on today's plugins ; I have few reasons why I am still using XP and don't even ask why the hell am I using it... (Latest version of MySQL doesn't run well on my PC however the older version runs smoothly)
Quote:
Originally Posted by Sreyas View Post
dual boot....
Or use virtual machine even better.
markparker12 is offline   Reply With Quote
Old 08/09/2016, 06:19 PM   #29
Crystallize
High-roller
 
Join Date: Aug 2013
Posts: 1,553
Reputation: 293
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Code:
     Connect to your server with LAdmin loaded into your server.
    Login to your RCON (/rcon login [your rcon password])
    Type /setlevel [your level] 5
a typo in /setlevel [your level] should be [your id] :P
Nice release , I know you've worked hard on this one
Crystallize is online now   Reply With Quote
Old 08/09/2016, 10:46 PM   #30
JaKe Elite
High-roller
 
JaKe Elite's Avatar
 
Join Date: Apr 2012
Location: Philippines
Posts: 3,630
Reputation: 444
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Thank you so much for the compliments guys!

@KeithCooper; Cos Harley Quinn is baee, shee mah girl chu know. So fuck em Joker

@Wizzard2H; Fixed
__________________

Click here to connect to Opis Gaming Roleplay
Known as Elaine Patterson on Opis-Gaming Roleplay (Server Admin)
JaKe Elite is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lethal Admin Script legodude Scripting Help 1 17/03/2012 06:39 PM
lethal admin script Face9000 Help Archive 0 06/09/2010 10:28 AM
LethaL's adminscript Libra Help Archive 6 08/05/2010 04:59 PM


All times are GMT. The time now is 09:16 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.