Raised This Month: $ Target: $400
 0% 

Which command to turn on FF?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fannymagnet
Junior Member
Join Date: Mar 2005
Old 05-09-2005 , 15:03   Which command to turn on FF?
Reply With Quote #1

I'm after the command to turn Friendly Fire on and off. I want to write a script that turns it on for the last 10 seconds of the map (when it starts to count down) and then turn it off right at the end. Dunno which command to start with tho.
fannymagnet is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-09-2005 , 15:07  
Reply With Quote #2

From KRoT@L's original code (modified slightly):

Code:
#include <amxmodx> public check_timeleft() {     if(get_timeleft() == 11)     {         set_cvar_num("mp_friendlyfire",1)     }     if(get_timeleft() <= 1)     {         set_cvar_num("mp_friendlyfire",0)     } } public plugin_init() {     register_plugin("FF on map end", "0.1", "KRoTaL/v3x")     set_task(1.0, "check_timeleft", 12512, "", 0, "b") }
Try that.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 05-09-2005 , 16:16  
Reply With Quote #3

Code:
set_task(10.0, "this_function_executed_when_ten_seconds_remain", 0, "", 0, "d")
Johnny got his gun 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 16:46.


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