help hud does not appear plugin reaction

Ако имате затруднения при изработката/преработката на даден плъгин - пишете тук, ще се опитаме да ви помогнем!
Аватар
GGzBoy
Извън линия
Foreigner
Foreigner
Мнения: 63
Регистриран на: 28 Мар 2020, 16:42
Се отблагодари: 16 пъти
Получена благодарност: 1 път

help hud does not appear plugin reaction

Мнение от GGzBoy » 18 Ное 2020, 22:50

Hello I would like a help in this plugin the message is not appearing does anyone know the reason? and also the length of the message to 15 seconds

Код за потвърждение: Избери целия код

#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

#define IsPlayer(%1) (1 <= %1 <= g_players)

new g_players;

new const gReasons[][] = {
    
     "Horn",
     "Chicken thief",
     "Wanker",
     "Killer",
     "Drug dealer",
     "Illiterate",
     "Break in",
     "Smelly",
     "Slut",
     "sucker"
 
}

//set_hudmessage(255, 170, 0, -1.0, 0.72, 0, 3.0, 15.0)

new g_iReasons[33]

public plugin_init(){
    register_plugin("reasons", "1.0",  "amxbg");
    register_event("HLTV", "event_NewRound", "a", "1=0", "2=0")
 
    g_players = get_maxplayers();
    
}


public event_NewRound(id) {
    for(new i = 1; i <= g_players; i++) {
        if( is_user_connected( i ) && cs_get_user_team( i ) == CS_TEAM_T )  {       
   
   
            set_hudmessage(255, 170, 0, -1.0, 0.72, 0, 15.0, 1.0)
            show_hudmessage(i, "you are a %s !!", gReasons[ g_iReasons[i] = random(sizeof(gReasons)) ])
  
        }
    }
} 

  • Подобни теми
    Отговори
    Преглеждания
     Последно мнение

Обратно към “Помощ в скриптирането”

Кой е на линия

Потребители разглеждащи този форум: 0 регистрирани и 8 госта