Raised This Month: $ Target: $400
 0% 

How to make so i need a other Access Flag to use it.....


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
B-v-G
Member
Join Date: Aug 2005
Old 12-11-2005 , 13:13   How to make so i need a other Access Flag to use it.....
Reply With Quote #1

How to do it.

register_concmd("amx_heal","admin_heal",ADMIN _LEVEL_A,"<authid, nick, @team or #userid> <life to give>")


I tried to change ADMIN_LEVEL_A to ADMIN_LEVEL_T(custom level H)
But when i change that, I couldnīt complie it so i gues that was wrong..
What should i change?
B-v-G is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 12-11-2005 , 13:16  
Reply With Quote #2

You need to define what ADMIN_LEVEL_T is.
Example:
ADMIN_IMMUNITY = (1<<0)

So you would have to define ADMIN_LEVEL_T as (1<<21) [in amxconst], and make sure the user has the "v" flag.
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
VEN
Veteran Member
Join Date: Jan 2005
Old 12-12-2005 , 03:36   Re: How to make so i need a other Access Flag to use it.....
Reply With Quote #3

Quote:
Originally Posted by B-v-G
ADMIN_LEVEL_T(custom level H)
custom level H is ADMIN_LEVEL_H
VEN is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 12-12-2005 , 04:11  
Reply With Quote #4

amxmod/scripting/include/amxconst.inc
__________________
bmann_420 is offline
shero_rocks(cool)
Junior Member
Join Date: Dec 2005
Old 12-12-2005 , 16:41  
Reply With Quote #5

i know this is really off topic but do you gus have a tutorial for learning to script plz i need to make a plugin
shero_rocks(cool) is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 12-12-2005 , 17:18  
Reply With Quote #6

If you need it that bad request it. Especially if its going to be complex. Only because if you make it yourself it will most likly have so many bugs you will either give up or not know you have them.

But use the search button there have been a lot of tutorials.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
atomic
Veteran Member
Join Date: Jan 2005
Location: What The Foot?
Old 12-12-2005 , 19:17  
Reply With Quote #7

Quote:
Originally Posted by shero_rocks(cool)
i know this is really off topic but do you gus have a tutorial for learning to script plz i need to make a plugin
Why did you post a question about where you could learn how to script in a total useless post that is not the same subject that the........ auhtor decided?

*ran out of air*
__________________
atomic is offline
B-v-G
Member
Join Date: Aug 2005
Old 12-16-2005 , 07:33  
Reply With Quote #8

do i have to change both or one of these:

register_concmd("amx_heal","admin_heal",ADMIN _LEVEL_A,"<authid, nick, @team or #userid> <life to give>")



if (!(get_user_flags(plist[i])&ADMIN_LEVEL_A)&&!ids[plist[i]])



(This was in the same sma)
B-v-G is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 12-16-2005 , 07:43  
Reply With Quote #9

Code:
if(!cmd_access(id, level, cid, 3))     return PLUGIN_HANDLED;
3 is the number of arguments that the command contains. Say you are using amx_heal..

amx_heal <player> <amount>
  • arg 0 = amx_heal
  • arg 1 = <player>
  • arg 2 = <amount>
So you have 3 in that case because the command itself counts, too.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 12-16-2005 , 16:28  
Reply With Quote #10

UUU UUUU, I learnd something new today, thankx v3x Sorry I dont read the tut's very much too busy, but its nice to get usefull info like that in tidbits every now and then to understand better
__________________
bmann_420 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 16:07.


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