RSSy MYGO.pl Opublikowano Czerwiec 2, 2023 o 17:44 RSSy Udostępnij Opublikowano Czerwiec 2, 2023 o 17:44 Hello, friends, I have a problem with the server jailbreak. Mainly, on the new HUD that I added, it shows me one amount of money, while on the other one, it shows a different amount. I really don't know why this is happening, and I hope someone can help me. I will leave both scripts so that anyone who can help, please do. PHP Code: /* Plugin generated by AMXX-Studio */#include <amxmodx>#include <amxmisc>#include <fun>#include <cstrike>#include <basebuilder>#include <dhudmessage>#define PLUGIN "ShowHud"#define VERSION "1.0"#define AUTHOR "furia"#define HUDID 10004public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR);}public client_putinserver(id){ set_task(2.0, "ShowHud", id + HUDID);}#if AMXX_VERSION_NUM < 190public client_disconnect(id)#elsepublic client_disconnected(id)#endif{ remove_task(id + HUDID);}public ShowHud(id){ id -= HUDID; if(is_user_alive(id)) { // Shouldn't be saved, but better for readability. new iMoney = cs_get_user_money(id); set_dhudmessage(0, 255, 255, -1.0, 1.0, 0, 0.0, 1.0) show_dhudmessage(id, "| Money: %i |",iMoney); } set_task(1.0, "ShowHud", id + HUDID);} JB smahttps://www.sendspace.com/file/aq3djt Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi