Raised This Month: $ Target: $400
 0% 

Gunners vs Ninjas


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
djmd378
Senior Member
Join Date: Sep 2004
Old 07-23-2007 , 16:55   Gunners vs Ninjas
Reply With Quote #1

Quote:
Originally Posted by iHaxor.Stan View Post
If anybody wants to take a shot at making this, feel free to release it yourself ;)
PHP Code:
/*****************************************************************************************************************
* Description and idea by iHaxor.Stan:
*
* Gunners versus Ninjas is a plugin that implements a new style of gameplay 
* into Counter-Strike 1.6. Terrorists are the gunners, while CT's are the Ninjas. 
* Ofcourse, the objective is to kill the other team. Every round, players switch teams, 
* to make the game more interesting! This game requires a lot of teamwork, mostly on 
* the Ninjas side. Stick together and charge the gunners as one, and you can get some FUN battles going!!
*******************************************************************************************************************/

#include <amxmodx>
#include <cstrike>
#include <fakemeta> 
CVARS
amx_gvn_enabled "1" // Enable ninja vs gunner
amx_gvn_teamswitch "1" // Enable Endround team switching

amx_ninja_health "400" // Ninjas health
amx_ninja_armor "200" // Ninjas armor
amx_ninja_speed "500.0" // How fast ninja runs (260 is scout speed)
amx_ninja_gravity "0.25" // How low gravity ninja has
amx_ninja_visibility "75" // How visiable is the ninja
amx_ninja_nkb "1" // If Ninjas has No Knocked back

amx_gunner_health "200" // Gunners health
amx_gunner_armor "500" // Gunners armor
amx_gunner_peo "1" // If Gunners can only use para and elites
amx_gunner_glow "1" // Set Gunners Glow?


Change Log:
0.1 - Release/remake
0.2 - Some Updates
0.3 - Some more updates.
0.4 - Fixed minor bugs and added no knock back + cvar
0.5 - Improved Gunners weapon drop and now changed to give full ammo to Gunners.
0.6 to 0.7a - I dunno stuff?




Anyone have suggestions for this, feel free to post. Giving good suggestions to improve this will just make it unique enough to maybe be approved.
Attached Files
File Type: sma Get Plugin or Get Source (gvn_md.sma - 1227 views - 9.5 KB)
__________________

Last edited by djmd378; 10-14-2007 at 21:04. Reason: Moved Attachment to first post (this post)
djmd378 is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 07-26-2007 , 12:58   Re: Gunner vs. Ninjas
Reply With Quote #2

Lol, fun
X-Script is offline
george7004
Member
Join Date: Jul 2006
Old 07-26-2007 , 13:12   Re: Gunner vs. Ninjas
Reply With Quote #3

maybe the ninja is a bit overpowering...
__________________
george7004 is offline
djmd378
Senior Member
Join Date: Sep 2004
Old 07-28-2007 , 16:48   Re: Gunner vs. Ninjas
Reply With Quote #4

Quote:
Originally Posted by george7004 View Post
maybe the ninja is a bit overpowering...
Well I just used the settings (for the most part) that the original author used. Since some may feel its over powering, I made it as customizable as you want.
__________________
djmd378 is offline
purple nurple
Senior Member
Join Date: Jun 2007
Location: US Missouri
Old 07-29-2007 , 00:55   Re: Gunner vs. Ninjas
Reply With Quote #5

do this instead of all those register_cmds
PHP Code:
#define MAXBLOCKEDCOMMANDS 39
new BlockedCommand[MAXBLOCKEDCOMMANDS][] = {
    
"buy""buyequip""cl_autobuy""cl_rebuy""cl_setautobuy""cl_setrebuy",
    
"drop",        // nur wenn Waffe leer
    
"km45""9x19mm""nighthawk""228compact""elites""fiveseven",    // Handguns
    
"12gauge""autoshotgun",                        // Shotguns
    
"smg""mp5""c90""mac10""ump45",                    // SMG
    
"cv47""defender""clarion""krieg552""m4a1""bullpup""scout""magnum""d3au1""krieg550",    // Rifles
    
"m249",                                    // Machinegun
    
"vest""vesthelm""flash""hegren""sgren""defuser""nvgs""shield"    // Equipment (wird automatisch verteilt)
}
public 
client_command(player) {
    new 
cmd[50]
    
read_argv(0cmd49)
   
    for(new 
MAXBLOCKEDCOMMANDSi++)
    {
        if (
equali(cmdBlockedCommand[i]))
        {
            if (
equali(cmd"drop"))
            {
                new 
clipammoweapon
                weapon 
get_user_weapon(playerclipammo)
                
                if (
weapon == CSW_C4) return PLUGIN_CONTINUE
                
if (weapon == CSW_KNIFE) return PLUGIN_HANDLED
                
                
if ((!ammo) && (!clip)) return PLUGIN_CONTINUE
            
}
            
           
            return 
PLUGIN_HANDLED
        
}
    }
    
    return 
PLUGIN_CONTINUE

I took this from another plugin
purple nurple is offline
djmd378
Senior Member
Join Date: Sep 2004
Old 07-29-2007 , 15:21   Re: Gunner vs. Ninjas
Reply With Quote #6

Quote:
Originally Posted by purple nurple View Post
do this instead of all those register_cmds
I took this from another plugin

If you're ganna try to help someone else at lest post the thing you are tying to help with correctly.


This is not needed.
Code:
            if (equali(cmd, "drop"))             {                 new clip, ammo, weapon                 weapon = get_user_weapon(player, clip, ammo)                                 if (weapon == CSW_C4) return PLUGIN_CONTINUE                 if (weapon == CSW_KNIFE) return PLUGIN_HANDLED                                 if ((!ammo) && (!clip)) return PLUGIN_CONTINUE             }

It should really look like this..
Code:
 //... public client_command(id) {     new cmd[50]     read_argv(0, cmd, 49)       for(new i = 0 ; i < MAXBLOCKEDCOMMANDS; i++)         if (equali(cmd, BlockedCommand[i]))             return PLUGIN_HANDLED     return PLUGIN_CONTINUE }
I already know a way to prevent them from using any other weapons other than the ones that are allowed. Those commands are only there temporary. Also this code you gave me won't prevent the gunners from using weapons they found on the floor.


Quote:
Originally Posted by purple nurple View Post
This is kinda like zombie swarm to :/
I'm just redoing someone else's plugin. If people actually like this idea, I'll add more to it, for example, no knock back for ninjas (It was on the to do list of the original author).


[edit] Oh and... theres an "Edit" feature on these forums. No need to double post.
__________________

Last edited by djmd378; 07-29-2007 at 15:23.
djmd378 is offline
purple nurple
Senior Member
Join Date: Jun 2007
Location: US Missouri
Old 07-29-2007 , 00:58   Re: Gunner vs. Ninjas
Reply With Quote #7

This is kinda like zombie swarm to :/
purple nurple is offline
Duster
BANNED
Join Date: Jul 2007
Old 07-29-2007 , 08:21   Re: Gunner vs. Ninjas
Reply With Quote #8

yeah ur the right guy to talk... grabing other ppl plugins and putting ur name on it, and the most ironic, ur selling them...
Duster is offline
Jawz
Member
Join Date: Jul 2007
Old 07-30-2007 , 07:39   Re: Gunner vs. Ninjas
Reply With Quote #9

Get kunai knife like naruto have thet are ninjas
Jawz is offline
djmd378
Senior Member
Join Date: Sep 2004
Old 08-03-2007 , 00:38   Re: Gunner vs. Ninjas
Reply With Quote #10

Updated to 0.3.

Used a better method of preventing gun usage for gunners. Also added new cvar to turn that feature on/off. Also did some other things that I forgot cuz I did it when I was bored.
__________________
djmd378 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 15:04.


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