PDA

View Full Version : Cerere plugin infoPlayers [REZOLVAT]



LuXoKINGGaming
09-04-2018, 03:49 PM
Plugin: infoplayers
Description: players Onpe Info menu i can't Add info Nick Players Onpe Menu player information
Mode:zombieplague
Version: 3.9
Author: LuXo KING Gaming
Flags: Note No Access
Thank you!

Note i Give Code Sma

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

public plugin_init() {
register_plugin("[LU] Info Player", "3.9", "LuXo KING Gaming")

register_clcmd("say /info","PlayerInfoMenu")
register_clcmd("say_team /info","PlayerInfoMenu")

register_clcmd("say info","PlayerInfoMenu")
register_clcmd("say_team info","PlayerInfoMenu")

}

public PlayerInfoMenu(id)
{

new name[32]; get_user_name(id, name, 31)
new userid[32]; get_user_authid(id,userid,31)
new userip[32];get_user_ip(id,userip,31,1)
new health = get_user_health(id)
new armor = get_user_armor(id)
new ammo = zp_get_user_ammo_packs(id)

set_hudmessage(random(0), random(255), random(0), 0.02, 0.19, 1, 1.0, 1.0, 0.1, 0.1)
show_hudmessage(id, "Nick: %s^nHave health: %d ^nHave Armor: %d ^nHave Packs: %d ^nSteamid: %s ^nIP: %s",name,health,armor,ammo,userid,userip)
}

Tiger
09-04-2018, 04:11 PM
Are you sure it doesn't work?! It seems ok to me. How many huds are you using? Eventually you can change the hud channel.

Some advises:
- random(0) is redundant, it will always return 0
- don't hard-code the size of the strings when you are calling functions, use charsmax(string) to determine the size of the string
- you should check if the player is connected

LuXoKINGGaming
10-04-2018, 01:39 AM
Are you sure it doesn't work?! It seems ok to me. How many huds are you using? Eventually you can change the hud channel.

Some advises:
- random(0) is redundant, it will always return 0
- don't hard-code the size of the strings when you are calling functions, use charsmax(string) to determine the size of the string
- you should check if the player is connected

bro i Need Help info Add info Nick Players
Plugin: infoplayers %100 ON Not Error

Frineds go Video


<b>You have to register to ba able to see this link</b>

Tiger
10-04-2018, 06:13 PM
I think you forgot to compile and upload the new amxx compiled file.

LuXoKINGGaming
11-04-2018, 12:55 PM
My friend means I offer you the amxx file why I do not understand you

My friend can you help me with this topic and add it to his book player name if you can do this yes or not

--------------- Added after 2 minutes ---------------

This topic is very important to me because I think it is very special and there are not many episodes that do not have all the triggers of this information server is very rare

Tiger
11-04-2018, 08:13 PM
Do as I said. Also, you could use Google Translate...

LuXoKINGGaming
11-04-2018, 08:33 PM
Do as I said. Also, you could use Google Translate...

I need help not how to write can you help me or not

Tiger
11-04-2018, 09:38 PM
I said what you need to do, but you are ignoring me...

:beerguy:

LuXoKINGGaming
12-04-2018, 12:01 PM
I said what you need to do, but you are ignoring me...

:beerguy:
I tried to do everything I was on and I did not drop anything with me. I said you were going up to the file and you could not accept to do it

~Wolf~
16-05-2018, 02:55 PM
Solved.
:locked: