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

Text in left-down corner


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Havoc
Member
Join Date: Jul 2004
Old 04-02-2008 , 14:27   Text in left-down corner
Reply With Quote #1

I just wanted to ask how to make text which would be in down-left corner and he wont disappear till the player leave the server?
Thanks!
__________________
Havoc is offline
Send a message via ICQ to Havoc Send a message via MSN to Havoc
dekken
Veteran Member
Join Date: Jul 2007
Old 04-02-2008 , 15:04   Re: Text in left-down corner
Reply With Quote #2

well as far as i know and as far as i can help you...
you can Reposition your Hud message to the place you want...
and Loop it with set_task every 1sec or so...
__________________
Signature Goes Here
dekken is offline
Havoc
Member
Join Date: Jul 2004
Old 04-02-2008 , 15:06   Re: Text in left-down corner
Reply With Quote #3

awww source code would help me alot, im really not a scripter :/
Thanks.
__________________
Havoc is offline
Send a message via ICQ to Havoc Send a message via MSN to Havoc
dekken
Veteran Member
Join Date: Jul 2007
Old 04-02-2008 , 15:30   Re: Text in left-down corner
Reply With Quote #4

Quote:
Originally Posted by Havoc View Post
awww source code would help me alot, im really not a scripter :/
Thanks.
ya iam sorry i tho i was in Scripting forum -_- iam so stupid
oh well:

PHP Code:
 #include <amxmodx>

#define MY_TASK_NUMBER 1434

public plugin_init()
{
    
register_plugin("TEST""0.1""Dekken")
}

public 
client_putinserver(id)
{
    
set_task(1.0,"iShowHud",MY_TASK_NUMBER)
}

public 
iShowHud()
{
    
set_hudmessage(25500, -1.5, -0.106.012.00.10.23)
    
show_hudmessage(0"Thats My Message, and i write w/e i want here :D")
    
set_task(2.0"iShowHud"MY_TASK_NUMBER)
}

public 
client_disconnect(id)
{
    if(
task_exists(MY_TASK_NUMBER))
        
remove_task(MY_TASK_NUMBER)

iam not sure if you need this:

PHP Code:
public client_disconnect(id)
{
    if(
task_exists(MY_TASK_NUMBER))
        
remove_task(MY_TASK_NUMBER)

but oh well...
should work fine
__________________
Signature Goes Here
dekken is offline
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 04-02-2008 , 15:37   Re: Text in left-down corner
Reply With Quote #5

Code:
#include <amxmodx> new const MESSAGE[] = "Type your message here" public plugin_init() {     //... } public client_putinserver(id) {     set_task(10.0, "show_hud", id) } public show_hud(id) {     if (!is_user_connected(id)) // player disconnected         return;     set_hudmessage(200, 100, 0, 0.02, 0.9, 0, 0.0, 5.1, 0.0, 0.0, -1)     show_hudmessage(id, MESSAGE)     set_task(5.0 , "show_hud" , id) }

Check set_hudmessage to see how to change effect type, color, etc.
__________________
MeRcyLeZZ is offline
Havoc
Member
Join Date: Jul 2004
Old 04-03-2008 , 10:13   Re: Text in left-down corner
Reply With Quote #6

Thanks dekken, Mercylez - your script has some errors, but its ok, thx!
__________________
Havoc is offline
Send a message via ICQ to Havoc Send a message via MSN to Havoc
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 16:12.


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