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

Help With a plugin Jailbreak


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sasukebr
Member
Join Date: Feb 2012
Location: Porto Alegre
Old 08-15-2012 , 22:56   Help With a plugin Jailbreak
Reply With Quote #1

Hello guys I need a plugin when a prisoner has the type ct / box they begin to the box
sasukebr is offline
Send a message via MSN to sasukebr Send a message via Skype™ to sasukebr
yokanayako
Member
Join Date: Jun 2012
Old 08-16-2012 , 09:34   Re: Help With a plugin Jailbreak
Reply With Quote #2

here you have it


PHP Code:
#include <amxmodx> 
#include <cstrike> 
 
#define PLUGIN "JailBreak Box" 
#define VERSION "1.1" 
#define AUTHOR "Ricardo" 
 
new iFFiHandler 
 
public plugin_init() { 
register_plugin(PLUGINVERSIONAUTHOR
iFF get_cvar_pointer"mp_friendlyfire" 
 
iHandler get_pcvar_numiFF 
 
register_clcmd"say /box""cmdBox" 

 
public 
cmdBoxid ) { 
if( !
is_user_connectedid ) || !is_user_aliveid ) || cs_get_user_teamid ) != CS_TEAM_CT ) { 
return 
PLUGIN_HANDLED 

 
switch( 
iHandler ) { 
case 
0: { 
server_cmd"mp_friendlyfire 1" 
set_hudmessage(02550, -1.0, -1.006.012.0
show_hudmessage(id"Jailbreak Box Activated!"

case 
1: { 
server_cmd"mp_friendlyfire 0" 
set_hudmessage(25500, -1.0, -1.006.012.0
show_hudmessage(id"Jailbreak Box Deactivated!"


 
iHandler = !iHandler 
 
return PLUGIN_HANDLED 

yokanayako is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 08-16-2012 , 13:22   Re: Help With a plugin Jailbreak
Reply With Quote #3

Quote:
iFF = get_cvar_pointer( "mp_friendlyfire" )
Why you use that?
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos 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 04:53.


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