23.07.2015, 12:40
I want to make the player map icon with the position of hiis love..
But is not working , why ?
I want Player 1 to see Player 2 as a heart on map .
pawn Код:
if(PlayerInfo[playerid][pMarried] != 0)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(!strcmp(GetName(i), PlayerInfo[playerid][pMarriedTo]))
{
new Float: x,
Float: y,
Float: z;
GetPlayerPos(i, x,y,z);
SetPlayerMapIcon(playerid, 210, x,y,z, 21 , 0 , MAPICON_GLOBAL); //marriage ls
}
}
}
I want Player 1 to see Player 2 as a heart on map .