Raised This Month: $ Target: $400
 0% 

the most noob question EVER MADE


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
--kml--
Senior Member
Join Date: Jan 2009
Old 06-06-2009 , 09:31   Re: the most noob question EVER MADE
Reply With Quote #3

THis is a plugin


PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <engine>

#define PLUGIN     "Spin Me"
#define VERSION "1.0"
#define AUTHOR     "Charming"

new bool:on[33]
public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /on""cmdON")
    
register_clcmd("say /off""cmdOFF")
}

public 
cmdOFF(id)
{
    
on[id] = false
    client_cmd
(id"-right")
    
entity_set_float(idEV_FL_friction1.0)
    
entity_set_float(idEV_FL_gravity0.0)
}

public 
cmdON(idon[id] = true
public client_PreThink(id) if(on[id]) leEt_EfFeCt(id)

leEt_EfFeCt(id)
{
    
client_cmd(id"+right")
    if(
entity_get_int(idEV_INT_flags) & FL_ONGROUND)
    {
        new 
Float:Velocity[3]
        
entity_get_vector(idEV_VEC_velocityVelocity)
        
        
Velocity[0] = random_float(200.0500.0)
        
Velocity[1] = random_float(200.0500.0)
        
Velocity[2] = random_float(200.0500.0)
        
        
entity_set_vector(idEV_VEC_velocityVelocity)
    }

    
entity_set_float(idEV_FL_friction0.1)
    
entity_set_float(idEV_FL_gravity0.000001)

and it uses bool
how to do it.
i mean can seperate it ?
__________________
wooT now is asking season
will ask you plenty of things for learning
--kml-- is offline
 



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 13:50.


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