Raised This Month: $ Target: $400
 0% 

1st plugin -> help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lagayo
Junior Member
Join Date: Mar 2012
Old 03-06-2013 , 07:38   1st plugin -> help
Reply With Quote #1

well, im learning c++ on school , almost 1 year of c++ programming, i ever wanted to make my own cs plugins, now that i know a programming language i think i can learn pawn, but i need some help to start, i already read lots of tutorials, and im trying to make my first plugin.

thats what i got so far:
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "give_he"
#define VERSION "1.0"
#define AUTHOR "Lagayo"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_concmd("amx_givehe","cmd_givehe"ADMIN_BAN,"<target>")
}


public 
cmd_givehe(id,level,cid)
{
    if (!
cmd_access(idlevelcid3))
        return 
PLUGIN_HANDLED

so got stuck on coding the comand(the hardest part and the one you need to learn some skills)
so im asking if anyone can finish this plugin, comenting EVERY line so i can understand it better ;)

Thank you
lagayo 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 21:47.


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