Raised This Month: $ Target: $400
 0% 

Hiding Timer AND Money


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-10-2007 , 20:14   Hiding Timer AND Money
Reply With Quote #1

With the code below it shows how to hide the Timer OR the Money.

PHP Code:
// Hides the timer
message_begin(MSG_ONEget_user_msgid("HideWeapon"), _id);
write_byte((1<<4));
message_end();

// Hides the money
message_begin(MSG_ONEget_user_msgid("HideWeapon"), _id);
write_byte((1<<5));
message_end(); 
Is there a way to hide the Timer AND Money at the same time?
hlstriker is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-10-2007 , 20:27   Re: Hiding Timer AND Money
Reply With Quote #2

Maybe...
Code:
message_begin(MSG_ONE, get_user_msgid("HideWeapon"), _, id); 
write_byte((1<<4) | (1<<5)); 
message_end();
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-10-2007 , 20:47   Re: Hiding Timer AND Money
Reply With Quote #3

Very nice that worked

Thanks a ton, Alka!
hlstriker is offline
CAMEL
BANNED
Join Date: Dec 2007
Location: ANEAXSLAND
Old 12-09-2007 , 20:59   Re: Hiding Timer AND Money
Reply With Quote #4

Can u do a plugin for hide the money plz.. =$.. I don't know a lot of scripting =$
CAMEL is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-09-2007 , 21:37   Re: Hiding Timer AND Money
Reply With Quote #5

Quote:
Originally Posted by CAMEL View Post
Can u do a plugin for hide the money plz.. =$.. I don't know a lot of scripting =$
Try this. Not tested.

Code:
    #include <amxmodx>         #define REMOVE_CROSSHAIR  0     #define HIDE_MONEY ( 1 << 5 )         new         g_iMsg_HideWeapon,         g_iMsg_Crosshair;         public plugin_init()     {         register_plugin( "Hide Money", "1.0", "Arksine" );         register_event( "ResetHUD", "eResethud", "be" );                 g_iMsg_HideWeapon = get_user_msgid( "HideWeapon" );         g_iMsg_Crosshair  = get_user_msgid( "Crosshair"  );     }         public eResetHud( id )     {         if( !is_user_connected( id ) )             return;         static Float:flast_time;         new Float:fCur_time = get_gametime();           if( fCur_time == flast_time )             return;                     flast_time = fCur_time;             set_task( 0.1, "PostResethud", id );     }         public PostResethud( id )     {         if( !is_user_alive( id ) )             return;                 HideMoney( id );     }         public HideMoney( id )     {         message_begin( MSG_ONE, g_iMsg_HideWeapon, _, id );         write_byte( HIDE_MONEY );         message_end();         message_begin( MSG_ONE, g_iMsg_Crosshair, _, id );         write_byte( REMOVE_CROSSHAIR );         message_end();     }
__________________
Arkshine is offline
CAMEL
BANNED
Join Date: Dec 2007
Location: ANEAXSLAND
Old 12-10-2007 , 18:36   Re: Hiding Timer AND Money
Reply With Quote #6

Thanks a lot. Read the pm
CAMEL is offline
CAMEL
BANNED
Join Date: Dec 2007
Location: ANEAXSLAND
Old 12-13-2007 , 18:25   Re: Hiding Timer AND Money
Reply With Quote #7

I was without pc.. for a week .. I tried the plug and don't works =(.. But i don't know why.. cause it compile good but when i put it in my serv doesn't work =S.. Anyone can help? =S
CAMEL is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-13-2007 , 18:27   Re: Hiding Timer AND Money
Reply With Quote #8

Ok, I'm going to test it to find the problem. ;)
__________________
Arkshine is offline
CAMEL
BANNED
Join Date: Dec 2007
Location: ANEAXSLAND
Old 12-13-2007 , 18:32   Re: Hiding Timer AND Money
Reply With Quote #9

=).. Okz love u =P... Oh I read ur pm.. My native language isn't english .. I am from Argentina =).. Lol.. So my native language is spanish.. Oh lala (?)
CAMEL is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-13-2007 , 18:45   Re: Hiding Timer AND Money
Reply With Quote #10

Tested and it works.
Attached Files
File Type: sma Get Plugin or Get Source (hide_money.sma - 897 views - 1.6 KB)
__________________

Last edited by Arkshine; 12-13-2007 at 18:48.
Arkshine is offline
Reply


Thread Tools
Display Modes

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 01:16.


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