Raised This Month: $ Target: $400
 0% 

Problems with set_hudmessage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
klysman07
Senior Member
Join Date: Oct 2011
Old 03-03-2013 , 00:39   Problems with set_hudmessage
Reply With Quote #1

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)) ])
  
        }
    }

klysman07 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 03-03-2013 , 02:04   Re: Problems with set_hudmessage
Reply With Quote #2

You HUD is only shown short because you set the 7th parameter to 1.0, change it to 15.0
__________________

Last edited by Kia; 03-03-2013 at 02:05.
Kia is offline
klysman07
Senior Member
Join Date: Oct 2011
Old 03-03-2013 , 09:21   Re: Problems with set_hudmessage
Reply With Quote #3

Quote:
Originally Posted by Kia View Post
You HUD is only shown short because you set the 7th parameter to 1.0, change it to 15.0
ok ,I'll try

Last edited by klysman07; 03-03-2013 at 09:21.
klysman07 is offline
klysman07
Senior Member
Join Date: Oct 2011
Old 03-03-2013 , 09:50   Re: Problems with set_hudmessage
Reply With Quote #4

Quote:
Originally Posted by Kia View Post
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!
klysman07 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 03-03-2013 , 11:53   Re: Problems with set_hudmessage
Reply With Quote #5

Delete the 8th, 9th and 10th Parameter,
they are fade in / out times.
__________________
Kia is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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