Raised This Month: $ Target: $400
 0% 

Help me please with some basic stuff


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Anthraxnz
Senior Member
Join Date: May 2005
Location: New Zealand
Old 05-24-2005 , 02:53   Help me please with some basic stuff
Reply With Quote #1

iv been learning to cod in c# and c++ for about the last 14 weeks and have decided to try and write a amxx plugin.

my problem is i dont know what im really doing, even tho i read those tutorials.

im trying to make some dumb program to display cvars such as the rcon_password one but for some reason i cant figure out how to get it to work

heres what iv got so far.
Code:
#include <amxmodx> #include <amxmisc> new plugin[]="Rcon Commander" new author[]="Anthrax" new version[]="1.00" public plugin_init() {     register_plugin(plugin,author,version)     register_concmd("amx_rconpw","cmd_rcon_password",ADMIN_RCON," Returns the value of R-pw")     } public cmd_rcon_password(id,level,cid) {     new password[20]     if ( ! cmd_access( id, level, cid, 0 ) )     {         console_print(id, "Access Denied")         return PLUGIN_HANDLED     }     get_cvar_string("rcon_password",password,20)     console_print(id,"Rcon pw is: ", password )         return PLUGIN_HANDLED }

it's just basicly a rip of the one that comes with amxx but i dont want it to change any values, just display the value of whats been hardcoded
your help is much welcomed
Anthraxnz is offline
 



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:45.


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