Raised This Month: $32 Target: $400
 8% 

Custom Start Weapons ( 24/02/2014 )


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Event Related        Approver:   hornet (5)
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-05-2013 , 19:50   Custom Start Weapons ( 24/02/2014 )
Reply With Quote #1

Custom Start Weapons
v1.1.0
by Blizzard_87


ThreadStart
This plugin allows you to block default game start weapons and add custom start weapons.
you can also block MAP start weapons ( e.g. scoutzknivez map ).
you can have different sets of weapons for each team on any map, or have default weapons set for maps.
csw_mode "2" | 0 = plugin disabled | 1 = knifes only start | 2 = custom weapons from config file
csw_blockmap_weapons "1" | 0 = allows maps weapons | 1 = blocks maps weapons
howto setup this plugin.

howto setup this plugin.

put csw.ini file into your configs folder.

Code:
// Map Configs Must Be Defined First
cs_assault ct "deagle 35;m4a1 90;awp 30;scout 20;hegrenade 2;"
cs_assault tr "deagle 35;ak47 90;smokegrenade 2;"
//
// Define Default Weapons After All Map Configs.
//
default ct "usp 90;"
default tr "glock18 90;"
*WARNING* You Must Follow Config Setup Exactly As In Example Provided In File Attached Otherwise NO Weapons Will Load.

Weapons Short Names


Requirements
you must use the latest version of AMXX 1.8.3, Latest builds can be found Here
Shadow.hk - helping me understand readfile better.

Hornet
for idea of blocking start weapons instead of striping
and blocking custom maps start weapons.
dynamic arrays
ConnorMcLeod code snippet for blocking start weapons
Please Note
-----------
this plugin could conflict with other game play plugins that alter spawning with weapons or stripping of weapons ex. JailBreak

ToDo List
---------
Add Custom BpAmmo - Done!
Add Nade Support - Done!


Change Log


_____________________________
Servers Using This PluginThreadEnd

Attached Files
File Type: sma Get Plugin or Get Source (Custom-Start-Weapons.sma - 1797 views - 9.8 KB)
File Type: ini csw.ini (257 Bytes, 1511 views)
__________________

Last edited by Blizzard_87; 06-26-2015 at 01:53.
Blizzard_87 is offline
Cheezpuff
BANNED
Join Date: Oct 2012
Location: City of the Dead
Old 06-05-2013 , 21:54   Re: Custom Spawn Gun
Reply With Quote #2

Very Cool, Thanks ;]
Cheezpuff is offline
Send a message via Skype™ to Cheezpuff
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-05-2013 , 22:14   Re: Custom Spawn Gun
Reply With Quote #3

Updated Version 1.0.1

[ ADDED ] Cvar for Custom Weapon Delay
[ ADDED ] Cvar for Custom Weapon Mode
__________________
Blizzard_87 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-06-2013 , 00:29   Re: Custom Spawn Gun
Reply With Quote #4

Already made. However, since the other one was made in 2005, it's about time someone updated it or write a new one. So good job.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-06-2013 , 00:40   Re: Custom Spawn Gun
Reply With Quote #5

Quote:
Originally Posted by wickedd View Post
Already made. However, since the other one was made in 2005, it's about time someone updated it or write a new one. So good job.
thanks. could you link it so i can see how i could improve this one more? unless i find it myself.
__________________
Blizzard_87 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-06-2013 , 01:05   Re: Custom Spawn Gun
Reply With Quote #6

Here you go.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-06-2013 , 01:08   Re: Custom Spawn Gun
Reply With Quote #7

Updated Version 1.0.2

[ FIXED ] Only setting Custom weapon on FIRST spawn instead of every spawn.
__________________
Blizzard_87 is offline
WhyThis
Senior Member
Join Date: May 2013
Old 06-06-2013 , 01:52   Re: Custom Spawn Gun
Reply With Quote #8

Thanks seems good
it have many features!

Some ideas !
-You can add a cvar to change the ammo of charger ! Example: deagle has 7/35 ammo, you can edit it to: 7/100 or 10/35 or 10/100 !!! (you can change the number 10 or 100 by cvar)
-In your post add: the name of all guns (in a spoiler) because you have gived only 1 example: deagle !

GooooD Job Man !
EDIT:
This is wepons short names:
Weapons Short Names

Last edited by WhyThis; 06-06-2013 at 01:59. Reason: Added Wepons short names !
WhyThis is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-06-2013 , 03:07   Re: Custom Spawn Gun
Reply With Quote #9

Quote:
Originally Posted by WhyThis View Post
Thanks seems good
it have many features!

Some ideas !
-You can add a cvar to change the ammo of charger ! Example: deagle has 7/35 ammo, you can edit it to: 7/100 or 10/35 or 10/100 !!! (you can change the number 10 or 100 by cvar)
-In your post add: the name of all guns (in a spoiler) because you have gived only 1 example: deagle !

GooooD Job Man !
EDIT:
This is wepons short names:
Weapons Short Names
Yes already going to add that feature with the gun ammo
And much more soon. Just making sure i for it all with less amount of code.
__________________
Blizzard_87 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-07-2013 , 22:35   Re: Custom Spawn Gun
Reply With Quote #10

Sounds like a good idea.

However, rather than stripping the user's weapons every time they spawn, it would be better to block giving them instead. Take a look at this post.

You could also have an option for the plugin to check the map for certain entities so it can automatically determine if the plugin should run during that map eg. awp_india.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet 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 10:54.


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