(Help)Player color change.
#1

Hey Guys,


I want to build a command that will change the player I choose the color to white and invisible on the map.

help me please..

Thanks, Dor
Reply
#2

Why don't you just request someone to make a command that actually removes the name tag completely
Reply
#3

i want the command plz .
Reply
#4

Assuming playerid variable stores the player to hide:

Код:
// Hide player name above head 
for(new i=0;i<MAX_PLAYERS;i++) {

        if(i != playerid) { ShowPlayerNameTagForPlayer(i, playerid, 0); }
}

// Hide player radar blip
SetPlayerColor(playerid, ( GetPlayerColor(playerid) & 0xFFFFFF00 ));
To make him white (chatlines) use the white color code instead of GetPlayerColor(playerid)

Cheers
Reply
#5

You can use ShowPlayerMarkers.

Click here to see it

Here is a code i just made:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/hide", cmdtext, true, 5) == 0)
    {
        ShowPlayerMarkers(0);
        return 1;
    }
    return 0;
}
Not Tested but it should work.

The reason i use strcmp is because it doesn't have params, so the player who type it would be hid on the map.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)