Raised This Month: $ Target: $400
 0% 

HELP - with /gravity for admins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Pexu
Junior Member
Join Date: Dec 2011
Old 12-19-2011 , 06:56   Re: HELP - with /gravity for admins
Reply With Quote #7

why is it when i coppy and paste it all looks like this:

Code:
#include <amxmodx> #include <fun> #include <hamsandwich> #define MAX_PLAYERS 32 #define ADMIN_LEVEL ADMIN_SLAY #define ADMIN_GRAV 250.0 new g_bHasGrav[MAX_PLAYERS+1] new sv_gravity public plugin_init() {     sv_gravity = get_cvar_pointer("sv_gravity")     register_clcmd("say /grav", "cmdGrav", ADMIN_LEVEL)     register_clcmd("say /gravity", "cmdGrav", ADMIN_LEVEL)     RegisterHam( Ham_Spawn , "player" , "fwPlayerSpawn" , true ) } public fwPlayerSpawn( id ) {     if( is_user_alive( id ) && g_bHasGrav[ id ] )     {         set_user_gravity( id , ADMIN_GRAV / get_pcvar_float(sv_gravity))     } } public client_putinserver(id) {     g_bHasGrav[id] = false } public cmdGrav(id) {     if( get_user_flags(id) & ADMIN_LEVEL )     {         if( !g_bHasGrav[id] )         {             set_user_gravity(id, ADMIN_GRAV / get_pcvar_float(sv_gravity))             client_print(id, print_chat, " * You Have Enabled Low Gravity")         }         else         {             set_user_gravity(id)             client_print(id, print_chat, " * You Have Disabled Low Gravity")         }     }     return PLUGIN_HANDLED }
Pexu 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 12:06.


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