im making a command for map..
#1

wat is code to make u not visable on map?
Reply
#2

pawn Код:
public OnGameModeInit()
{
  ShowPlayerMarkers(0);
  return 1;
}
or if you would only like to not show one players, you'd have to use
pawn Код:
ShowPlayerMarkerForPlayer
under OnPlayerSpawn.
Reply
#3

i wanna make command so

Код:
/hide
{
//wat goes here
}

like that..
Reply
#4

wat do i put here?

Код:
	if(strcmp(cmdtext,"/mapvis", true) == 0)
	{
	  if(PlayerInfo[playerid][pRank] >= 8)
		{
		
		}
		return 1;
	}
Reply
#5

https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Reply
#6

swift i been on that, but i dont understand how i just make the marker dissapear
Reply
#7

pawn Код:
if(strcmp(cmdtext, "/mapvis", true) == 0)
{
  if(PlayerInfo[playerid][pRank] >= 8)
  {
   for(new i = 0; i<MAX_PLAYERS; i++)
   {
     SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
   }
  }
}
Reply


Forum Jump:


Users browsing this thread: