AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Admin FF (updated) Version 1.2 (https://forums.alliedmods.net/showthread.php?t=949)

[nFb]GraveKeeper 04-07-2004 21:20

Admin FF (updated) Version 1.2
 
1 Attachment(s)
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

[nFb]GraveKeeper 04-26-2004 00:49

Does this need something changed for it to be approved? I have it working on my servers.

Nick 04-26-2004 01:19

Why hasent this plugin been approved yet?

QwertyAccess 04-26-2004 01:44

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)

Nick 04-26-2004 02:18

Oh i c

[nFb]GraveKeeper 04-27-2004 01:33

I made the necessary changes.

Johnny got his gun 04-30-2004 04:16

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 ;-)

[nFb]GraveKeeper 08-15-2004 21:22

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.

bmann_420 07-25-2005 23:10

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.

TiMbErLaNd 07-25-2005 23:54

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.


All times are GMT -4. The time now is 02:28.

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