AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   First plugin - uhoh (https://forums.alliedmods.net/showthread.php?t=13271)

exolent 05-10-2005 06:23

First plugin - uhoh
 
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? :D

LynX 05-10-2005 06:44

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 }

exolent 05-10-2005 14:40

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

LynX 05-10-2005 18:21

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 )

Belsebub 05-12-2005 01:14

LynX you dont need return PLUGIN_CONTINUE in plugin_init


All times are GMT -4. The time now is 16:44.

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