Raised This Month: $ Target: $400
 0% 

Box


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 06-11-2011 , 16:52   Box
Reply With Quote #1

Hey, I scripted a code that when you type in JailBreak server /box it turns FF(Friendly Fire) ON. I want to add one more thing to the script but dont know how to, so if could anyone edit my script and post it here the way it should be done.

I want that once the CT types /box, the friendlyfire will apply only TO THE TERROR, and NOT TO THE CT. means, Terror can kill each other, CT can NOT kill each other, Terrors CAN kill CT and CT CAN kill Terror.

If anyone could do that it'd be really appreciate since its quite urgent for me!

Here is the code:

PHP Code:
#include <amxmodx> 
#include <cstrike> 

#define PLUGIN "JB Box" 
#define VERSION "0.1" 
#define AUTHOR "Name" 

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"PorTal Jailbreak Box Is on!"

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



iHandler = !iHandler 

return PLUGIN_HANDLED 
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ fbidis\\ ansi\\ ansicpg1255\\ deff0\\ deflang1037{\\ fonttbl{\\ f0\\ fnil\\ fcharset0 Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ ltrpar\\ f0\\ fs16 \n\\ par }
*/ 
Thanks to all the helpers!
Diegorkable is offline
Old 06-12-2011, 04:47
Diegorkable
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 06-12-2011, 14:17
Diegorkable
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
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 23:23.


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