AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hmmm.. mp_friendlyfire (https://forums.alliedmods.net/showthread.php?t=120775)

Doc-Holiday 03-07-2010 19:54

Hmmm.. mp_friendlyfire
 
In one of my plugins. i use this value as a flot meaning the mp_friendlyfire var is set to 0.25..

and i use get_pcavr_float to get the value..

how ever with it set to 0.25 teammates do get hurt but when you type "ff" it says friendly fire is off.

Edit: I guess i should ask a question

Any way to make the engine think that 0.25 is actually on (for the chat message)

Kreation 03-07-2010 21:04

Re: Hmmm.. mp_friendlyfire
 
Why set it to 0.25 in the first place?

AntiBots 03-07-2010 21:09

Re: Hmmm.. mp_friendlyfire
 
he say that is you set mp_friendlyfire 0.25
when you type ff the say off
but the players can shoot an take damage.

Doc-Holiday 03-07-2010 21:15

Re: Hmmm.. mp_friendlyfire
 
Quote:

Originally Posted by AntiBots (Post 1111391)
he say that is you set mp_friendlyfire 0.25
when you type ff the say off
but the players can shoot an take damage.

Yes and @kreation its for a plugin i have..


It works just have to figure out how to show it in the game. when you type ff.

ConnorMcLeod 03-08-2010 01:28

Re: Hmmm.. mp_friendlyfire
 
say ff is not a cs command, it's amxx, edit nextmap.sma.

PHP Code:

public sayFFStatus()
{
    
client_print(0print_chat"%L: %L"LANG_PLAYER"FRIEND_FIRE"LANG_PLAYERget_cvar_num("mp_friendlyfire") ? "ON" "OFF")



Doc-Holiday 03-09-2010 00:34

Re: Hmmm.. mp_friendlyfire
 
Awsome thanks conor again you and bugsy always in with the save


PHP Code:

public sayFFStatus()
{
    
client_print(0print_chat"%L: %L"LANG_PLAYER"FRIEND_FIRE"LANG_PLAYERget_cvar_float("mp_friendlyfire") ? "ON" "OFF")


The above seems to work just fine.


All times are GMT -4. The time now is 08:45.

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