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

Admin FF (updated) Version 1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:          Approver:   Johnny got his gun (102)
[nFb]GraveKeeper
Senior Member
Join Date: Mar 2004
Location: Connecticut, U.S.A.
Old 04-07-2004 , 21:20   Admin FF (updated) Version 1.2
Reply With Quote #1

Allows you to turn friendly fire on and off. It also lets players say "ff" in
chat and it will report if ff is on or not.

Usage: amx_ff <1 or 0>

Changelog:
  • 1.2 ( 08.15.04 )
    - Admin command usage now reports ff on or off in a hud message.
    - Changed "say /ff" to "say ff" in any chat sentence to report ff status
    - "say ff" now announces ff status in a hud message.

    1.1 ( 04.07.04 )
    - Updated for AMXX

    1.0 ( 12.08.2002 )
    - Original Version by JustinHoMi http://djeyl.net/forum/index.php?showtopic=5231M
Attached Files
File Type: sma Get Plugin or Get Source (admin_ff.sma - 3910 views - 2.8 KB)
[nFb]GraveKeeper is offline
Send a message via AIM to [nFb]GraveKeeper
[nFb]GraveKeeper
Senior Member
Join Date: Mar 2004
Location: Connecticut, U.S.A.
Old 04-26-2004 , 00:49  
Reply With Quote #2

Does this need something changed for it to be approved? I have it working on my servers.
[nFb]GraveKeeper is offline
Send a message via AIM to [nFb]GraveKeeper
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 04-26-2004 , 01:19  
Reply With Quote #3

Why hasent this plugin been approved yet?
__________________
Nick is offline
Send a message via MSN to Nick
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 04-26-2004 , 01:44  
Reply With Quote #4

One: they arent here all day

Two:
console_print(id,"[AMX] You have no access to that command.")
console_print(id,"[AMX] ^"mp_friendlyfire^" is ^"%i^"",ff_cvar)
__________________
QwertyAccess is offline
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 04-26-2004 , 02:18  
Reply With Quote #5

Oh i c
__________________
Nick is offline
Send a message via MSN to Nick
[nFb]GraveKeeper
Senior Member
Join Date: Mar 2004
Location: Connecticut, U.S.A.
Old 04-27-2004 , 01:33  
Reply With Quote #6

I made the necessary changes.
[nFb]GraveKeeper is offline
Send a message via AIM to [nFb]GraveKeeper
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 04-30-2004 , 04:16  
Reply With Quote #7

We're a small plugin approval team and there are just a big load of plugins out there...

You can make this plugin "better" like this:

Code:
            new ff_cvar = get_cvar_num("mp_friendlyfire")             console_print(id,"[AMXX] ^"mp_friendlyfire^" is ^"%i^"",ff_cvar)


Code:
            new ff_cvar = get_cvar_num("mp_friendlyfire")             console_print(id,"[AMXX] ^"mp_friendlyfire^" is %s", ff_cvar ? "ON" : "OFF")

And you will not have numbers but real words in answer ;-)
Johnny got his gun is offline
[nFb]GraveKeeper
Senior Member
Join Date: Mar 2004
Location: Connecticut, U.S.A.
Old 08-15-2004 , 21:22  
Reply With Quote #8

I updated this plugin today. Here are the changes:
  • 1.2 ( 08.15.04 )
    - Admin command usage now reports ff on or off in a hud message.
    - Changed "say /ff" to "say ff" in any chat sentence to report ff status
    - "say ff" now announces ff status in a hud message.
[nFb]GraveKeeper is offline
Send a message via AIM to [nFb]GraveKeeper
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-25-2005 , 23:10  
Reply With Quote #9

Is there any way u can make it say Friendly Fire: ON in chat mesage?? I want that soo bad, but cant find it, since Hudmessage is really unnoticable.
__________________
bmann_420 is offline
TiMbErLaNd
Senior Member
Join Date: Jan 2005
Location: Detroit, Michigan
Old 07-25-2005 , 23:54  
Reply With Quote #10

Quote:
Originally Posted by bmann_420
Is there any way u can make it say Friendly Fire: ON in chat mesage?? I want that soo bad, but cant find it, since Hudmessage is really unnoticable.
well if you download the .sma and change the BOLD area you can make the hud message whatever color you want.

Quote:
Originally Posted by small
if(ff == 1) {
server_cmd("mp_friendlyfire 1")
console_print(id,"[AMXX] Friendly fire is now on")
client_print(0,print_chat,"[AMXX] Friendly fire is now on")
set_hudmessage(0,255,0, -1.0, 0.25, 2, 0.02, 7.0, 0.01, 0.1, 2)
show_hudmessage(0,"Friendly fire is ON! Watch your fire! ^n Your teammates are counting on you to actually aim!")
}
else if(ff == 0) {
server_cmd("mp_friendlyfire 0")
console_print(id,"[AMXX] Friendly fire is now off")
client_print(0,print_chat,"[AMXX] Friendly fire is now off")
set_hudmessage(0,255,0, -1.0, 0.25, 2, 0.02, 7.0, 0.01, 0.1, 2)
show_hudmessage(0,"Friendly fire is OFF. ^n Go ahead, shoot your partner.")
}

return PLUGIN_HANDLED
}

public HandleSay(id) {
new Speech[192]
read_args(Speech,192)
remove_quotes(Speech)
if (containi(Speech, "ff")!=-1) {
get_cvar_string("mp_friendlyfire",friendlyfir e_cvar,16)
set_hudmessage(0,255,0, -1.0, 0.25, 2, 0.02, 7.0, 0.01, 0.1, 2)
if (str_to_num
(friendlyfire_cvar) == 1){
show_hudmessage(0,"Friendly fire is on!")
} else {
show_hudmessage(0,"Friendly fire is off.")
}
}
return PLUGIN_CONTINUE
There is already a client print in this plugin

Quote:
Originally Posted by small
client_print(0,print_chat,"[AMXX] Friendly fire is now on")
client_print(0,print_chat,"[AMXX] Friendly fire is now off")
I do hope this helps in any way.
TiMbErLaNd 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 03:50.


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