Raised This Month: $ Target: $400
 0% 

Gravity Plugin Help Please!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 01-13-2009 , 14:41   Re: Gravity Plugin Help Please!
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <fakemeta_util>
 
public plugin_init() 
{
         
register_srvcmd("grav_init""grav_init")
}
 
public 
grav_init()
{         
         for( new 
133i++)
         {
                  if( 
is_user_connected(id) )
                  {
                           
fm_set_user_gravity(i0.40)
                           
client_print(iprint_chat"[Gravity] You have gravity for 5 seconds!")
                  }
         }
 
         
set_task(5.0"remove_grav")
}
 
public 
remove_grav()
{
         for( new 
133i++)
         {
                  if( 
is_user_connected(id) )
                  {
                           
fm_set_user_gravity(i1.0)
                           
client_print(playerprint_chat"[Gravity] Your Gravity End")
                  }
         }

__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
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 01:52.


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