Latest topics
» Admin Key/disable teleports
Fighting Arena I_icon_minitimeMon May 13, 2019 4:06 am by Pierry

» Some possibly useful addons
Fighting Arena I_icon_minitimeWed May 08, 2019 3:37 pm by Pierry

» Active lugormod servers
Fighting Arena I_icon_minitimeWed May 08, 2019 11:23 am by Pierry

» Quick links
Fighting Arena I_icon_minitimeWed May 08, 2019 11:12 am by Pierry

» Help with trigger_usescript
Fighting Arena I_icon_minitimeThu Sep 22, 2016 8:16 am by flanagon

» New Lugormod U# (Windows + Linux)
Fighting Arena I_icon_minitimeThu Sep 22, 2016 7:03 am by Ufo

» iobject terminal
Fighting Arena I_icon_minitimeThu Sep 25, 2014 2:39 pm by flanagon

» Useful Downloads
Fighting Arena I_icon_minitimeThu Aug 07, 2014 12:35 am by Kimmeh

» Lugormod U# on server
Fighting Arena I_icon_minitimeWed Jan 08, 2014 11:08 pm by Shadow


Fighting Arena

Go down

Fighting Arena Empty Fighting Arena

Post by Soap94 on Thu Nov 22, 2012 10:28 pm

Hi there people, I'd like to post a little guide on how to make a "fighting arena", a certain area where if you kill someone, you get credits.

Basically, all you have to do is making an lmd_event fire a playercheck, with a certain ammount of playerflags, that will be granted only if the player dies. This means that, if you don't have the flags, and kill another player, you'll get the CR and a message will be printed. But if you die, regardless if it's by somebody else or by suicide, nothing will happen (But you can add a print saying "You've lost the combat" if you want).

The codes are:

The lmd_event:

Code:
/place lmd_event 0 maxs,xx yy zz,mins,-xx -yy -zz,spawnflags,1,killtarget,arena_check,deathtarget,arena_flags

The playercheck:

Code:
/place lmd_playercheck * targetname,arena_check,target,arena_nothing,target2,arena_win,playerflags,1

NOTE: On target I used "arena_nothing" as its name because if you suicide, or in other words, if you have flags 1, nothing will happen, so you can't get credits by killing yourself many times.

The credits and message:

Code:
/place target_credits * targetname,arena_win,count,150
Code:
/place target_print * targetname,arena_win,spawnflags,20,message,You have won ^2150 CR ^7for defeating your opponent!

And finally, the flags

Code:
/place lmd_flagplayer * targetname,arena_flags,flags,1
Soap94
Soap94
New User
New User

Posts : 19
Join date : 2012-01-16
Age : 24
Location : Argentina

View user profile http://lugormod.org

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum