Raised This Month: $ Target: $400
 0% 

give access only in some cases


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 02-08-2019 , 16:29   Re: give access only in some cases
Reply With Quote #3

in plmenu.sma change an if statement on line 508 from this
PHP Code:
if (!cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED 
to this
PHP Code:
//global variable
can_slay[id]

if (!
cmd_access(idlevelcid1) && can_slay[id])
        return 
PLUGIN_HANDLED

public client_disconnet(id) {
        
can_slay[id] = 0

all you have to do now is create some sort of way to change the can_slay[index] variable to true on certain occasions.
DjSoftero is offline
 



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 07:39.


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