Raised This Month: $51 Target: $400
 12% 

Frags As Money


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-02-2009 , 03:07   Re: Frags As Money
Reply With Quote #11

I mean that if you change from money to frags (kills) then you need to change your "cost" cvars to be units of kills and not units of money (Lines 40 - 44).
__________________
fysiks is offline
Old 05-02-2009, 12:24
-Acid-
This message has been deleted by -Acid-.
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-02-2009 , 20:09   Re: Frags As Money
Reply With Quote #12

Lines 113 - 123


PHP Code:
    new frags get_user_frags(id);
    new 
cost get_cvar_num(itemcvar[key]);

    if(
cost >= frags)
    {
        
client_print(idprint_chat"[FFA]: You don't have enough frags!");
        
client_cmd(id,"spk fragsforawards/sorry");
        return 
PLUGIN_HANDLED;
    }

    
set_user_frags(id,frags cost); 
__________________
fysiks is offline
-Acid-
Senior Member
Join Date: Feb 2009
Old 05-02-2009 , 20:43   Re: Frags As Money
Reply With Quote #13

yea is saw that so i fix it the same way u have it. is that all?
__________________
-Acid- is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-02-2009 , 22:30   Re: Frags As Money
Reply With Quote #14

That's all that I can tell by looking at the code. You will have to test it and see if it works.

I do have an idea to get rid of so many 33 dim arrays though but you don't need it unless you are worried about memory.
__________________
fysiks is offline
-Acid-
Senior Member
Join Date: Feb 2009
Old 05-02-2009 , 22:40   Re: Frags As Money
Reply With Quote #15

Alright then dude. I give u +karma. Thanks alot!!
__________________
-Acid- is offline
-Acid-
Senior Member
Join Date: Feb 2009
Old 05-03-2009 , 00:02   Re: Frags As Money
Reply With Quote #16

hey can u please add me understeam user name its, anthonywnavarro
__________________
-Acid- is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-03-2009 , 02:15   Re: Frags As Money
Reply With Quote #17

Ok, the menu wasn't working (as you told me in a PM) because it should be shown like this:

PHP Code:
show_menu(id,keys,menu,_,"Frag For Awards"); 
I found this out after doing a major edit (for fun) to your plugin. I will PM you what I have and if you understand and like it you can use it.
__________________

Last edited by fysiks; 05-03-2009 at 03:19.
fysiks is offline
Old 05-03-2009, 02:57
-Acid-
This message has been deleted by YamiKaitou. Reason: duplicate post
Old 05-03-2009, 02:59
-Acid-
This message has been deleted by -Acid-. Reason: Code is fix.
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 19:14.


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