12.01.2013, 23:04
When I put "SetPlayerColor" how i can make that on some command it Remove Player Color
command(removecolor, playerid, params[])
{
SetPlayerColor(playerid, -1)
return 1;
}
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;
}
SetPlayerMarkerForPlayer(playerid, id, 0xFFFFFF00); //Makes other players marker invisible to you
SetPlayerMarkerForPlayer(u, id, 0xFFFFFF00); //Makes other players marker invisible to you
foreach(Player, i)
{
SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
}