AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_back and Hud (https://forums.alliedmods.net/showthread.php?t=84945)

SpokY 02-03-2009 08:43

set_back and Hud
 
1 Attachment(s)
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")

anakin_cstrike 02-15-2009 04:41

Re: set_back and Hud
 
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.


All times are GMT -4. The time now is 01:42.

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