Raised This Month: $32 Target: $400
 8% 

JailBreak Mod


Post New Thread Reply   
 
Thread Tools Display Modes
Mirk
Senior Member
Join Date: Nov 2012
Old 11-03-2013 , 05:18   Re: JailBreak Mod
Reply With Quote #401

This code is good? g_iSpeakNames[ fm_get_speak(id, fm_set_speak(id) == SPEAK_ALL) ];
And please help on this - http://forums.alliedmods.net/showthread.php?t=229152

PHP Code:
public plugin_init()
{
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSPLUGIN_AUTH);
    
    
g_iTimerEntity create_entity("info_target");
    
entity_set_string(g_iTimerEntityEV_SZ_classname"hud_entity");
    
register_think("hud_entity""Fwd_HudThink");
    
entity_set_float(g_iTimerEntityEV_FL_nextthinkget_gametime() + 1.0);
}

public 
Fwd_HudThink(const iEntity)
{
    if ( 
iEntity != g_iTimerEntity )
        return;
        
    static 
g_prisoners;
    
g_prisoners fnGetTerrorists();
    static 
g_guards;
    
g_guards fnGetCounterTerrorists();
    static 
simon;
    
simon g_bIsSimon;
    
    if( 
g_prisoners == && g_iDayTOTAL_DAYS ] != DAY_NONE )
    {
        
fnColorPrint(0"Den skoncil vzhladom na to, ze ostal iba^3 1 vazen");
        
Day_Ends( );
    }
    if( 
g_guards && g_iDayTOTAL_DAYS ] != DAY_NONE )
    {
        
fnColorPrint(0"Den skoncil vzhladom na to, ze ziadny ^3strazca ^1neostal");
        
Day_Ends( );
    }
    
    if( 
g_iDayTOTAL_DAYS ] == DAY_GANG )
    {
        
set_hudmessage(255000.00.5000.750.750.750.753);
        
ShowSyncHudMsg(0Hud2"Red Gang: %d"check_redteam);
        
set_hudmessage(002550.00.5000.750.750.750.751);
        
ShowSyncHudMsg(0Hud3"^nBlue Gang: %d"check_blueteam);
    }
    
    new 
szName[32]; get_user_name(simonszNamecharsmax(szName));
    
set_hudmessage(02550, -1.00.0100.750.750.750.752);
    
    if( 
g_iDayTOTAL_DAYS ] != DAY_NONE && !g_iAreWeInaVote )
        
ShowSyncHudMsg(0Hud"Prisoners: %i | Guards: %i^nToday is %s"g_prisonersg_guardsg_iStartDayNamesg_iDayTOTAL_DAYS ] ]);
    else if( 
g_bIsSimon )
        
ShowSyncHudMsg(0Hud"Prisoners: %i | Guards: %i^n%s is Simon^n"g_prisonersg_guardsszName);
    else
        
ShowSyncHudMsg(0Hud"Prisoners: %i | Guards: %i^n"g_prisonersg_guards);
    
    
entity_set_floatg_iTimerEntityEV_FL_nextthinkget_gametime() + 1.0 );


Last edited by Mirk; 11-03-2013 at 05:32.
Mirk is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 11-08-2013 , 06:24   Re: JailBreak Mod
Reply With Quote #402

@Pastout I've taken a look through your plugin and taken a few notes, I've hardly read through in detail, but its what was most easily noticeable to me. I know that this has been around for a long time, but regardless, here's some things that you can work towards to make your plugin more efficient:

Quote:
Things to do:

-Disable FM_PlayerPreThink when not in use - only used during certain events.
-Disable FM_AddToFullPack when not in use - only used in certain events.
-Disable FM_Think when not in use.
-Disable Ham_Touch when not in use.
-Remove FM_Touch. Use Ham_Touch and disable it when not in use ( or engine touch would be acceptable if applicable ).
-FM_Voice_SetClientListening forward would benefit if you were to cache player's ability to speak based on their team.
-Should be consistent with alive checks - since you have a bitsum for alive players you should never have to use is_user_alive().
-StatusIcon method used to prevent players from using buyzones is outdated and inefficient. Use m_iBuying with info_map_parameters.
-Forwards don't seem to have any particular order. Would be much preferable if they matched the order they're registerd in.
hornet is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 11-08-2013 , 07:45   Re: JailBreak Mod
Reply With Quote #403

Quote:
Originally Posted by hornet
-StatusIcon method used to prevent players from using buyzones is outdated and inefficient. Use m_iBuying with info_map_parameters.
Would hooking Ham_Touch to "func_buyzone" and return HAM_SUPERCEDE be considered as a good method?

I know I am going off topic here, but since you mentioned it why not answer my question
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 11-08-2013 , 17:39   Re: JailBreak Mod
Reply With Quote #404

Quote:
Originally Posted by tonykaram1993 View Post
Would hooking Ham_Touch to "func_buyzone" and return HAM_SUPERCEDE be considered as a good method?

I know I am going off topic here, but since you mentioned it why not answer my question
Sorry, bad terminology - it's not like StatusIcon is a bad a method, I mean't to say that it's not as efficient as the discovered ways we have now.
With Touch() being called every frame, sorry to say, it would be the most poor method possible
hornet is offline
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 11-09-2013 , 14:53   Re: JailBreak Mod
Reply With Quote #405

Quote:
Originally Posted by hornet View Post
@Pastout I've taken a look through your plugin and taken a few notes, I've hardly read through in detail, but its what was most easily noticeable to me. I know that this has been around for a long time, but regardless, here's some things that you can work towards to make your plugin more efficient:
Things Done IN BOLD:

-Disable FM_PlayerPreThink when not in use - only used during certain events.
-Disable FM_AddToFullPack when not in use - only used in certain events.
-Disable FM_Think when not in use.
-Disable Ham_Touch when not in use.
-Should be consistent with alive checks - since you have a bitsum for alive players you should never have to use is_user_alive().
-StatusIcon method used to prevent players from using buyzones is outdated and inefficient. Use m_iBuying with info_map_parameters.
As For this I really do not see the need for this, but if you want to see it done just let me know...
-Remove FM_Touch. Use Ham_Touch and disable it when not in use ( or engine touch would be acceptable if applicable ).
-FM_Voice_SetClientListening forward would benefit if you were to cache player's ability to speak based on their team.

ADD New Weather Commands:

Cvar set_weather normal(default)





For sunny weather (set_weather) to either
  • 0
  • sunny
  • normal
  • off
For rainny weather (set_weather) to either
  • 1
  • rain
For snowy weather (set_weather) to either
  • 2
  • snow
For snowy/rainny weather (set_weather) to either
  • 3
  • snowrain
  • rainsnow
Current Version 1.7.3
Attached Files
File Type: sma Get Plugin or Get Source (jailbreakmod.sma - 744 views - 257.7 KB)

Last edited by Pastout; 11-10-2013 at 10:15.
Pastout is offline
Mirk
Senior Member
Join Date: Nov 2012
Old 11-18-2013 , 17:07   Re: JailBreak Mod
Reply With Quote #406

Could you do that Simon would show HUD. And how to set raining on zombie day?

Last edited by Mirk; 11-18-2013 at 17:37.
Mirk is offline
LemonZumito
Junior Member
Join Date: Dec 2013
Old 12-01-2013 , 11:53   Re: JailBreak Mod
Reply With Quote #407

How does the chat colors in the jailbreakmod.txt work?

I can't find it out and I'm getting a lot of bugs.

I would like to know how to change prefix color and messages colors.

Last edited by LemonZumito; 12-01-2013 at 11:58.
LemonZumito is offline
r3D w0LF
Senior Member
Join Date: Dec 2013
Location: Albania
Old 12-09-2013 , 12:46   Re: JailBreak Mod
Reply With Quote #408

My server crashes when i install jilbreakmodbeta.amxx . What can i do for it?
r3D w0LF is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 12-09-2013 , 15:30   Re: JailBreak Mod
Reply With Quote #409

where is superspawns.inc ?
__________________
JusTGo is offline
code
Member
Join Date: Nov 2011
Old 03-09-2014 , 14:51   Re: JailBreak Mod
Reply With Quote #410

Good plugin but please can you make that points dont show on money bar i need money for somthing else
or make cvar to turn of it
code 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 22:11.


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