Raised This Month: $94 Target: $400
 23% 

Frag Mod


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   GHW_Chronic (70)
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-10-2006 , 10:27   Frag Mod
Reply With Quote #1

Frag Mod

Description
Made to make the game a little bit more fun. You can roll the frags, sell frags and buy frags.

User Commands (in chat)
/rollthefrags
/sellfrag
/buyfrag

Cvars
fm_enable <1|0> 1 on 0 off
fm_sellfrags_max <num> default 5
fm_buyfrags_max <num> default 5
fm_sellfragcost <money> default 4000
fm_buyfragcost <money> default 6000

Roll the Frags Prices
Good:
one frag
two frags
doubled frags

Bad:
one frag less
two frags less
no frags

Updates
[06-12-10] Fixed what SweatyBanana said, but the re-declaring of variables. What do you mean by that?
[06-12-11] Think I fixed the re-declaring of variables. What u say Sweaty?
[06-12-12] Added Multi-lingual support (Post translations in this thread: Fragmod Translation Request)
[06-12-13] Fixed the bugs that Brad found. Added thread where you can post your translations (see above)

Translations
English (mateo10)
Swedish (mateo10)
Dutch (godlike)
German (D o o m)
Spanish (KylixMynxAltoLAG)
Polish (trawiator)

Installation
The fragmod.amxx goes to .\amxmodx\plugins\
The fragmod.txt goes to .\amxmodx\data\lang\
Attached Files
File Type: sma Get Plugin or Get Source (fragmod.sma - 3760 views - 2.8 KB)
File Type: txt fragmod.txt (3.2 KB, 1755 views)

Last edited by mateo10; 12-15-2006 at 17:04.
mateo10 is offline
godlike
Senior Member
Join Date: Apr 2005
Old 12-10-2006 , 10:35   Re: Frag Mod
Reply With Quote #2

ah n1 an advanced script from buy a frag.But i dont understand roll the frags? please explain. greetz gl
__________________
Read the rules before posting something stupid: click here

Any questions about amxx PM me
godlike is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-10-2006 , 13:51   Re: Frag Mod
Reply With Quote #3

You claim there is a cvar to change the max amount of frags sold, yet you hard-code it in.

77:
PHP Code:
if(FragsSelled==5
96:
PHP Code:
if(FragsBuyed==5
You are constantly re-declaring variables throughout your code, and there is no multi-lingual support for your plugin.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-10-2006 , 16:07   Re: Frag Mod
Reply With Quote #4

Oh sorry, I'll fix that
mateo10 is offline
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 12-10-2006 , 16:09   Re: Frag Mod
Reply With Quote #5

What the hell is roll the frags?
__________________
i stop around here and there.
Da_sk8rboy is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-10-2006 , 16:15   Re: Frag Mod
Reply With Quote #6

Its a kind of lottery, where you type "/rollthefrags", and you can get good or bad prizes (it's randomly chosen).
mateo10 is offline
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 12-10-2006 , 16:17   Re: Frag Mod
Reply With Quote #7

oo
__________________
i stop around here and there.
Da_sk8rboy is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-10-2006 , 18:28   Re: Frag Mod
Reply With Quote #8

Lines:

34,82-84,101-103

You create a new variable every single time whereas you could just do something like this under the #includes..

new frags,money;

and in your code just do:

frags = get_user_frags(id);
money = cs_get_user_money(id);

instead of re-declaring the variable every time you use it.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-10-2006 , 23:54   Re: Frag Mod
Reply With Quote #9

"Selled" isn't a word and if it's being used in place of the shorter, and real, "sold", that's just silly.
__________________
Brad is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-11-2006 , 04:29   Re: Frag Mod
Reply With Quote #10

Sorry my brain didn't work alright last night :p
mateo10 is offline
Reply


Thread Tools
Display Modes

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 08:08.


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