 |
|
Senior Member
Join Date: Jan 2008
Location: Floridaaaa
|

08-02-2008
, 19:13
Re: /ungrav
|
#8
|
I know thats what I'm sayin, but he posted this code he says makes it do that when it actually already does.
And can anyone answer my question on how to make a scrolling message?
Quote:
Originally Posted by grimvh2
maybe instead of making them say /ungrav take away gravity after the round ends
PHP Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fakemeta> #define PLUGIN "TESTING" #define VERSION "1.0" #define AUTHOR "kingcommentor" new price new enabled new g_MsgSync public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /grav","GravOn") register_logevent("EndRound",2,"0=World triggered", "1=Round_Draw", "1=Round_End"); price = register_cvar("amx_grav_price", "1000") enabled = register_cvar("amx_grav_enabled", "1") g_MsgSync = CreateHudSyncObj() } public GravOn(id) { new money = cs_get_user_money(id) new tprice = get_pcvar_num(price); if (get_pcvar_num(enabled) == 1) { if (money < tprice) { client_print(id,print_chat,"You don't have enough money! Gravity currently costs %d!" , tprice) } else { set_hudmessage(0, 127, 255, 0.30, 0.29, 0, 6.0,15.0) ShowSyncHudMsg(id, g_MsgSync,"Your gravity is now 400 untill the round ends") set_pev(id, pev_gravity, 0.50) cs_set_user_money(id, money-tprice) } } } /* Round Ends */ public EndRound() { new players[32], pnum get_players(players, pnum) for( new i = 0; i < pnum; i++ ) { set_pev(players[i], pev_gravity, 1.0) } }
|
__________________
+Karma is appreciated! |Be PROUD, leave your name!
|
|
|
|