Raised This Month: $ Target: $400
 0% 

Set gravity to 0.5 after 20 secs to 1..... Dont work!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 06-07-2010 , 15:56   Set gravity to 0.5 after 20 secs to 1..... Dont work!
Reply With Quote #1

Hello i did a buy gravity menu:


PHP Code:
 case 3:
{
if (
cs_get_user_money(id) >= 10000
{
           
set_hudmessage(00255, -1.0, -1.0)
           
show_hudmessage(id"%s bought lower gravity!"szName)
           
set_user_gravity(id0.5)
           
set_task(20.0"remove_gravity")
           
cs_set_user_money(idcs_get_user_money(id) - 10000)
           
menu_destroy(menuct);
           return 
PLUGIN_HANDLED;
     }
    else
    {
      
client_print(idprint_chat"[/shop] You dont have enough money!")
      
menu_destroy(menuct);
      return 
PLUGIN_HANDLED;
     } 
at the end:

PHP Code:
public remove_gravity(id
{
    
set_user_gravity(id1.0)

why i have gravity after 20 secs??? The set_task shoud set gravity to 1.0 after 20 seconds..


pls help me
mottzi is offline
Send a message via MSN to mottzi
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-07-2010 , 15:58   Re: Set gravity to 0.5 after 20 secs to 1..... Dont work!
Reply With Quote #2

Try. This might work.
PHP Code:
set_task(20.0"remove_gravity"id
RedRobster is offline
Old 06-07-2010, 15:59
wrecked_
This message has been deleted by wrecked_. Reason: oh hey red
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 06-07-2010 , 16:01   Re: Set gravity to 0.5 after 20 secs to 1..... Dont work!
Reply With Quote #4

YEAH

THANK U VERY MUCH i love you
mottzi is offline
Send a message via MSN to mottzi
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 05:23.


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