AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Gunners vs Ninjas (https://forums.alliedmods.net/showthread.php?t=58313)

djmd378 07-23-2007 16:55

Gunners vs Ninjas
 
1 Attachment(s)
Quote:

Originally Posted by iHaxor.Stan (Post 502447)
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.

X-Script 07-26-2007 12:58

Re: Gunner vs. Ninjas
 
Lol, fun :)

george7004 07-26-2007 13:12

Re: Gunner vs. Ninjas
 
maybe the ninja is a bit overpowering...

djmd378 07-28-2007 16:48

Re: Gunner vs. Ninjas
 
Quote:

Originally Posted by george7004 (Post 508561)
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.

purple nurple 07-29-2007 00:55

Re: Gunner vs. Ninjas
 
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 07-29-2007 00:58

Re: Gunner vs. Ninjas
 
This is kinda like zombie swarm to :/

Duster 07-29-2007 08:21

Re: Gunner vs. Ninjas
 
yeah ur the right guy to talk... grabing other ppl plugins and putting ur name on it, and the most ironic, ur selling them...

djmd378 07-29-2007 15:21

Re: Gunner vs. Ninjas
 
Quote:

Originally Posted by purple nurple (Post 509634)
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 (Post 509636)
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.

Jawz 07-30-2007 07:39

Re: Gunner vs. Ninjas
 
Get kunai knife like naruto have thet are ninjas :D

djmd378 08-03-2007 00:38

Re: Gunner vs. Ninjas
 
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.


All times are GMT -4. The time now is 13:52.

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