Takim Arkadaşlarının parasını saydan veya hudmessage ile gösterme.
Takim Arkadaşlarının parasını saydan veya hudmessage ile gösterme.
Denerm misin alttaki smayı? en az 2 kişi aynı takımda olsun ama serverda
PHP- Kodu:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#include <fakemeta>
#include <fun>
//++++Takım Arkadaslari Para Gosterme
new g_max_players, g_sync_creat_list, cvar_plugin_on
public plugin_init() {
cvar_plugin_on = register_cvar("mt_moneyon", "1") // ++ Takim Arkadasi Para Gosterme
g_max_players = get_maxplayers() // ++ Takim Arkadasi Para Gosterme
RegisterHam(Ham_Spawn, "player", "player_spawn", 1) // ++ Takim Arkadasi Para Gosterme
g_sync_creat_list = CreateHudSyncObj() // ++ Takim Arkadasi Para Gosterme
}
/*-------------------------- SCH - Takim Arkadaslarinin Bakiye Bilgisi --------------------------*/
public player_spawn(client)
{
remove_task(client)
if (is_user_alive(client) && get_pcvar_num(cvar_plugin_on))
{
set_task(1.0, "show_money", client)
}
}
public show_money(client)
{
static message[1024];
static name[32];
new money, id, len;
len = format(message, charsmax(message), "[CSP] Arkadaslarinin Parasi:^n");
for (id = 1; id <= g_max_players; id++)
{
if (id != client && is_user_connected(id) && cs_get_user_team(id) == cs_get_user_team(client))
{
money = cs_get_user_money(id);
get_user_name(id, name, 31);
len += format(message[len], charsmax(message) - len, "%-22.22s: %d^n", name, money);
}
}
set_hudmessage(100, 200, 0, 0.05, 0.35, 0, 0.02, 5.0, 0.1, 0.2, 2);
ShowSyncHudMsg(client, g_sync_creat_list, message);
}
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
google_ad_section_end -->
Bari bide resim ataydınız nası bişi anlardık ..
-Bu gözler erdi gerçeğin karanlık çizgilerine ..
Duydu kulağım vardı yaşamın komalı ezgilerine ..
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
google_ad_section_end -->
şimdi ben deniyorum çalışırsa resim atarım.
---------- Alttaki Mesaj Zamani 12:21 ---------- Önceki Mesaj Zamani 12:19 ----------
RegisterHam(Ham_Spawn, "player", "player_spawn", 1) // ++ Takim Arkadasi Para Gosterme
Bu kodda sorun var kapatmıyor amxx olarak.
Sorun falan yok. İnclude eksikliği olabilir.yani include klasöründe hamsandwich.inc dosyası olmalı ..PHP- Kodu:
#include <hamsandwich>
Buyur amxx => hudpara.amxx
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
google_ad_section_end -->
https://www.csplague.com/plugin-cs-1...-gosterge.html Plugin olarak paylaştım buyur...
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
google_ad_section_end -->