Raised This Month: $51 Target: $400
 12% 

Lame questin albout hudmessages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Watt
Senior Member
Join Date: Jan 2008
Location: Poland :D
Old 02-19-2008 , 10:13   Lame questin albout hudmessages
Reply With Quote #1

I tried to write pluginn who shows hudmessage in the corner of screen, who whows when you are playing on de_* maps. I don't work

PHP Code:
#include <amxmodx>
#include <amxmisc>    


public plugin_init() {
register_plugin"Lalala""0.1""Shadow/Watt" );
}
                    
                    
public  
client_putinserver (id){    

if(
get_mapname())
{
if(!
equali(de_)
return 
PLUGIN_HANDLED
            
set_hudmessage
(02550, -1.00.000.251.00.10.13)
show_hudmessage("Defuse BOMB")

}



Watt is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-19-2008 , 10:19   Re: Lame questin albout hudmessages
Reply With Quote #2

Instead of trying to explain it, I am going to correct it

PHP Code:
public client_putinserver(id)
{    
    new 
map[32];
    
get_mapname(mapcharsmax(map));
    if(!
equali(map"de_"3))
        return 
PLUGIN_CONTINUE;
    
    
set_hudmessage(02550, -1.00.000.251.00.10.13);
    
show_hudmessage(id"Defuse BOMB");
    return 
PLUGIN_CONTINUE;

__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 02-19-2008 at 11:05.
YamiKaitou is offline
Watt
Senior Member
Join Date: Jan 2008
Location: Poland :D
Old 02-19-2008 , 10:54   Re: Lame questin albout hudmessages
Reply With Quote #3

Quote:
/home/groups/amxmodx/tmp3/textzT2GBg.sma(11) : error 017: undefined symbol "charsmax"
/home/groups/amxmodx/tmp3/textzT2GBg.sma(17) : warning 209: function "client_putinserver" should return a value
Watt is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-19-2008 , 11:06   Re: Lame questin albout hudmessages
Reply With Quote #4

Fixed the second one. I write my code for use with the 1.8 files. If it doesn't work with the online compiler, not my problem. Either you can fix it to work or you can compile it locally using 1.8
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Watt
Senior Member
Join Date: Jan 2008
Location: Poland :D
Old 02-19-2008 , 11:13   Re: Lame questin albout hudmessages
Reply With Quote #5

OK thanks
Watt is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-19-2008 , 11:18   Re: Lame questin albout hudmessages
Reply With Quote #6

Else you can replace charsmax(map) with 31
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Watt
Senior Member
Join Date: Jan 2008
Location: Poland :D
Old 02-19-2008 , 11:23   Re: Lame questin albout hudmessages
Reply With Quote #7

How to make that it will show every 5 min?
Watt is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-19-2008 , 11:30   Re: Lame questin albout hudmessages
Reply With Quote #8

You would have to use set_task for that
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Watt
Senior Member
Join Date: Jan 2008
Location: Poland :D
Old 02-19-2008 , 11:39   Re: Lame questin albout hudmessages
Reply With Quote #9

Thanks but I have got another problem how to make that hudmessage will show on the left corner, I dont knowhow x and y works
Watt is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-19-2008 , 11:45   Re: Lame questin albout hudmessages
Reply With Quote #10

Code:
  (0.0,0.0) ↑  (1.0,0.0)    
            │            
      ← ————┼———— →         center: (-1.0,-1.0)
            │             
  (0.0,1.0) ↓  (1.0,1.0)
__________________

Last edited by Arkshine; 02-19-2008 at 11:48.
Arkshine 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 07:43.


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