CLEO Help IsPlayerNametagOn/Off script ?

CLEO related
Status
Not open for further replies.

Grubitsh

Active member
Joined
Jul 28, 2014
Messages
104
Reaction score
0
Hello,

I wonder if their was a command or script in cleo to detect if a streamed player is "nameON" or "NameOFF" (nametag visible or invisible in RP server) ?

Thanks
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
No such opcode/script. But you can easily make your own, remotePlayer struct + 0xB3 = sNameTagShow.
or use mine
Code:
:nameTagShown //IF
//call @nameTagShown 1 ID_ 0@
0B24: 1@ = 0@
IF 1@ <> 0
THEN
    0A8D: 1@ = readMem 1@ sz 4 vp 0
    0C0C: 1@ = str 1@ offset 0xB3 sz 2 //NIACIN, hahahah, get it? :(
    IF 1@ == TRUE
    THEN 0485: iz_mostly_true
    ELSE 059A: iz_mostly_lies
    END
END
0AB2: 0

If you don't use SAMPFUNCS, then use a lots of 0A8D;
samp.dll -> 0x21A0F8 -> 0x3CD -> 0x18 -> 0x2E+ID*4 -> 0 -> 0xB3
 

Grubitsh

Active member
Joined
Jul 28, 2014
Messages
104
Reaction score
0
Ok, so I can put it like a "condition" to a IF ? (that's amazing, I didn't know you could create your own condition xD)
Code:
IF
0AB1: @nameTagShown 1 [The_id_Variable]
THEN

// Do thing here

END
 
Status
Not open for further replies.
Top