SA-MP Forums Archive
[Help] ShowPlayerMarkers /cmd - 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: [Help] ShowPlayerMarkers /cmd (/showthread.php?tid=299244)



[Help] ShowPlayerMarkers /cmd - andrew2695 - 25.11.2011

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;
}



Re: [Help] ShowPlayerMarkers /cmd - Tanush123 - 25.11.2011

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


Re: [Help] ShowPlayerMarkers /cmd - serman - 25.11.2011

Код:
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...


Re: [Help] ShowPlayerMarkers /cmd - Akcent_Voltaj - 08.03.2013

and only whos is in rcon sees?