Size43
(Administrator)
on
3 Dec 2017, 12:45:15
Please see JamSnack's answer and my reply.
// Other player object
if gms_other_admin_rights(player_id) > 0 -- Since this code is pretty much only client side all you need to know is if another player is an admin or not. What this does is whenever you go to draw the names it is ran through this if statement, determining whether or not that name is to be colored or not.
{
draw_set_color(x_yellow) --Here we set the text to be yellow.
draw_text(player_id.x,player_id.y,"" +string(username)) -- Here we draw the text over the player that is being shown (may be incorrect :P), assuming you have a variable to find the player's username.
} else {
// Draw normal name -- The same thing would be done here as above but a different color.
}
the draw_text event from you is incorrect, do you know how it is acctually? I want to make something like that too.
Size43
(Administrator)
on
3 Dec 2017, 12:44:34
The draw_text should be:
// Other player object, draw event
if gms_other_admin_rights(player_id) > 0
{
draw_set_color(c_yellow)
draw_text(x,y, name)
} else {
// Draw normal name -- The same thing would be done here as above but a different color.
}
The name and player_id variable are automatically set by the extension.
I haven't tested this yet, but I will be experimenting with it soon. I will post the code here when I get it to work.