Delete Map Icon of Player
#1

Hey Guys ^^
I need help with a little porblem:
If a Player spawns, he get a Map Icon is his color for everyone to see. But how can i disable this Icon at my DM?
I already found SetPlayerMapIcon and RemovePlayerMapIcon, but this can't be the thing i'm searching for >.<
Can anyone help me, please?
Reply
#2

https://sampwiki.blast.hk/wiki/LimitPlayerMarkerRadius
Boom!

oops i mean
https://sampwiki.blast.hk/wiki/ShowPlayerMarkers
Reply
#3

Limitplayermarkerradius, will show them, but at a shorter range, this will delete 'em:

ShowPlayerMarkers(0); Put it in OnGameModeInit(), will work
Reply
#4

wow, thanks guys
But i have the Problem, that all the Icons are now deleted, how to do it, that only the Mapicons of the Persons wich are IN the dm zone will be deleted? >.<
Reply
#5

damn it, i got some annoying errors -.-
Code:
if(strcmp("/hns", cmdtext, true, 10) ==0)
	{
	    if(AccInfo[playerid][hns] == 0)
	    {
	        if(AccInfo[playerid][afk] == 0)
	        {
	            SendClientMessage(playerid,GREEN,"You want to play Hide'n'Seak, heh? Have fun!");
	            SendClientMessage(playerid,LIGHTBLUE,"But please follow the /rules!");
	            AccInfo[playerid][hns] == 1;
	            DestroyVehicle(playerid);
	            new rand = random(1);
				switch (rand)
				{
				case 0:SetPlayerPos(playerid,405.9053,2456.6348,16.5000),SetPlayerTeam(playerid,0),SetPlayerSkin(playerid,164);
				case 1:SetPlayerPos(playerid,1318.2029,1284.1371,10.8203),SetPlayerTeam(playerid,1),SetPlayerSkin(playerid,33);
				}
			}
			else
			{
			SendClientMessage(playerid,red,"Error: You can't use that cmd when you're cmd. Please use /afk to be able!");
			return 1;
		}
		else
		{
   		SendClientMessage(playerid,LIGHTGREEN,"Huh, you're already in the Game, please use /exit to exit this Game!");
		return 1;
	}
The Errors are everywhere xD
This is not really the title of this topic, but can anyone help me?

EDIT: Why the hell is that Code like this, i postet a different one....
Sorry Guys, but i think i can't post the original Code >.<
Reply
#6

https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer

You would probably need to use that with a player loop.
Loop through all players and if they are not in a duel remove the players icon for them.
Reply
#7

Quote:
Originally Posted by HardstylerNiko
View Post
damn it, i got some annoying errors -.-
Code:
if(strcmp("/hns", cmdtext, true, 10) ==0)
	{
	    if(AccInfo[playerid][hns] == 0)
	    {
	        if(AccInfo[playerid][afk] == 0)
	        {
	            SendClientMessage(playerid,GREEN,"You want to play Hide'n'Seak, heh? Have fun!");
	            SendClientMessage(playerid,LIGHTBLUE,"But please follow the /rules!");
	            AccInfo[playerid][hns] == 1;
	            DestroyVehicle(playerid);
	            new rand = random(1);
				switch (rand)
				{
				case 0:SetPlayerPos(playerid,405.9053,2456.6348,16.5000),SetPlayerTeam(playerid,0),SetPlayerSkin(playerid,164);
				case 1:SetPlayerPos(playerid,1318.2029,1284.1371,10.8203),SetPlayerTeam(playerid,1),SetPlayerSkin(playerid,33);
				}
			}
			else
			{
			SendClientMessage(playerid,red,"Error: You can't use that cmd when you're cmd. Please use /afk to be able!");
			return 1;
		}
		else
		{
   		SendClientMessage(playerid,LIGHTGREEN,"Huh, you're already in the Game, please use /exit to exit this Game!");
		return 1;
	}
The Errors are everywhere xD
This is not really the title of this topic, but can anyone help me?

EDIT: Why the hell is that Code like this, i postet a different one....
Sorry Guys, but i think i can't post the original Code >.<
You forgot 1 or 2 brackets
You should line em out, and check which are missing.

Update:
Code:
if(strcmp("/hns", cmdtext, true, 10) ==0)

{
	if(AccInfo[playerid][hns] == 0)
	
	{
		if(AccInfo[playerid][afk] == 0)
		
		{
			SendClientMessage(playerid,GREEN,"You want to play Hide'n'Seak, heh? Have fun!");
			SendClientMessage(playerid,LIGHTBLUE,"But please follow the /rules!");
			AccInfo[playerid][hns] == 1;
			DestroyVehicle(playerid);
			new rand = random(1);
			switch (rand)
			
			{
				case 0:SetPlayerPos(playerid,405.9053,2456.6348,16.5000),SetPlayerTeam(playerid,0),SetPlayerSkin(playerid,164);
				case 1:SetPlayerPos(playerid,1318.2029,1284.1371,10.8203),SetPlayerTeam(playerid,1),SetPlayerSkin(playerid,33);
				
			}
			
		}
		else
		
		{
			SendClientMessage(playerid,red,"Error: You can't use that cmd when you're cmd. Please use /afk to be able!");
			return 1;
			
		}
		else
		
		{
			SendClientMessage(playerid,LIGHTGREEN,"Huh, you're already in the Game, please use /exit to exit this Game!");
			return 1;
			
		}
	}
}
Reply
#8

EDIT: Okay, i found the error
Thanks to EVERYONe who helped me, you're a Great Comunity
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)