Remove Player Color - fast help - 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)
+--- Thread: Remove Player Color - fast help (
/showthread.php?tid=407181)
Remove Player Color - fast help -
FL3GM4 - 12.01.2013
When I put "
SetPlayerColor" how i can make that on some command it
Remove Player Color
Re: Remove Player Color - fast help -
nmader - 12.01.2013
Well, in ZCMD it would be like this:
pawn Код:
command(removecolor, playerid, params[])
{
SetPlayerColor(playerid, -1)
return 1;
}
Re: Remove Player Color - fast help -
u3ber - 12.01.2013
if you remove a player's color, what are you expecting it to be? anyway, can't remove the color just change it.
Re: Remove Player Color - fast help -
FL3GM4 - 13.01.2013
but i want to remove marker from map of players on that command ..
Re: Remove Player Color - fast help -
Threshold - 13.01.2013
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
pawn Код:
CMD:hidemarker(playerid, params[])
{
new id;
if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /hidemarker [playerid]");
if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000FF, "Player is not connected.");
if(id == playerid) return SendClientMessage(playerid, 0xFF0000FF, "You cannot use this on yourself!");
SetPlayerMarkerForPlayer(playerid, id, 0xFFFFFF00); //Makes other players marker invisible to you
return 1;
}
I think this is what you're trying to do? :S
Read the wiki on how this function works.
Re: Remove Player Color - fast help -
FL3GM4 - 13.01.2013
problem is that iI using foreach in that command... it need to look like this?
Код:
SetPlayerMarkerForPlayer(playerid, id, 0xFFFFFF00); //Makes other players marker invisible to you
foreach specifier - " u "
is this right?
Код:
SetPlayerMarkerForPlayer(u, id, 0xFFFFFF00); //Makes other players marker invisible to you
Re: Remove Player Color - fast help -
Threshold - 13.01.2013
You are confusing foreach with sscanf, if you're making yourself invisible to everyone, use this:
pawn Код:
foreach(Player, i)
{
SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
}