KamikazeSripterul
Well-known member
- Joined
- Jun 30, 2019
- Messages
- 353
- Reaction score
- 23
So I've tried to make a code in order to see player's color, for example, if a player is in a faction and has a different name color, i could see what that color is.
Here's the code:
	
	
	
		
It doesn't really work.
			
			Here's the code:
		Code:
	
	{$CLEO .cs}               
thread "PlayerColor"
0000:
repeat
wait 0
until SAMP.Available()
0B34: "playercolor" @playercolor
14@ = 0
while true
wait 0
END
:playercolor
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    if SAMP.IsPlayerConnected(21@)
    then
        if 11@ = SAMP.GetActorHandleByPlayerID(21@)
        then
            if 12@ = SAMP.GetPlayerColor(11@)
            then
                chatmsg "{ff00ff}Player color is %x" -1 12@
            end
        end
    end
end
SAMP.CmdRet() 
				 
 
		 
 
		