[Help] ShowPlayerMarkers /cmd
#1

Please can som1 help me making a command to turn on/off the playermarkers on map for a RP?
I have this but its not working :/

Код:
	  if(strcmp(cmd, "/blips", true) == 0) 
	     {
	    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"You need to be connected to rcon to do this.");
		{
            ShowPlayerMarkers(1))
            {
            ShowPlayerMarkers(0);
            }
            else if (ShowPlayerMarkers(0))
            {
            ShowPlayerMarkers(1);
            }
                return 1;
}
return 0;
}
Reply
#2

im not sure if this is possible, try
pawn Код:
if(strcmp(cmd, "/blips", true) == 0)
      {
      if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"You need to be connected to rcon to do this.");
        {
                   if(ShowPlayerMarkers(1))
                   {
                      ShowPlayerMarkers(0);
                   }
                   else if (ShowPlayerMarkers(0))
                    {
                         ShowPlayerMarkers(1);
                   }
                return 1;
}
return 0;
}
this is strange because people mostly uses it on ongamemodeinit
Reply
#3

Код:
new Blip;	  //Top of your script
Код:
//here your command
 if(strcmp(cmd, "/blips", true) == 0) 
	     {
	    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"You need to be connected to rcon to do this.");
		{
            if(Blip == 0)
            {
            ShowPlayerMarkers(0);
	//marker off
            Blip = 1;
            }
            else if (Blip == 1)
            {
            ShowPlayerMarkers(1);
           //marker on
           Blip = 0;
            }
                return 1;
}
Edit: oops me late...
Reply
#4

and only whos is in rcon sees?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)