GetPlayerColor: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{v1_8_beta}} {{Welcome|desc=This function is used to find the color(r,g,b) of another player(the marker in map as well as name tag).| params=<source>(playerid)</source> <poem>::playerid : The ID of the target player whose color is to be found. </poem>| retvals=This function returns a table with keys <source inline>r,g,b</source> on success and null on failure(target player does not exist)|}}")
 
No edit summary
Line 4: Line 4:
<poem>::playerid : The  ID of the target player whose color is to be found.
<poem>::playerid : The  ID of the target player whose color is to be found.
</poem>|
</poem>|
retvals=This function returns a table with keys <source inline>r,g,b</source> on success and null on failure(target player does not exist)|}}
retvals=This function returns a table with keys <source inline>r,g,b</source> on success and null on failure(target player does not exist)|
*relfuncs=*[[GetMyColor]]}}

Revision as of 17:23, 29 October 2024

This function was added in v1.8 beta and will not work on previous versions.


Description:
This function is used to find the color(r,g,b) of another player(the marker in map as well as name tag).


Parameters:

(playerid)

playerid : The ID of the target player whose color is to be found.


Return Values:
This function returns a table with keys r,g,b on success and null on failure(target player does not exist)