Merhabalar, Taga Özel İlk Girdiğinde Ve 7 elde 1 hatırlatıcı hudmessage yazdırmak istiyorum.
Taglar: RAK! BAL!K ve NAVY
Şöyle yazacak:
KLAN TAGI OLAN HERKESİN TS3 ADRESİNE GİRMESİ ZORUNLUDUR.
ZATEN TS3 SUNUCUSUNDAYSANIZ BU MESAJI DİKKATE ALMAYINIZ.
Pluginin diğer pluginlerle çakışmaması için orta altta çıkmasını istiyorum.
Taga Özel Hatırlatıcı HudMessage
Moderatör: Moderatörler
-
Konu Sahibi - Mesajlar: 727
- Kayıt: Prş Nis 07, 2016 8:00 pm
- Konum: Istanbul
-
- Mesajlar: 1625
- Kayıt: Cmt Eyl 30, 2017 12:44 pm
- Konum: Samsun
Taga Özel Hatırlatıcı HudMessage
Tagları ve yazıları ayarlarsınız, buyur;
Kod: Tümünü seç
#pragma semicolon 1
#include <amxmodx>
#include <reapi>
new const g_szTags[][] =
{
"TAG 1",
"TAG 2",
"TAG 3"
};
public plugin_init()
{
register_plugin("Reminder Hud Msg", "0.1", "` BesTCore;");
RegisterHookChain(RG_CSGameRules_RestartRound, "RG_CSGameRules_RestartRound_Post", .post = true);
}
public RG_CSGameRules_RestartRound_Post()
{
static iMeter;
if(get_member_game(m_bCompleteReset))
{
iMeter = 0;
}
iMeter++;
if(iMeter >= 7)
{
iMeter = 0;
for(new i = 0; i <= MaxClients; i++)
{
if(!(is_user_connected(i) || IsPlayerAdmin(i)))
{
continue;
}
ShowHud(i);
}
}
}
public client_putinserver(id)
{
remove_task(id);
if(IsPlayerAdmin(id))
{
set_task(5.0, "ShowHud", id);
}
}
public ShowHud(const id)
{
set_hudmessage(255, 0, 0, -1.0, 0.75, 0, 6.0, 4.0);
show_dhudmessage(id, "Mesaj 1^nAlt Satirdaki Mesaj.");
}
bool:IsPlayerAdmin(const id)
{
new szName[MAX_NAME_LENGTH];
get_user_name(id, szName, charsmax(szName));
for(new i = 0; i < sizeof(g_szTags); i++)
{
if(containi(szName, g_szTags[i]) != -1)
{
return true;
}
}
return false;
}
Link: | |
Linklerini gizle |