Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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