Raised This Month: $ Target: $400
 0% 

First plugin - uhoh


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
exolent
Junior Member
Join Date: May 2005
Location: Westfield, MASS
Old 05-10-2005 , 06:23   First plugin - uhoh
Reply With Quote #1

I just started my first plugin after reading all the docs and looking at source codes. Im trying to make my own giveitem, plugin for The specialist. I got stuck very quickly lol
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <tsx> new PLUGIN[]="Item_Giving" new AUTHOR[]="exolenT" new VERSION[]="1.0Beta" public plugin_init() {     register_plugin(PLUGIN, AUTHOR, VERSION)     register_concmd("amx_giveitem", "cmd_gitem", ADMIN_SLAY, "<target>")

Can anyone help?
__________________
exolent is offline
Send a message via AIM to exolent Send a message via MSN to exolent
LynX
Veteran Member
Join Date: Oct 2004
Old 05-10-2005 , 06:44  
Reply With Quote #2

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <tsx> new PLUGIN[]="Item_Giving" new VERSION[]="1.0Beta" new AUTHOR[]="exolenT" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_concmd("amx_giveitem", "cmd_gitem", ADMIN_SLAY, "<target>") return PLUGIN_CONTINUE }
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
exolent
Junior Member
Join Date: May 2005
Location: Westfield, MASS
Old 05-10-2005 , 14:40  
Reply With Quote #3

ok, how do u direct it to a person ? player[32] (id) or sumthing and, do you have to define the items ? or is that from tsx.inc
__________________
exolent is offline
Send a message via AIM to exolent Send a message via MSN to exolent
LynX
Veteran Member
Join Date: Oct 2004
Old 05-10-2005 , 18:21  
Reply With Quote #4

Errrmmm, you might want to read AMXX tutorial again, since it doesn't work without public function. Look at admin A.A.I.O. plugin ( Admin-All-In-One plugin )
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
Belsebub
Senior Member
Join Date: Feb 2005
Location: Sweden
Old 05-12-2005 , 01:14  
Reply With Quote #5

LynX you dont need return PLUGIN_CONTINUE in plugin_init
Belsebub 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 16:44.


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