AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Could some one tell me? (https://forums.alliedmods.net/showthread.php?t=159674)

usaexelent 06-20-2011 06:29

Could some one tell me?
 
I want to know how to use register_event , if theres some where a tutorial I would really like if you give me the link.
I tried to use it like this:

Code:


/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#define PLUGIN "New plugin"
#define VERSION "1.0"
#define AUTHOR "Me :D"


public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_event("DeathMsg", "Function", "de");
        }


public Function(id)
{
        set_hudmessage(0, 255, 0, -1.0, -1.0)
        show_hudmessage(id, "Your dead")
       
}


Arkshine 06-20-2011 06:50

Re: Could some one tell me?
 
Next time, search yourself in the tutorials section before asking

https://forums.alliedmods.net/showth...register_event

usaexelent 06-20-2011 06:55

Re: Could some one tell me?
 
Thanks a lot, I didn't noticed that tutorial sorry.


All times are GMT -4. The time now is 23:27.

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