AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to set access. (https://forums.alliedmods.net/showthread.php?t=318347)

Lord94 08-25-2019 16:27

How to set access.
 
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?

thEsp 08-25-2019 16:30

Re: How to set access.
 
Code:
if(!is_user_alive(id) || !(get_user_flags(id) & ADMIN_LEVEL_H))

Lord94 08-25-2019 16:50

Re: How to set access.
 
Did the trick, Thanks :D


All times are GMT -4. The time now is 17:22.

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