Probelm with SetPlayerMapIcon
#1

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;
}
Reply
#2

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;
}
Reply
#3

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 !!
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)