AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problems with set_hudmessage (https://forums.alliedmods.net/showthread.php?t=209868)

klysman07 03-03-2013 00:39

Problems with set_hudmessage
 
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 
1<= g_playersi++) {
        if( 
is_user_connected) && cs_get_user_team) == CS_TEAM_T )  {       
   
   
            
set_hudmessage(2551700, -1.00.7211.01.50.10.110)
            
show_hudmessage(i"Voce foi preso por ser: %s !!"gMotivosg_iMotivo[i] = random(sizeof(gMotivos)) ])
  
        }
    }



Kia 03-03-2013 02:04

Re: Problems with set_hudmessage
 
You HUD is only shown short because you set the 7th parameter to 1.0, change it to 15.0

klysman07 03-03-2013 09:21

Re: Problems with set_hudmessage
 
Quote:

Originally Posted by Kia (Post 1905545)
You HUD is only shown short because you set the 7th parameter to 1.0, change it to 15.0

ok ,I'll try

klysman07 03-03-2013 09:50

Re: Problems with set_hudmessage
 
Quote:

Originally Posted by Kia (Post 1905545)
You HUD is only shown short because you set the 7th parameter to 1.0, change it to 15.0

but still did not work, the message appears, but is very fast!

Kia 03-03-2013 11:53

Re: Problems with set_hudmessage
 
Delete the 8th, 9th and 10th Parameter,
they are fade in / out times.


All times are GMT -4. The time now is 21:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.