actually this the perfect plugins.
I only have a small problem. the message shows that the reasons for the arrest does not appear, type, she appears but is very fast.
I want to leave a message on the screen fixed for 15 seconds. has as?
already tried a few things, but nothing worked.
can someone help me? Thank you.
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#define IsPlayer(%1) (1 <= %1 <= g_players)
new g_players;
new const gMotivos[][] = {
"Homosexual",
"Da banda Restart",
"Estuprador de Criancas",
"Corno",
"Tarado",
"Ladrao de galinha",
"Negro",
"Punheteiro",
"Assassino",
"Traficante",
"Analfabedo",
"Pau no Cu",
"Prostituta",
"Arrombado",
"Funkeiro",
"Fedorento",
"Boyola",
"Pedofilo",
"Gordo",
"Vagabunda",
"Menstruada",
"Nubizinho Lv 1",
"Boqueteiro"
}
//set_hudmessage(255, 170, 0, -1.0, 0.72, 0, 3.0, 15.0)
new g_iMotivo[33]
public plugin_init(){
register_plugin("Nome-Motivos", "1.0", "Klysman =]");
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, 1, 1.0, 1.5, 0.1, 0.1, 10)
show_hudmessage(i, "Voce foi preso por ser: %s !!", gMotivos[ g_iMotivo[i] = random(sizeof(gMotivos)) ])
}
}
}