SA-MP Forums Archive
Probelm with SetPlayerMapIcon - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Probelm with SetPlayerMapIcon (/showthread.php?tid=151260)



Probelm with SetPlayerMapIcon - Renn47 - 29.05.2010

hey , i have this problem :
I created Map Icon , but it's white :S..
my code:

Код:
public OnPlayerConnect(playerid)
{
  SetPlayerMapIcon( playerid, 22, 1172.2225,-1323.2050,15.4027,85, 0 );
	return 1;
}



Re: Probelm with SetPlayerMapIcon - WackoX - 29.05.2010

You switched the ID and Map Icon, try this:

Код:
public OnPlayerConnect(playerid)
{
  SetPlayerMapIcon(playerid, 85, 1172.2225,-1323.2050,15.4027, 22, 0);
  return 1;
}



Re: Probelm with SetPlayerMapIcon - Renn47 - 30.05.2010

thanks , but how i can do this:

if (strcmp("/raviend", cmdtext, true, 10) == 0) // /healme ..
{
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid, COLOR_RED, "Ravisid end ! see maksis 100$ !"); // healed , this cost 100$
GivePlayerMoney(playerid, -100);
return 1;
}

can use this cmd only on cordinates 1172.2225,-1323.2050,15.4027 ??

SORRY FOR BAD ENGLISH !!


Re: Probelm with SetPlayerMapIcon - Grim_ - 30.05.2010

pawn Код:
if (strcmp("/raviend", cmdtext, true, 10) == 0) // /healme ..
  {
   new Float:Pos[3];
   GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
   if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1172.2225,-1323.2050,15.4027)) return 1;
   SetPlayerHealth(playerid,100.0);
   SendClientMessage(playerid, COLOR_RED, "Ravisid end ! see maksis 100$ !"); // healed , this cost 100$
   GivePlayerMoney(playerid, -100);
   return 1;
  }