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

[WEAPONS] Frags/Deaths Changer


Post New Thread Reply   
 
Thread Tools Display Modes
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-14-2013 , 18:13   Re: Frags/Deaths Changer
Reply With Quote #11

Quote:
Originally Posted by Jhob94 View Post
I know but it seems approvers doesnt likes it since you can use default files for it.
I will decide what to do when i back
Huh? We have no problems with your plugin using a config file if you have many cvars
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 08-14-2013 , 18:45   Re: Frags/Deaths Changer
Reply With Quote #12

ok
__________________
Jhob94 is offline
Old 08-14-2013, 19:23
Jhob94
This message has been deleted by Jhob94. Reason: Nothing...
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 08-16-2013 , 12:56   Re: Frags/Deaths Changer (AIO)
Reply With Quote #13

Updated.
Headshot support. I think the plugin is done and willnt have any changes.
__________________

Last edited by Jhob94; 08-18-2013 at 18:33.
Jhob94 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-01-2014 , 15:18   Re: Frags/Deaths Changer (AIO)
Reply With Quote #14

Made a version for the case you want it to modify ranking too.
You will need to compile it localy.
Here is the rank include and api
Attached Files
File Type: sma Get Plugin or Get Source (fdc_rank.sma - 392 views - 9.7 KB)
__________________

Last edited by Jhob94; 06-02-2014 at 15:06.
Jhob94 is offline
ArabicMan
Veteran Member
Join Date: Feb 2014
Location: مصر
Old 06-01-2014 , 17:05   Re: Frags/Deaths Changer (AIO)
Reply With Quote #15

Not good to modify those things the original made by valve best one.
ArabicMan is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-01-2014 , 17:12   Re: Frags/Deaths Changer (AIO)
Reply With Quote #16

Quote:
Originally Posted by ArabicMan View Post
Not good to modify those things the original made by valve best one.
First, this is for who wants to use. There are mods that this might be good.
Second, what you talking about?
__________________
Jhob94 is offline
ArabicMan
Veteran Member
Join Date: Feb 2014
Location: مصر
Old 06-01-2014 , 22:47   Re: Frags/Deaths Changer (AIO)
Reply With Quote #17

Quote:
Originally Posted by Jhob94 View Post
First, this is for who wants to use. There are mods that this might be good.
Second, what you talking about?
I'am taking about Frags/Deaths.
ArabicMan is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-02-2014 , 12:54   Re: Frags/Deaths Changer (AIO)
Reply With Quote #18

Quote:
As default, the values are from default game. So if you want change frags/deaths you have to change cvars values and compile it
Or just add them into amxx.cfg ?
HamletEagle is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 06-02-2014 , 14:27   Re: Frags/Deaths Changer (AIO)
Reply With Quote #19

Quote:
Originally Posted by HamletEagle View Post
Or just add them into amxx.cfg ?
Lol it uses a cfg file, forgot to edit that part some months ago
__________________
Jhob94 is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-02-2014 , 14:51   Re: Frags/Deaths Changer (AIO)
Reply With Quote #20

Have you though about that way of registering cvars, setting triecells and saving lines at all?
*Little sh*tty with the indentation, but something is not working in the forum *
PHP Code:
new const Weapons[][]=
{
    
"",
    
"knife",
    
"p228",
    
"scout",
    
"grenade",
    
"xm1014",
    
"mac10",
    
"aug",
    
"elite",
    
"fiveseven",
    
"ump45",
    
"sg550",
    
"galil",
    
"famas",
    
"usp",
    
"glock18",    
    
"awp",
    
"mp5navy",    
    
"m249",
    
"m3",
    
"m4a1",
    
"tmp",
    
"g3sg1",    
    
"deagle",    
    
"sg552",    
    
"ak47",
    
"p90"
}

new 
Cvar[64]
new 
Trie:killTrie:deathTrie:kill_hsTrie:death_hsweapon_fragsweapon_deathsfrags_explosionfrags_defusedGame[20]

public 
plugin_init()
{
    for(new 
1sizeof Weaponsi++)
    {
        
kill death kill_hs death_hs TrieCreate()
        
        
        
formatex(Cvarcharsmax(Cvar),         "fdc_kill_%s"Weapons[i])
        
TrieSetCell(killWeapons[i],        register_cvar(Cvar,  "1"))
        
        
formatex(Cvarcharsmax(Cvar),         "fdc_death_%s"Weapons[i])
        
TrieSetCell(deathWeapons[i],        register_cvar(Cvar,  "1"))
        
        
formatex(Cvarcharsmax(Cvar),         "fdc_kill_%s_hs"Weapons[i])
        
TrieSetCell(kill_hsWeapons[i],    register_cvar(Cvar,  "1"))
        
        
formatex(Cvarcharsmax(Cvar),         "fdc_death_%s_hs"Weapons[i])
        
TrieSetCell(death_hsWeapons[i],    register_cvar(Cvar,  "1"))
    }

IMPORTANT ЕDIT: I think there is an important mistake! Take a look:
PHP Code:
HeadShot read_data(2
--->
PHP Code:
HeadShot read_data(3
__________________

Last edited by Flick3rR; 06-02-2014 at 14:59.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
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:09.


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