AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hudmessage With Hp,Name (https://forums.alliedmods.net/showthread.php?t=20137)

broertje 11-02-2005 11:13

Hudmessage With Hp,Name
 
How do i do this:
Code:
new name new health public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_event("ResetHUD", "resetModel", "b") } public resetModel(id, level, cid)             {              get_user_name(id, name)         get_user_health(id,health) set_hudmessage(255, 255, 255, 0.5, -1.0, 0, 6.0, 12.0) show_hudmessage(id, "%s Has %s HP",name,health) }
Its totally messed up but i forgot how i do this,i had it once...
But i cant find it where i saved it

v3x 11-02-2005 11:23

Code:
#include <amxmodx> #define PLUGIN  "My Plugin" #define VERSION "1.0" #define AUTHOR  "broertje" public plugin_init() {   register_plugin(PLUGIN, VERSION, AUTHOR)   register_event("ResetHUD", "resetModel", "b") } public resetModel(id)     {   new name[33]   get_user_name(id,name,32)   new health = get_user_health(id)   set_hudmessage(255, 255, 255, 0.5, -1.0, 0, 6.0, 12.0,_,_,4)   new message[64]   format(message,63,"%s Has %i HP",name,health)   show_hudmessage(id,message) }


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

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