This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

regardin giving access flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 12-08-2011 , 23:22   regardin giving access flags
Reply With Quote #1

Hello. So i;m trying to make something like this:

new const someflags[] = "b" //slot access

public client_connect(id)
{
check_player(id) // Function will check if the player exists in a .ini file
if exists {
remove_user_flags(id, ADMIN_USER)
set_user_flags(id, read_flags(someflags))
}
}

I mention that i use an mysql database for admins, so this is something separately and i don;t want to mess with it.
What i'm trying to do is to give that player some flags predetermined by me(on on them being slot access). But all my attempts failed ... no slots reservation. So how can i do this to work? If i try to give some other flags, when connected it may work ... but with slot access idk, i can't get it to work. I'd wish to have a preconnect function Any ideas ?
EDUTz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-08-2011 , 23:28   Re: regardin giving access flags
Reply With Quote #2

You have to beat the admin reservation plugin. First I would try putting your plugin in front of the admin reservation plugin. If that doesn't work then add your check to the admin reservation plugin.
__________________
fysiks is offline
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 12-11-2011 , 23:52   Re: regardin giving access flags
Reply With Quote #3

thanks fysiks, eventualy found admins_push to do the job.
Close this thread
EDUTz is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 21:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode