AlliedModders

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

broertje 10-16-2005 15:13

Help Needed For Showing Hudmessage With Name,Hp,Ammo,...
 
I Dont get it,its totally wrong....:
Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "New Plugin" #define VERSION "1.0" #define AUTHOR "Author" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_clcmd("say /myinfo", "sayInfo", 0, "- displays You're Info") } public sayInfo(id) get_user_ammo(id) get_user_health(id) get_user_name(id) set_hudmessage(255, 0, 0, -1.0, 0.00, 0, 6.0, 4.0) show_hudmessage(id, "Name:%s , %d , %L") }

Zenith77 10-16-2005 15:18

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "My Info" #define VERSION "1.0" #define AUTHOR "Zenith77" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_clcmd("say /myinfo", "sayInfo", 0, "- displays You're Info") } public sayInfo(id) {         new weapon, clip, ammo     new health     new name[32]     get_user_ammo(id, weapon, clip, ammo)         health = get_user_health(id)         get_user_name(id, name, 31)         set_hudmessage(255, 0, 0, -1.0, 0.00, 0, 6.0, 4.0)         show_hudmessage(id, "Name:%s  AMMO: %d HP:%d", name, ammo, health) }

broertje 10-16-2005 15:19

thx


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

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