Raised This Month: $51 Target: $400
 12% 

How to set access.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lord94
Junior Member
Join Date: Aug 2018
Old 08-25-2019 , 16:27   How to set access.
Reply With Quote #1

Hi,

I'm using Weapon Model Replacement by GHW_Chronic, which is pretty cool plugin and easy to use.


I wanted to add access to it.

sma.
Spoiler


I ADDED:
PHP Code:
public Changeweapon_Hook(id)
{
if(!
is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H){
        return 
PLUGIN_CONTINUE
    

[/PHP]

at this line :
PHP Code:
public Changeweapon_Hook(id)
{
if(!
is_user_alive(id))
    {
        return 
PLUGIN_CONTINUE
    

But it had no effect :/ Anny suggestions?
Lord94 is offline
thEsp
BANNED
Join Date: Aug 2017
Old 08-25-2019 , 16:30   Re: How to set access.
Reply With Quote #2

Code:
if(!is_user_alive(id) || !(get_user_flags(id) & ADMIN_LEVEL_H))
thEsp is offline
Lord94
Junior Member
Join Date: Aug 2018
Old 08-25-2019 , 16:50   Re: How to set access.
Reply With Quote #3

Did the trick, Thanks
Lord94 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 07:59.


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