AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [Request] Plugin (https://forums.alliedmods.net/showthread.php?t=318636)

Supremache 09-11-2019 09:07

[Request] Plugin
 
i want this plugins guys please. i dont know name of this plugin
Hud info ?? - Player hud info ?? - I made search about those name but i didn't find it :(
If anyone have this plugin please give me
Demo : https://i.ibb.co/ZJ2jhfn/Untitled.png

Dragos 09-11-2019 14:53

Re: [Request] Plugin
 
Modifice you space

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "Hud"
#define VERSION "1.0"
#define AUTHOR "Deza"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
set_task(1.0"top_info",1,"",0,"b")
}

public 
top_info(id) {
    
    new 
hp get_user_health(id)
    new 
ap get_user_armor(id)
    new 
money cs_get_user_money(id);
    
    
set_hudmessage(02552550.0, -1.006.012.0)
    
show_hudmessage(id"//*************\\^n|>| Health: %d    ^n|>| Armor: %d    ^n|>|Money: %d     ^n|>| FreeVIP 24/7^n\\************//",hp,ap,money)



Dragos 09-11-2019 15:07

Re: [Request] Plugin
 
https://i.imgur.com/A6snxy1.png

thEsp 09-11-2019 15:13

Re: [Request] Plugin
 
@dragos There's no need to create a variable each second. Just pass them directly. And yeah, as Oci said, that won't work at all (for every player). Just create a loop (0 to {playersnum}) and do the main thing.

Supremache 09-11-2019 15:19

Re: [Request] Plugin
 
Thx But Make it Down Of Map please.. and Remove Free Vip only Class and money and health


Quote:

Originally Posted by Dragos (Post 2666680)
Modifice you space

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "Hud"
#define VERSION "1.0"
#define AUTHOR "Deza"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
set_task(1.0"top_info",1,"",0,"b")
}

public 
top_info(id) {
    
    new 
hp get_user_health(id)
    new 
ap get_user_armor(id)
    new 
money cs_get_user_money(id);
    
    
set_hudmessage(02552550.0, -1.006.012.0)
    
show_hudmessage(id"//*************\\^n|>| Health: %d    ^n|>| Armor: %d    ^n|>|Money: %d     ^n|>| FreeVIP 24/7^n\\************//",hp,ap,money)




OciXCrom 09-11-2019 16:24

Re: [Request] Plugin
 
Down of map?!
Can't you remove them yourself? It's not that hard to figure out what you remove in 10 lines of code.
Actually, that plugin won't work properly. There is no "id" in a global event.

Natsheh 09-12-2019 00:46

Re: [Request] Plugin
 
Retrieve players in an 32 cell array using Get_players and pass the array and a 1d variable to the get_players native remove param id from the function

NooTy 09-16-2019 15:09

Re: [Request] Plugin
 
deza xd

NooTy 09-16-2019 15:14

Re: [Request] Plugin
 
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "Hud"
#define VERSION "1.0"
#define AUTHOR "NooTy"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(1.0, "top_info",1,"",0,"b")
}

public top_info(id) {

new hp = get_user_health(id)
new ap = get_user_armor(id)
new money = cs_get_user_money(id);

set_hudmessage(0, 255, 255, 0.5, 1.6, 0, 1.0, 1.1, 0.0, 0.0, -1)
show_hudmessage(id, "//*************\\^n|>| Health: %d ^n|>| Armor: %d ^n|>|Money: %d ^n\\************//",hp,ap,money)
}

OciXCrom 09-16-2019 16:45

Re: [Request] Plugin
 
@NooTy - great job! You know how to change the author name. I'm sure someone out there is proud of you.


All times are GMT -4. The time now is 18:48.

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