Raised This Month: $91 Target: $400
 22% 

Need cvar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SaintK
Veteran Member
Join Date: Mar 2004
Old 03-12-2004 , 11:29   Need cvar
Reply With Quote #1

Hey all,
first of all, great u started the new project! AMX is good, but it can be better! Tnx again!

Second, i need sumthin

Ill explane,

i want admins to be able to do amx_scan (part of)playername

When u do that on the client should happen:

say /scan

Currently i have this fixed by:
amx_exec *playerID* "say /scan"

But its alot of typing, so can any of u create this cvar what i can put in the plugin?

Thanks in advanced!

Saint K.
SaintK is offline
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 03-16-2004 , 23:02   Get ya started
Reply With Quote #2

Try this to start out:

Code:
public plugin_init() {     register_plugin("Scan","0.1","SaintK")     register_concmd("amx_scan","admin_scan",ADMIN_KICK,"<name>" } public admin_predator(id,level,cid) {     if(!cmd_access(id,level,cid,3))     {         return PLUGIN_HANDLED     }     new name[32]     read_argv(1,name,32)     new player = cmd_target(id,name,3)     get_user_info(name)     // BLAH BLAH // }
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 03-17-2004 , 18:37   Did this help?
Reply With Quote #3

If you need any mroe help Ill be glad to help you out.
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-17-2004 , 18:46  
Reply With Quote #4

Code:
register_concmd("amx_scan","admin_scan",ADMIN_KICK,"<name>"
Freecode is offline
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 03-17-2004 , 22:57   Re: Get ya started
Reply With Quote #5

Quote:
Originally Posted by knekter
Try this to start out:

Code:
public plugin_init() {     register_plugin("Scan","0.1","SaintK")     register_concmd("amx_scan","admin_scan",ADMIN_KICK,"<name>" } public admin_predator(id,level,cid) {     if(!cmd_access(id,level,cid,3))     {         return PLUGIN_HANDLED     }     new name[32]     read_argv(1,name,32)     new player = cmd_target(id,name,3)     get_user_info(name)     // BLAH BLAH // }
haha

anyone notice admin_predator

should be admin_scan

That and I think freecode is trying to point out that line is missing a )
__________________

BigBaller is offline
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 03-18-2004 , 19:14   LOL
Reply With Quote #6

Code:
public plugin_init() {     register_plugin("Scan","0.1","SaintK")     register_concmd("amx_scan","admin_scan",ADMIN_KICK,"<name>") } public admin_scan(id,level,cid) {     if(!cmd_access(id,level,cid,3))     {         return PLUGIN_HANDLED     }     new name[32]     read_argv(1,name,32)     new player = cmd_target(id,name,3)     get_user_info(name)     // BLAH BLAH // }

theres the mistakes fixed, sry about that [/small]
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 03-21-2004 , 21:30   lol
Reply With Quote #7

its nice to know if I helped you at all, you didnt even reply if it worked or not, plz reply if you can. Im still a learner myself, and I enjoy helping others.
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
SaintK
Veteran Member
Join Date: Mar 2004
Old 03-22-2004 , 02:17  
Reply With Quote #8

yeah sorry, i am happy with the help tho, but i was kinda busy last week with work and stuff!

I am fighting with the script ;) So i probbarly need more help, but next weekend i can work on it again!

Sorry again for late reaction!
SaintK is offline
Reply


Thread Tools
Display Modes

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 06:14.


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