Raised This Month: $ Target: $400
 0% 

Help with first plugin please


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
BRUm
Junior Member
Join Date: May 2005
Location: UK
Old 05-07-2005 , 14:42   Help with first plugin please
Reply With Quote #1

Hi, i've decided to make a simple plugin. The basic and only origional idea I could think of, was to make, on map startup, a message being displayed on every player's HUD, and their health being set to a random amount.

I've got this so far, and have got stuck

Code:
#include <amxmodx> new PLUGIN[]="Nerd's revenge" new AUTHOR[]="BRUm" new VERSION[]="1.00" public plugin_init() {      register_plugin(PLUGIN, VERSION, AUTHOR)      register_concmd("admin_nerd", "cmd_nerd", ADMIN_CHAT, "admin_nerd") } public cmd_nerd(id, level, cid) {      //This will check if the user calling the command has the right access level.        if (!cmd_access(id, level, cid, 0)) {           //This terminates the command           return PLUGIN_HANDLED      }      //This prints a message to all clients      client_print(0, print_chat, "YoU hAvE bEeN cUrSeD bY tEh EvIl nErD!")      return PLUGIN_HANDLED }
__________________
#1 Aim/WC3 server - tab.no-ip.com
#1 Webhosting - xwebhost.co.uk
-----------------------------------------
BRUm is offline
Send a message via MSN to BRUm
 



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


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