(Help)Player color change. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: (Help)Player color change. (
/showthread.php?tid=178367)
(Help)Player color change. -
dor_b - 21.09.2010
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
Re: (Help)Player color change. -
Mimic - 21.09.2010
Why don't you just request someone to make a command that actually removes the name tag completely
Re: (Help)Player color change. -
dor_b - 21.09.2010
i want the command plz .
Re: (Help)Player color change. -
Kyeno - 21.09.2010
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
Re: (Help)Player color change. -
zack3021 - 22.09.2010
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.