AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Custom Start Weapons ( 24/02/2014 ) (https://forums.alliedmods.net/showthread.php?t=217673)

Blizzard_87 06-05-2013 19:50

Custom Start Weapons ( 24/02/2014 )
 
9 Attachment(s)
Custom Start Weapons
v1.1.0
by Blizzard_87


ThreadStart
http://i.justblzd.tk/desc.png
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.
http://i.justblzd.tk/cvars.png
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
http://i.justblzd.tk/configs.png
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
http://i.justblzd.tk/credits.png
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

http://i.justblzd.tk/Download.png

Cheezpuff 06-05-2013 21:54

Re: Custom Spawn Gun
 
Very Cool, Thanks ;]

Blizzard_87 06-05-2013 22:14

Re: Custom Spawn Gun
 
Updated Version 1.0.1

[ ADDED ] Cvar for Custom Weapon Delay
[ ADDED ] Cvar for Custom Weapon Mode

wickedd 06-06-2013 00:29

Re: Custom Spawn Gun
 
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. :up:

Blizzard_87 06-06-2013 00:40

Re: Custom Spawn Gun
 
Quote:

Originally Posted by wickedd (Post 1965422)
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. :up:

thanks. could you link it so i can see how i could improve this one more? unless i find it myself.

wickedd 06-06-2013 01:05

Re: Custom Spawn Gun
 
Here you go.

Blizzard_87 06-06-2013 01:08

Re: Custom Spawn Gun
 
Updated Version 1.0.2

[ FIXED ] Only setting Custom weapon on FIRST spawn instead of every spawn.

WhyThis 06-06-2013 01:52

Re: Custom Spawn Gun
 
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

Blizzard_87 06-06-2013 03:07

Re: Custom Spawn Gun
 
Quote:

Originally Posted by WhyThis (Post 1965450)
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.

hornet 06-07-2013 22:35

Re: Custom Spawn Gun
 
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.


All times are GMT -4. The time now is 22:18.

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