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

Weapon Chance by Exolent


Post New Thread Reply   
 
Thread Tools Display Modes
zENK
Member
Join Date: Aug 2011
Old 09-01-2011 , 16:00   Re: Weapon Chance by Exolent
Reply With Quote #181

Quote:
Originally Posted by Exolent[jNr] View Post
weapon_chance.cfg goes in the addons/amxmodx/configs folder with the other configs.

You don't need weapon_chance.inc unless you are making custom items.
If so, then look at the "Plugin API" notes on the first post.
uhm, i did like this.

-> weapon_chance.amxx in addons/amxmodx/plugins
-> wc_item_example.amxx in addons/amxmodx/plugins
-> wc_item_example.sma in addons/amxmodx/scripting
-> weapon_chance.sma in addons/amxmodx/scripting

And in addons/amxmodx/configs/plugins i wrote
wc_item_example.amxx
weapon_chance.amxx

Then i restarted my server. and my server crashed.
http://bildr.no/view/964536
Help me fast plx!
zENK is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-01-2011 , 16:40   Re: Weapon Chance by Exolent
Reply With Quote #182

You only need weapon_chance.amxx in the addons/amxmodx/plugins folder, and to add weapon_chance.amxx to the plugins.ini.
Then you need to put weapon_chance.cfg in addons/amxmodx/configs folder, and change the inside of the config for the weapons you want.

Everything else is unneeded.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
zENK
Member
Join Date: Aug 2011
Old 09-01-2011 , 17:01   Re: Weapon Chance by Exolent
Reply With Quote #183

OK, i placed weapon_chance.amxx in addons/amxmodx/plugins
And weapon_chance.cfg in addons/amxmodx/configs/plugins.ini
And i wrote weapon_chance.amxx in addons/amxmodx/configs/plugins.ini

So.. that's it?

I tryed to play and never got any items on 10 restarts. Do i have to be 2 players? so the HNS plugin activates..?
zENK is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-01-2011 , 17:18   Re: Weapon Chance by Exolent
Reply With Quote #184

Quote:
If you do not add any weapons in the weapon_chance.cfg, none will be given.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
zENK
Member
Join Date: Aug 2011
Old 09-01-2011 , 17:27   Re: Weapon Chance by Exolent
Reply With Quote #185

This is what my weapon_change.cfg looks like.

// This is where all the cvars and commands go for Weapon Chance
// Information about the cvars and all weapon names can be found at:
// http://forums.alliedmods.net/showthread.php?t=65370

wc_on 1
wc_delay 1
wc_weaponcount 1
wc_prefix "[CHANCE]"

// To add a weapon, use this format:
//
// wc_add <name> <chance> <team> <clip> <ammo> <announce>
// Example: wc_add "deagle" "50" "0" "7" "0" "1"
//
// Remember for the teams:
// 0 = Everyone, 1 = Terrorist, 2 = Counter-Terrorist
//
// The <announce> parameter is for telling all other players when one player receives a weapon.
//
// For health and armor, use the <ammo> parameter for the amount.
//
// Weapon Name - Default Team - Max Clip - Max Ammo
// p228 - 0 - 13 - 52
// shield - 2 - 0 - 0
// scout - 0 - 10 - 90
// hegrenade - 0 - 0 - 1
// xm1014 - 0 - 7 - 32
// c4 - 1 - 0 - 0
// mac10 - 1 - 30 - 100
// aug - 2 - 30 - 90
// smokegrenade - 0 - 0 - 1
// elite - 1 - 30 - 120
// fiveseven - 2 - 20 - 100
// ump45 - 0 - 25 - 100
// sg550 - 2 - 30 - 90
// galil - 1 - 35 - 90
// famas - 2 - 25 - 90
// usp - 0 - 12 - 100
// glock18 - 0 - 20 - 120
// awp - 0 - 10 - 30
// mp5navy - 0 - 30 - 120
// m249 - 0 - 100 - 200
// m3 - 0 - 8 - 32
// m4a1 - 2 - 30 - 90
// tmp - 2 - 30 - 120
// g3sg1 - 1 - 20 - 90
// flashbang - 0 - 0 - 2
// deagle - 0 - 7 - 35
// sg552 - 1 - 30 - 90
// ak47 - 1 - 30 - 90
// knife - 0 - 0 - 0
// p90 - 0 - 50 - 100
// armor - 0 - 0 - 0
// nightvision - 0 - 0 - 0
// defuser - 2 - 0 - 0
// health - 0 - 0 - 0
zENK is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-01-2011 , 17:31   Re: Weapon Chance by Exolent
Reply With Quote #186

Quote:
Originally Posted by zENK View Post
And weapon_chance.cfg in addons/amxmodx/configs/plugins.ini
I really hope that's a typo.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
zENK
Member
Join Date: Aug 2011
Old 09-01-2011 , 17:40   Re: Weapon Chance by Exolent
Reply With Quote #187

Quote:
Originally Posted by Exolent[jNr] View Post
I really hope that's a typo.
ops, i mean it is just ni the configs folder
zENK is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-01-2011 , 17:49   Re: Weapon Chance by Exolent
Reply With Quote #188

Remove the "//" in front of the weapons
Code:
// Weapon Name  - Default Team - Max Clip - Max Ammo
p228         -            0 -       13 -       52
shield       -            2 -        0 -        0
scout        -            0 -       10 -       90
hegrenade    -            0 -        0 -        1
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-01-2011 , 17:49   Re: Weapon Chance by Exolent
Reply With Quote #189

Okay, well now that it doesn't crash, it means you have installed it correctly.

Now, open weapon_chance.cfg, and add the weapons you want to be able to get by chance.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
zENK
Member
Join Date: Aug 2011
Old 09-01-2011 , 18:02   Re: Weapon Chance by Exolent
Reply With Quote #190

uhm... Now i get a knife, and when i get the knife, my grenades get removed :S?

zENK is offline
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 11:09.


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