CLEO Help [HELP]Get player weapon.

CLEO related
Status
Not open for further replies.

MasterXVQ

Member
Joined
Feb 18, 2014
Messages
22
Reaction score
0
Hello
I wanna make cleo to getting player weapon, something like anty weapon hack. I have trying find opcode that can get player id weapon and i found this:
http://ugbase.eu/releases-6/player-informer-%28new%29/
In this mod when you aim someone you can see which weapon but i can't see code.
Someone could help me?
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
{$CLEO}
0000: NOP

:LABEL_1
wait 0
if
Player.Defined($PLAYER_CHAR)
jf @LABEL_1
if
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @LABEL_1
if
056D:  actor 0@ defined
jf @LABEL_1
0470: 1@ = actor 0@ current_weapon
// 1@ is now weapon ID.
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,125
Reaction score
149
You can use 2 ways to do it

First:
0470: 1@ = actor 0@ current_weapon
if
1@ == 31 //m4
then
end


Second:
if
02D8:  actor 0@ current_weapon == 31 //m4
then
end

Edit: Just noticed that there was already one reply
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,125
Reaction score
149
my pc broke down and I don't even have sanny builder, but i made other mod (supremeInfo) which allows you to get information about players around you including their weapon
 

Guetra

Active member
Joined
Feb 19, 2015
Messages
60
Reaction score
0
monday link said:
my pc broke down and I don't even have sanny builder, but i made other mod (supremeInfo) which allows you to get information about players around you including their weapon

I know SupremeInfo :) but i need know before a player take a weapon and not after ^^
 

Guetra

Active member
Joined
Feb 19, 2015
Messages
60
Reaction score
0
Like a outfit mod, do you know outfit ?

http://i67.servimg.com/u/f67/12/57/06/74/jjj1010.jpg

i want this mod but in a cleo, and with on/off

https://www.youtube.com/watch?v=j7PtgnPLLg8
 
Status
Not open for further replies.
Top