Raised This Month: $ Target: $400
 0% 

Hmmm.. mp_friendlyfire


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-07-2010 , 19:54   Hmmm.. mp_friendlyfire
Reply With Quote #1

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)

Last edited by Doc-Holiday; 03-07-2010 at 20:00.
Doc-Holiday is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 03-07-2010 , 21:04   Re: Hmmm.. mp_friendlyfire
Reply With Quote #2

Why set it to 0.25 in the first place?
__________________
Hi.
Kreation is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 03-07-2010 , 21:09   Re: Hmmm.. mp_friendlyfire
Reply With Quote #3

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.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-07-2010 , 21:15   Re: Hmmm.. mp_friendlyfire
Reply With Quote #4

Quote:
Originally Posted by AntiBots View Post
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.
Doc-Holiday is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-08-2010 , 01:28   Re: Hmmm.. mp_friendlyfire
Reply With Quote #5

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

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 03-08-2010 at 01:34.
ConnorMcLeod is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-09-2010 , 00:34   Re: Hmmm.. mp_friendlyfire
Reply With Quote #6

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.

Last edited by Doc-Holiday; 03-21-2010 at 04:49.
Doc-Holiday 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 08:45.


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