Raised This Month: $ Target: $400
 0% 

New round re-setting values.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 12-23-2009 , 09:43   New round re-setting values.
Reply With Quote #1

I made a setting in menu that makes km_shop_*_bought = 1;
* is he fb gravity nofall invisible hp armor footsteps and stuff.
I tested and menu sets the values, and also checks them if i bought it actually,
and if i did, dont let me to do it again with same item, also returning message.
But i tried to do the resets for round only items, such as nofall, invisibility, and
setting all bought items to 0 so i can buy the again.

Unfortunantely its still nofall damage, still invisibility...
Heres roundstart stuff + plugin_init()
Code:
public plugin_init() {
some registering and other stuff...
    register_event("HLTV", "EventNewRound", "a", "1=0", "2=0");
}

public EventNewRound(id) {
    if (km_shop_invisible_bought == 1) {
    set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,255)
    km_shop_invisible_bought = 0;
}
    km_shop_he_bought = 0;
    km_shop_fb_bought = 0;
    km_shop_gravity_bought = 0;
    km_shop_nofall_bought = 0;
    km_shop_footsteps_bought = 0;
    km_shop_hp_bought = 0;
    km_shop_armor_bought = 0;
}
So on next round, i have still same returns that i already have bought an item, the nofall still takes no damage, and user keeps being transparent.

So can anyone help me, how to reset values on new round, what function it uses or etc etc...

Last edited by Lure.d; 12-23-2009 at 09:52.
Lure.d is offline
Send a message via Skype™ to Lure.d
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 04:06.


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