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

Weapons War v7.5 (26 Weapons)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-20-2014 , 12:59   Weapons War v7.5 (26 Weapons)
Reply With Quote #1

Weapons War v7.5
(26 Weapons)

Status:
UP-TO-DATE
(26/12/2016)


It is Weapons war!




The idea:
Quote:
This plugin will allow any player that have access to start a weapon war or voting for war round.

In weapons war round, all players will use the same weapon.

It just for fun. Thats all!
List of admin flags:
-->
Cvars?
-->
How to start a Weapons War?

Just say /ww in your chat.

How to start a vote?

Just say /wvote in you chat. Next, just choose which weapon that you want to vote. ;)

How to start a consecutive round?

Just say /cw in you chat. If you want to disable it, just say the same word again!

How to install?
1. Just download cs_war.sma file. Next, compile it.

2. Please download cs_war.txt file also. Then, put it in the lang folder.

3. Thats it!
Advantages?

This plugin is different from other weapons round plugin:
1. Easy to install. Just 2 steps!

2. Now, you can start a vote for any weapons.

3. There is 26 different weapons to choose.

4. No need to worry about losing of money or weapons. This plugin will not strip your previous weapon. Yet, it will only force you to use the choosen weapon in the war round.

5. If you are alive until the end of round, you still have the weapon from previous weapons war round. It is a gift! Or you also can strip that weapon when the weapon war round is finished. Just edit the cvar. ;)

6. In weapons war round, you can configure whether to allow player to drop or pick up current war weapon or just disable this feature.

7. If players is allow to drop their weapon during war round, only current war weapon can be used. Other weapons will be malfunction.

8. Player can have custom killer view feature.

9. There is an option for you to choose whether to allow unlimited bullet during weapons war round.

10. There is an option for you to choose whether to show hud about current weapons war round.

11. Now, you can allow auto-war vote or auto-war start.

12. Adding custom natives and forwards for any coders to modify the gameplay.

13. Auto-respawn feature. ;)

14. Consecutive round. Now, admin can start consecutive war round. In this round, admin cannot open weapon war or vote menu.

15. Now, you can start custom war round. Just download custom_war.sma to see how I'm using the new natives. ;)

16. This plugin also supported multi-lingual.
Multi-lingual?

So, I would love if anyone can help me to translate the word into their language. Just visit here to help me to translate it: https://forums.alliedmods.net/showthread.php?t=246330
-->
Weapons War (Developer Mode):

Just visit below thread:

https://forums.alliedmods.net/showpo...64&postcount=4

Screenshots:
-->
Credits:
Quote:
1. xPaw for code helping.
2. HamletEagle for suggestions.
3. Exolent[jNr] for code helping.
4. ConnorMcLeod for his code.
Changelog:
-->
Downloads:
-->
Attached Files
File Type: txt cs_war.txt (7.2 KB, 1030 views)
File Type: sma Get Plugin or Get Source (cs_war.sma - 1621 views - 34.7 KB)

Last edited by zmd94; 09-29-2017 at 06:34.
zmd94 is offline
amnezia
Member
Join Date: Jul 2014
Old 07-20-2014 , 13:23   Re: Addon: Free Grenade (ZP compatible) v1.0
Reply With Quote #2

nice one
amnezia is offline
Just4Games
Senior Member
Join Date: Jan 2013
Location: Romania
Old 07-20-2014 , 15:17   Re: Addon: Free Grenade (ZP compatible) v1.0
Reply With Quote #3

It's good but why would this be requested?
In CS 1.6 (no ZP mode) i understand but why in ZP?
You get grenades after you choose your weapons.
__________________

Just an old fart revisiting the nostalgia.
---------
Oh yeah
|[[ZPA/ZPS]NoSound]|[[ZPA/ZPS]Hud Stats(Edited)]|

PS: I go by MoistWomble nowadays.
Just4Games is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-20-2014 , 15:22   Weapons War (Developer Mode)
Reply With Quote #4

Weapons War
(Developer Mode)


cs_war.inc file?

So, this is the list of natives and forwards:
-->
For example, just download the war_trail.sma file to see how to use them. ;)

Custom Weapon War?

Just see custom_war.sma file. ;)
-->
How to use the API?
PHP Code:
///////////////////////////////////////////////////////////////
// Below is how to get current weapon war round as global string? 

// String
new g_sCurrentWar[32]

public 
cs_fw_war_start()
{
    
// Just use native cs_current_war(const szWarName[], iLen) inside cs_fw_war_start() forward. ;)
    
cs_current_war(g_sCurrentWarcharsmax(g_sCurrentWar))    
}

public 
cs_fw_vote_start()
{
    if(
equal(g_sCurrentWar"Auto-Shotgun"))
    {
        
client_print(0print_chat"Voting Auto-Shotgun round!")
    }
}

/////////////////////////////////////////////////////////////
// Below is how to use cs_fw_war_start() forward.
public cs_fw_war_start()
{
    
// Below is how to get current weapon war round. ;)
    // Just use native cs_current_war(const szWarName[], iLen);
    
new sCurrentWar[32]
    
cs_current_war(sCurrentWarcharsmax(sCurrentWar))
    
    if(
equal(sCurrentWar"Auto-Shotgun"))
    {
        
client_print(0print_chat"Now is Auto-Shotgun round!")
    }
}

/////////////////////////////////////////////////////////////
// Below is how to use cs_fw_vote_start() forward.
public cs_fw_war_end()
{
    
client_print(0print_chat"End of war!")
}

/////////////////////////////////////////////////////////////
// Below is how to use cs_fw_vote_start() forward.
public cs_fw_vote_start()
{
    
client_print(0print_chat"Please vote now!")
}

/////////////////////////////////////////////////////////////
// Below is how to use cs_fw_vote_end() forward.
public cs_fw_vote_end()
{
    
client_print(0print_chat"End of voting!")
}

/////////////////////////////////////////////////////////////
// Below is how to use cs_is_point_leader(id) native.
public fw_PlayerRespawn(id)
{
    if(
is_user_alive(id))
    {
        
// If point leader still in server after war round. Just tell about it again. ;)
        
if(cs_is_point_leader(id))
        {
            new 
szName[32]
            
get_user_name(idszNamecharsmax(szName))
            
            
client_print(0print_chat"[WW] %s is points leader!"szName)
        }
    }

API Example?

Just download the war_trail.sma file to see how to use them.

Then, open the war_trail.sma file to configure the trail color:
PHP Code:
    g_iWarTrail register_cvar("ww_allow_trail""1"// Allow player trail during war round
    
g_iCTAdminTrail register_cvar("ww_CT_admin_trail""0 255 0"// Trail color for CT admin
    
g_iTAdminTrail register_cvar("ww_T_admin_trail""255 127 0"// Trail color for T admin
    
g_iCTTrail register_cvar("ww_CT_trail""0 0 255"// Trail color for CT player
    
g_iTTrail register_cvar("ww_T_trail""255 0 0"// Trail color for T player 
Downloads:
-->

Codes now is at GitHub:


Attached Files
File Type: inc cs_war.inc (1.6 KB, 555 views)
File Type: sma Get Plugin or Get Source (custom_war.sma - 1220 views - 3.1 KB)
File Type: sma Get Plugin or Get Source (war_trail.sma - 1147 views - 2.0 KB)

Last edited by zmd94; 10-07-2015 at 00:33.
zmd94 is offline
DonKisgot
Senior Member
Join Date: Dec 2010
Old 07-20-2014 , 16:58   Re: Addon: Free Grenade (ZP compatible) v1.0
Reply With Quote #5

Nice plugin. I'll make a little request if you mind ,

Can you make a cvar for only admins get grenade after killing player (for cs. (not zp)) if this cvar is on only admins will get free grenade after killing each player.
DonKisgot is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-20-2014 , 18:20   Re: Addon: Free Grenade (ZP compatible) v1.0
Reply With Quote #6

Quote:
Originally Posted by DonKisgot View Post
Can you make a cvar for only admins get grenade after killing player?
I will update it. Thank you for the suggestion.
zmd94 is offline
DonKisgot
Senior Member
Join Date: Dec 2010
Old 07-20-2014 , 18:50   Re: Addon: Free Grenade (ZP compatible) v1.0
Reply With Quote #7

Thanks. Waiting your update. btw I translated in Turkish.

[tr]
MENU_1 = Normal Bomba Paketi
MENU_2 = El Bombasi
MENU_3 = Flash Bombasi
ZP_MENU_1 = Normal Bomba Paketi
ZP_MENU_2 = Ates Bombasi
ZP_MENU_3 = Dondurucu Bomba
MENU_EXIT = Cikis
DonKisgot is offline
Brian_Chino77
Senior Member
Join Date: Mar 2014
Location: dunno
Old 07-20-2014 , 18:52   Re: Addon: Free Grenade (ZP compatible) v1.0
Reply With Quote #8

Good Addon!
Maybe not like what i supposed, but thanks for helping

PS: Can you make like Buy primary > Secondary > Grenade (show by list) ?
Brian_Chino77 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-20-2014 , 19:21   Re: Addon: Free Grenade (ZP compatible) v2.0
Reply With Quote #9

New update!
Quote:
v2.0 - [ADDED] Grenade bonus for admin only after killing a victim.
It is as requested by DonKisgot.
Quote:
Language is updated. Thank you to DonKisgot.
Quote:
Can you make like Buy primary > Secondary > Grenade (show by list)?
Maybe, I will try later.

Last edited by zmd94; 07-20-2014 at 19:22.
zmd94 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-20-2014 , 22:27   Re: Addon: Free Grenade (ZP compatible) v2.2
Reply With Quote #10

New update!
Quote:
v2.2 - [ADDED] Multilingual supported.
Quote:
MENU_1 = Normal Packs of Grenades
MENU_2 = HE Grenade
MENU_3 = Flashbang
ZP_MENU_1 = Normal Packs of Grenades
ZP_MENU_2 = Fire Grenade
ZP_MENU_3 = Frost Grenade
MENU_EXIT = Exit

ADVERTISE_1 = You can receive free grenades.
ADVERTISE_2 = Just say /freegrenade, then a Free Grenade menu will be opened.

WORD_1 = You have receive a normal packs of grenades.
WORD_2 = You have receive a HE grenades.
WORD_3 = You have receive a flashbang.
WORD_4 = You have receive a HE grenade for killing.
WORD_5 = You have receive a flashbang for killing.

ZP_WORD_2 = You have receive a fire grenades.
ZP_WORD_3 = You have receive a frost grenades.
ZP_WORD_4 = You have receive a fire grenade for killing.
ZP_WORD_5 = You have receive a frost grenade for killing.

ADMIN_ACCESS = Only admin can use this command.
Feel free to translate it into your language.
zmd94 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 04:14.


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