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

Chicken Mod [BETA]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
yousef
Member
Join Date: Jan 2012
Location: Home
Old 01-12-2017 , 20:51   Chicken Mod [BETA]
Reply With Quote #1

Chicken Mod
Version 0.1 (BETA)
by Pokemonmaster & Yousef

Introduction:
This is a Counter-Strike 1.6 mod where all players join as cts and then they have to find a weapon that is placed randomly or specific origin by a file in the map, if didn't in time or if someone finds the weapon, friendly fire will be enabled. There are levels and points system and xp system to make this more entertaining.

Admin Commands:
  • amx_add_xp <name | @all> <XP>
    - add xp to a player
  • amx_give_points <name | @all> <points>
    - add points to a player
  • amx_set_points <name | @all> <points>
    - set points to a player
  • amx_take_points <name | @all> <points>
    - take points from a player
  • amx_spawn_edit_mode <0 | 1>
    - 0 = Spawn edit off | 1 = Spawn edit on

Client Commands:
  • (say) /shop or shop
    - Opens the shop's menu
  • (say) /points or points
    - View player's points
  • (say) /level or level or /xp or xp
    - View player's xp and level
  • chooseteam ('m' button)
    - Opens Chicken Mod Menu
  • +spgrab
    - Admins command to grab spawn entities

Chicken Mod Menu:
  • Players Points
    - View connected player's points
  • Shop Menu
    - Opens the shop's menu
  • Toggle Mod Sounds
    - Toggle the sounds for the player (ON|OFF)
  • Admin Menu
    • Points Menu
    • Give Weapon to Player
    • Give Shop Item to Player
    • Weapon Spawn Points Menu

Shop Menu:
  • Guiding Laser
  • Joker Model
  • Chicken Model
  • More Speed
  • Chicken Nuggets (Health)
  • Chicken Bazooka

Things You may change:
(line 29)
Spoiler


Changelog:
Spoiler


Important Note:
So basically the reason why I'm sharing this right now is because this was made before a year ago and me and my friend thought we will add alot more things before, but we forgot about it and quitted. So I'm sharing it now maybe some creative guy will add things or make it better or even benefits from the code, so feel free to edit the plugin and post your edition here, and please don't hate me for sharing "boring and unfinished" mod as I said the reason. (The mod is tested and working expect for the native things)

Credits:
  • Everyone in alliedmodders
Attached Files
File Type: inc chicken_mod.inc (575 Bytes, 241 views)
File Type: zip cstrike.zip (2.81 MB, 347 views)
File Type: sma Get Plugin or Get Source (chicken_mod.sma - 996 views - 107.1 KB)
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدً عَبْدُه وَرَسُوْلُه
Multimod Extended
Guess Who Mod
Chicken Mod [BETA]

Last edited by yousef; 01-12-2017 at 21:02.
yousef is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-12-2017 , 21:06   Re: Chicken Mod [BETA]
Reply With Quote #2

Why Chicken ? and any screenshots/gameplay?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
yousef
Member
Join Date: Jan 2012
Location: Home
Old 01-12-2017 , 21:15   Re: Chicken Mod [BETA]
Reply With Quote #3

Quote:
Originally Posted by EFFx View Post
Why Chicken ? and any screenshots/gameplay?
It's named chicken because players will have the chicken model and there are some funny chicken sounds.

I can't really get any screenshots or gameplay as I don't have the game anymore, so sorry, but try it yourself and check out the mod, but make sure to change this to 1 so you can test it alone.
Code:
// ---- Minimum players to start mod. ----		(Integer)
#define MIN_PLAYERS					2
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدً عَبْدُه وَرَسُوْلُه
Multimod Extended
Guess Who Mod
Chicken Mod [BETA]
yousef is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-12-2017 , 21:29   Re: Chicken Mod [BETA]
Reply With Quote #4

So, how you has tested that mod? And why should I define MIN_PLAYERS to 2? I cannot test with 16x16?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
yousef
Member
Join Date: Jan 2012
Location: Home
Old 01-12-2017 , 21:45   Re: Chicken Mod [BETA]
Reply With Quote #5

Quote:
Originally Posted by EFFx View Post
So, how you has tested that mod?
Quote:
Originally Posted by yousef View Post
Important Note:
... because this was made before a year ago and...
It's made before a year ago and I have tested it back then.

Quote:
Originally Posted by EFFx View Post
And why should I define MIN_PLAYERS to 2? I cannot test with 16x16?
Ofcurse you can test it with 32 players but I thought you will test it alone for a fast one.
by the way the gameplay is only on 1 team which is CT so it won't be 16x16 it will be 32 in CT trying to find the random weapon that's dropped in the map, if failed in time or if succeeded, friendly fire will be enabled and team will start killing each others with only knifes expect for the one who found the weapon until there's only 1 player left, and then the round restarts. I know it's not that much entertaining but that's why I released it, so someone can actually make it better and more fun.
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدً عَبْدُه وَرَسُوْلُه
Multimod Extended
Guess Who Mod
Chicken Mod [BETA]
yousef is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-12-2017 , 22:10   Re: Chicken Mod [BETA]
Reply With Quote #6

But, how can you test if some bugs appear? Trust you on your mod? Have you fixed all the bugs with your tests?
I've played a little with your mod, I like it.

I'm not good at suggestions. But I've readed a little your code and here's what I seen.

1.

PHP Code:
public bomb_msg( )
{
    
client_print0print_center"" );

PHP Code:
public forward_setmodelentitymodel[] )
{
    if( !
is_valid_ententity ) )
    {
        return 
FMRES_IGNORED;
    }
    
    if( 
equalmodel"models/w_backpack.mdl" ) )
    {
        
// You can remove this and add hook register_message() for block textmessages
        
client_print0print_center"" );
        new 
ClassName[32];
        
entity_get_stringentityEV_SZ_classnameClassName31 );
        
        if( 
equalClassName"weaponbox" ) )
        {
            
remove_entityentity );
            return 
FMRES_SUPERCEDE;
        }
    }
    
    return 
FMRES_IGNORED;

Something similar at this:

PHP Code:
register_message(get_user_msgid("TextMsg"), "Message_TextMsg")

public 
Message_TextMsg(iMsgIdiMsgDestid)
{
    if( !
id && get_msg_arg_int(1) == print_center )
    {
        new 
szMessage[15]
        
get_msg_arg_string(2szMessagecharsmax(szMessage))
        if( 
equal(szMessage"#Bomb_Planted") )
        {
            return 
PLUGIN_HANDLED
        
}
        else if( 
equal(szMessage"#Game_bomb_drop") )
        {
            return 
PLUGIN_HANDLED
        
}
    }
    return 
PLUGIN_CONTINUE

Hope you understand.

2.

PHP Code:
stock CountPlayers(iAlive 0)
{
    new 
iCount;
    for(new 
i<= g_iMaxPlayersi++)
    {
        if(
is_user_connected(i) && !is_user_bot(i))
        {
            if(
iAlive)
            {
                if( 
IsInBit(gAliveBiti) )
                {
                    if(
cs_get_user_team(i) == CS_TEAM_CT)
                    {
                        
iCount++;
                    }
                }
            }
            
            else if (
cs_get_user_team(i) == CS_TEAM_CT)
            {
                
iCount++;
            }
        }    
    }
    
    return 
iCount;


Always use get_players() for loop players number.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 01-12-2017 at 22:26.
EFFx is offline
yousef
Member
Join Date: Jan 2012
Location: Home
Old 01-13-2017 , 11:01   Re: Chicken Mod [BETA]
Reply With Quote #7

Quote:
Originally Posted by EFFx View Post
But, how can you test if some bugs appear? Trust you on your mod? Have you fixed all the bugs with your tests?
I've played a little with your mod, I like it.
I'm pretty sure when I tested it there were no bugs.

Quote:
Originally Posted by EFFx View Post
Spoiler
Thank you for your helping, but I don't think you understood my point. My point is that me and my friend have quitted coding and cs 1.6 so I won't actually update it. I'm sharing the mod, maybe someone will add some creative things and make it a better mod or even benefits from the code.
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدً عَبْدُه وَرَسُوْلُه
Multimod Extended
Guess Who Mod
Chicken Mod [BETA]
yousef is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-13-2017 , 17:34   Re: Chicken Mod [BETA]
Reply With Quote #8

Wow, okay...
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx 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 02:44.


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