Raised This Month: $535 Target: $400
 133% 

[REQ] BaseBuilder Plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RBE sLayeR
Member
Join Date: Jul 2019
Location: Republic of Kosovo
Old 05-15-2020 , 19:01   [REQ] BaseBuilder Plugins
Reply With Quote #1

Hi im looking for some basebuilder plugins

1.Auto Revive players when they join game

2.A plugin where for example if ZM spawn is blocked either the blocks will automatically remove that are blocking zm spawn or a plugin where if ZM uses a command for example "say /escape" or whatever they spawn to a random CT spawn
__________________
Copy-and-Paste was programmed by programmers for programmers actually

Last edited by RBE sLayeR; 05-15-2020 at 19:03.
RBE sLayeR is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 05-16-2020 , 04:20   Re: [REQ] BaseBuilder Plugins
Reply With Quote #2

Quote:
Originally Posted by RBE sLayeR View Post
Hi im looking for some basebuilder plugins

1.Auto Revive players when they join game

2.A plugin where for example if ZM spawn is blocked either the blocks will automatically remove that are blocking zm spawn or a plugin where if ZM uses a command for example "say /escape" or whatever they spawn to a random CT spawn
I using this plugin in my server, It made for zombie basebuilder mod and will be work perfectly in your server

PHP Code:
#include < amxmodx >
#include < fakemeta >
#include < hamsandwich >

#pragma semicolon 1

#define VERSION "0.1.0"
#define PLUGIN "Respawn on First Join"

const m_iJoiningState 121;
const 
m_iMenu 205;
const 
MENU_CHOOSEAPPEARANCE 3;
const 
JOIN_CHOOSEAPPEARANCE 4;

new 
HamHook:g_iHhCBasePlayerPreThink;

#define MaskEnt(%0)    ( 1<<(%0 & 31) )

new g_iBitHookPlayerPreThink;
#define MarkPlayerPreThink(%0)    g_iBitHookPlayerPreThink |= MaskEnt(%0)
#define ClearPlayerPreThink(%0)    g_iBitHookPlayerPreThink &= ~MaskEnt(%0)
#define HookPlayerPreThink(%0)    ( g_iBitHookPlayerPreThink & MaskEnt(%0) )

public plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod");

    
register_clcmd("menuselect""ClCmd_MenuSelect_JoinClass"); // old style menu
    
register_clcmd("joinclass""ClCmd_MenuSelect_JoinClass"); // VGUI menu

    
DisableHamForwardg_iHhCBasePlayerPreThink RegisterHam(Ham_Player_PreThink"player""OnCBasePlayer_PreThink_Post"true) ); // register it for later
}

// player is pressing a key in an old style menu
// or player is sending joinclass command, either by typing it in console, either selecting a option from VGUI skins selection menu
public ClCmd_MenuSelect_JoinClass(id)
{
    
// Don't need to check args here, because (assuming player is in the skin select menu, 
    // we gonna check this) if there is no arg, or if arg is bad, game gonna act as if player was choosing auto-select.
    // So first check if player is in the correct menu, pdata m_iMenu can just tell us
    // Then check if player has just joined the server, m_iJoiningState is used by the game for this
    
if( get_pdata_int(idm_iMenu) == MENU_CHOOSEAPPEARANCE && get_pdata_int(idm_iJoiningState) == JOIN_CHOOSEAPPEARANCE )
    {
        
// Enable PreThink for 1 frame if not already
        
if( !g_iBitHookPlayerPreThink )
        {
            
EnableHamForwardg_iHhCBasePlayerPreThink );
        }
        
MarkPlayerPreThink(id);
    }
}

// Little explanation on what should happen after player has chosen a skin :
// In CBasePlayer::PreThink, if player pdata m_iJoiningState is different from 0, function CBasePlayer::JoinThink gonna be called
// In JoinThink function, if m_iJoiningState 5 it means that player has just chosen a skin, we had checked if pdata was 4 because player has not chosen a team yet
// Then game checks if that player can be respawn with function CGameRules::FPlayerCanRespawn (if no objective or no player in 1 team player can respawn, 
// else if we are less that 20sec after round start player can respawn, else player won't spawn)

// So now that PreThink and JoinThink have been called, let's check if player has been respawned or not.
public OnCBasePlayer_PreThink_Postid )
{
    if( !
HookPlayerPreThink(id) )
    {
        return 
HAM_IGNORED;
    }

    
ClearPlayerPreThink(id);
    if( !
g_iBitHookPlayerPreThink )
    {
        
DisableHamForwardg_iHhCBasePlayerPreThink );
    }

    if( !
is_user_alive(id) )
    {
        
// if player has not been respawned by the game, let's force it.
        
ExecuteHam(Ham_Spawnid);
        return 
HAM_HANDLED;
    }
    return 
HAM_IGNORED;

The second request: I think there's no one can help you for this, only Traint or Veco But i have another plugin working for after prep time mod removing automatically blocks that's no one has move it

Last edited by Supremache; 05-16-2020 at 05:36.
Supremache is offline
RBE sLayeR
Member
Join Date: Jul 2019
Location: Republic of Kosovo
Old 05-16-2020 , 10:24   Re: [REQ] BaseBuilder Plugins
Reply With Quote #3

Quote:
Originally Posted by Supremache View Post
I using this plugin in my server, It made for zombie basebuilder mod and will be work perfectly in your server
Thx , will test later ,

Quote:
The second request: I think there's no one can help you for this, only Traint or Veco
Couldnt one like it be made , smth like defining if some objcets are inside or near func_wall "barrier"

Too bad there arent much extra plugins for bb mod
__________________
Copy-and-Paste was programmed by programmers for programmers actually

Last edited by RBE sLayeR; 05-16-2020 at 16:42.
RBE sLayeR is offline
RBE sLayeR
Member
Join Date: Jul 2019
Location: Republic of Kosovo
Old 05-16-2020 , 16:23   Re: [REQ] BaseBuilder Plugins
Reply With Quote #4

BTW , could you PM me your bb server IP ?
__________________
Copy-and-Paste was programmed by programmers for programmers actually
RBE sLayeR is offline
RBE sLayeR
Member
Join Date: Jul 2019
Location: Republic of Kosovo
Old 05-17-2020 , 08:04   Re: [REQ] BaseBuilder Plugins
Reply With Quote #5

I found a plugin which can remove blocks that have blocked zm spawn
I found it here

Spoiler


but the problem is , im getting some errors while trying to compile

PHP Code:
AMX Mod X Compiler 1.9.0.5263
Copyright 
(c1997-2006 ITB CompuPhase
Copyright 
(c2004-2013 AMX Mod X Team

Error
Invalid symbol name "" on line 43
Error
Undefined symbol "Baslik" on line 45
Error
"sizeof" operator is invalid on "function" symbols on line 45
Error
Invalid expressionassumed zero on line 45
Error
Too many error messages on one line on line 45

Compilation aborted
.
5 Errors
__________________
Copy-and-Paste was programmed by programmers for programmers actually
RBE sLayeR 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 11:12.


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