Raised This Month: $ Target: $400
 0% 

Gravity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Shibz
Junior Member
Join Date: Apr 2004
Old 06-03-2004 , 09:12  
Reply With Quote #5

So, is this what it should look like?

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <engine> #include <fun> #define SPEED 800.0 public plugin_init(){     register_plugin("Rockets","0.0.1","Shibz")     register_clcmd("+amx_fly","cmdFly")     register_clcmd("-amx_fly","cmdunFly") } public cmdFly(id,level,cid) {     if (!(get_user_flags(id)&ADMIN_RCON)) {         client_print(id,print_console,"[AMXX] You have no access to that command")         return PLUGIN_HANDLED     }     new arg[32],arg2[3]     read_argv(1,arg,31)     new player = cmd_target(id,arg,5)     if (!player)         return PLUGIN_HANDLED     new sPlayer[2]     sPlayer[0] = player     new victim     set_user_gravity(victim,0.01)     new upVector[3];     upVector[0] = 0;     upVector[1] = SPEED;     upVector[2] = 0;     entity_set_vector(id, EV_VEC_velocity, upVector);     client_cmd(victim,"+jump;wait;wait;-jump")     return PLUGIN_HANDLED } public cmdunFly(id,level,cid) {     if (!(get_user_flags(id)&ADMIN_RCON)) {         client_print(id,print_console,"[AMXX] You have no access to that command")         return PLUGIN_HANDLED     }     new arg[32],arg2[3]     read_argv(1,arg,31)     new player = cmd_target(id,arg,5)     if (!player)         return PLUGIN_HANDLED     new sPlayer[2]     sPlayer[0] = player     new victim     set_user_gravity(victim,1.00)     return PLUGIN_HANDLED }

I'm not at home and can't test it out yet...
Shibz 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 14:38.


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