Raised This Month: $ Target: $400
 0% 

[small]Help with 1st plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-08-2009 , 16:33   Re: [small]Help with 1st plugin
Reply With Quote #2

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN_NAME "Welcome Message" #define PLUGIN_VERSION "0.5" #define PLUGIN_AUTHOR "Dotcom" public plugin_init()   // function to register the plugin {     register_plugin (PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)         } public client_putinserver(id)  // fuction to register that the user has entered the server {     set_task(5.0, "print_msg", id)     set_task(15.0, "hud_msg", id) } public print_msg(id)  // function to print a message {     client_print(id, print_chat, "Welcome, this is my first plugin") } public hud_msg(id) {     set_hudmessage(0, 255, 0, -1.0, -1.0)     show_hudmessage(id, "hey world!") }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 08:54.


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