Help me with a variable plz

Forum for Skins, Maps, Configs etc.

Moderators: Moderators, Mappers

SalomoN
is connecting
Posts: 5
Joined: Fri Sep 10, 2004 12:16 am
Location: cl
Contact:

Help me with a variable plz

Post by SalomoN »

hi, I need to know if the name of the last player that I shot is recorded in some variable, like %P

i try with "set variable %P" but its doesn't work... lol

(sorry but my english is a shit xD )
Janner
found a way out
Posts: 200
Joined: Tue Mar 08, 2005 12:09 pm
Location: nl

Post by Janner »

I've asked Maniac about this, he said it isn't possible. However, you can get the last hit, by doing this:

Code: Select all

trigger "set lasthit head" "You hit*in the head"
trigger "set lasthit stom" "You hit*in the stomach"
trigger "set lasthit legs" "You hit*in the legs"
trigger "set lasthit vest" "*has a kevlar vest*"
trigger "set lasthit chest" "You hit*in the chest"
fuct
is full of buckshot
Posts: 966
Joined: Thu Dec 30, 2004 2:36 pm
Location: ie

Post by fuct »

Thats all well and good but what the fuck has it got to do with level design and editing?
Clown
unpossible??!?!!
Posts: 1750
Joined: Sun Jul 27, 2003 7:38 am
Location: en

Post by Clown »

Level Design & Editing
Forum for Skins, Maps, Configs etc.
I don't give a shit.
skmz
didn't throw its grenade far enough
Posts: 324
Joined: Thu Mar 03, 2005 4:59 pm
Location: se

Post by skmz »

Clown wrote:
Level Design & Editing
Forum for Skins, Maps, Configs etc.
1 point for Clown!

Btw, I can't find this thing useful in any way. Could you explain what exactly you're gonna use this for? :)
PENSIONERAD cat
#AMF @ IRLNet - AMFpension.se[/b]
Image
dudemcpek
had its throat slit
Posts: 1422
Joined: Fri Jul 25, 2003 6:16 pm
Location: si

Post by dudemcpek »

Use mm3 omglol
Janner
found a way out
Posts: 200
Joined: Tue Mar 08, 2005 12:09 pm
Location: nl

Post by Janner »

Here's the sniper and knife enemyhit code; just change anything you want.

Code: Select all

trigger "enemyhit_check1;enemyhit_check2" "*in the head" 
trigger "enemyhit_check1;enemyhit_check2" "*in the stomach" 
trigger "enemyhit_check1;enemyhit_check2" "*in the chest" 
trigger "enemyhit_check1;enemyhit_check2" "*has a Kevlar Vest - AIM FOR THE HEAD!" 
trigger "enemyhit_check1;enemyhit_check2" "*too bad you have AP rounds..." 
trigger "enemyhit_check1;enemyhit_check2" "*in the legs"  
 
alias enemyhit_check1 "if sniper isin $cl_weaponmodel then enemyhit" 
alias enemyhit_check2 "if knife isin $cl_weaponmodel then enemyhit" 
alias enemyhit "say_team :: [%P] with [%F] hit at [%S] :: [%D] with [%W] ::"
SalomoN
is connecting
Posts: 5
Joined: Fri Sep 10, 2004 12:16 am
Location: cl
Contact:

Post by SalomoN »

xD lol

i want the name of the last player that im hit, like "[Drg]SalomoN", not the place of the shoot
Clement
Master of the Universe
Posts: 743
Joined: Fri Jul 25, 2003 10:27 pm
Location: dk
Contact:

Post by Clement »

then %P should do... just like you wrote yourself in the OP?...??
SalomoN
is connecting
Posts: 5
Joined: Fri Sep 10, 2004 12:16 am
Location: cl
Contact:

Post by SalomoN »

but i cant set a var
i try with "set variable %P" but its doesn't work... lol
fuct
is full of buckshot
Posts: 966
Joined: Thu Dec 30, 2004 2:36 pm
Location: ie

Post by fuct »

set variable %P








...lol
Cnnlngs
plummets to its death
Posts: 68
Joined: Wed Oct 05, 2005 8:34 pm
Location: cl

Post by Cnnlngs »

??

q wa salomon rq xD
haohmaru
is connecting
Posts: 1
Joined: Fri Jul 07, 2006 4:28 pm
Location: cl
Contact:

Post by haohmaru »

Salomon want save variable %P to use always and that does not cleaner
How to do?
Image
Clement
Master of the Universe
Posts: 743
Joined: Fri Jul 25, 2003 10:27 pm
Location: dk
Contact:

Post by Clement »

haohmaru wrote:Salomon want save variable %P to use always and that does not cleaner
How to do?
Oh now we get it!



:hop:
Janner
found a way out
Posts: 200
Joined: Tue Mar 08, 2005 12:09 pm
Location: nl

Post by Janner »

Morpher wrote:
haohmaru wrote:Salomon want save variable %P to use always and that does not cleaner
How to do?
Oh now we get it!



:hop:
I think he means that he can use it several times that way.
Post Reply