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

Reqeust Editing Hook Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The Storm Cstrike
Junior Member
Join Date: Mar 2018
Old 03-24-2018 , 01:49   Reqeust Editing Hook Plugin
Reply With Quote #1

Hello, can one of alliedmods scripter help me please,
i want him to edit hook + grab + rope plugin for making it for only the owner that have this acces
abcdefghijklmnopqrstu
plugin link: https://forums.alliedmods.net/showthread.php?t=41054
The Storm Cstrike is offline
massouh2004
Junior Member
Join Date: Mar 2018
Location: Casablanca, Morocco.
Old 03-24-2018 , 08:18   Re: Reqeust Editing Hook Plugin
Reply With Quote #2

I can tell you how to do it, but I'll not edit the code for you:
PHP Code:
#define is_user_admin(%1)   (get_user_flags(%1) & ADMIN_IMMUNITY)
..

    if(
is_user_admin(id)) 
    {  ... 
It's so simple, you can do it, right?
massouh2004 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 03-24-2018 , 09:13   Re: Reqeust Editing Hook Plugin
Reply With Quote #3

Quote:
Originally Posted by massouh2004 View Post
I can tell you how to do it, but I'll not edit the code for you:
PHP Code:
#define is_user_admin(%1)   (get_user_flags(%1) & ADMIN_IMMUNITY)
..

    if(
is_user_admin(id)) 
    {  ... 
It's so simple, you can do it, right?
read_flags would do the job.
__________________
Relaxing is offline
The Storm Cstrike
Junior Member
Join Date: Mar 2018
Old 03-24-2018 , 10:33   Re: Reqeust Editing Hook Plugin
Reply With Quote #4

i don't know how ? please make it for me
The Storm Cstrike is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 03-24-2018 , 12:31   Re: Reqeust Editing Hook Plugin
Reply With Quote #5

My mistake, forgot about has_all_flags.
You basically create an bool sort of array and set it on true when player has_all_flags() on client_authorized event. On disconnect(ed) set it false.
__________________
Relaxing is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 03-24-2018 , 12:51   Re: Reqeust Editing Hook Plugin
Reply With Quote #6

Storm most people here knows what to do but are lazy to make whole thing they will give you hints And you should learn these simple things yourself by looking in other plugins or by taking look here : http://www.amxmodx.org/api/

And Relaxing is one of laziest here xD
instinctpt1 is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 03-25-2018 , 00:15   Re: Reqeust Editing Hook Plugin
Reply With Quote #7

Just change this line:
PHP Code:
#define ADMIN_LEVEL_Q    ADMIN_LEVEL_C 
Change the admin level ( ADMIN_LEVEL_C ) to one that only owner has: like immunity (ADMIN_IMMUNITY) or Rcon (ADMIN_RCON)
If you don't know flag and their levels see here:
http://amxmodx.org/api/amxconst

See Admin Level constants there.

Last edited by WhiteFang1319; 03-25-2018 at 00:16.
WhiteFang1319 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 11:31.


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