Raised This Month: $ Target: $400
 0% 

set_back and Hud


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SpokY
Senior Member
Join Date: Feb 2009
Location: Darmstadt
Old 02-03-2009 , 08:43   set_back and Hud
Reply With Quote #1

Hello Guy's

i have make a deathrun shop menu, and now i want make the gravity is only for 30 sec.? how can i make this one?

and .. when he buy it its comming a text .. how i can make this text green?

Edit :

and the speed manager doesent work why?

Thanks a lot

Code:
case 4:
		{
			new Money = fm_get_user_money(id)
			new Pcvar = get_pcvar_num(Gravity_Menu[4])
			
			if (Money < Pcvar)
			{
				client_print(id, print_chat, "%L", id, "SHOP_MONEY")
			}
			else
			{
				client_print(id, print_chat, "%L", id, "SHOP_GRAV_FOUR")
				
				fm_set_user_money(id, Money-Pcvar)
				fm_set_user_gravity(id,0.50);
			}
		}
		
	}
Code:
client_print(id, print_chat, "%L", id, "SHOP_GRAV_FOUR")
Attached Files
File Type: sma Get Plugin or Get Source (deathrunshop.sma - 583 views - 18.0 KB)
SpokY is offline
Send a message via ICQ to SpokY Send a message via MSN to SpokY
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-15-2009 , 04:41   Re: set_back and Hud
Reply With Quote #2

1. Colored messages: http://forums.alliedmods.net/showthr...ght=color+chat

2. Use a task: in "public Gravity_Handler", after the switch statement:
Code:
set_task( 30.0, "normal_gravity", id ); // - - - public normal_gravity( id ) {     if( !is_user_alive( id ) )         return 0;     fm_set_user_gravity( id, 1.0 );     return 1; }

Quote:
and the speed manager doesent work why?
You have to set the speed not only in that function... CurWeapon for instance.
__________________

anakin_cstrike 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:42.


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