Help CreateDynamicMapIcon
#1

hey i have problem about that , the cmd working good , but how to make the icon removed when player in that position , when i type /showteam to player , and icon showing , but when i type /showteam again the last icon not removed it still showing , i just want when player /showteam again the last icon will removed and recreate new icon
this my script :
pawn Код:
dcmd_showteam(playerid, params[])
{
    new giveplayerid;
    #pragma unused params
    if(sscanf(params, "d", giveplayerid)) return SendClientMessage(playerid, COLOR_BLUE, "[USAGE]: /showteam [playerid]");
    if(!IsPlayerConnected(giveplayerid)) {
        return SendClientMessage(playerid, COLOR_BLUE, "Player invalid.");
   }
    else
    {
        new Float:plocx,Float:plocy,Float:plocz;
        GetPlayerPos(giveplayerid, plocx, plocy, plocz);
        CreateDynamicMapIcon(plocx, plocy,  plocz, 41, 0, 0, 0, -1, 500.0);
        SendClientMessage(playerid, COLOR_BLUE, "Player showing on you radar.");
    }
    return 1;
}
and this SS


Sorry for my bad english
Thanks rep++ for helped
Reply


Messages In This Thread
Help CreateDynamicMapIcon - by [IND]Crazy - 11.04.2014, 04:55
Re: Help CreateDynamicMapIcon - by Flake. - 11.04.2014, 05:02
Re: Help CreateDynamicMapIcon - by [IND]Crazy - 11.04.2014, 05:03
Re: Help CreateDynamicMapIcon - by Aerotactics - 11.04.2014, 05:50
Re: Help CreateDynamicMapIcon - by [IND]Crazy - 11.04.2014, 06:05
Re: Help CreateDynamicMapIcon - by Lidor124 - 11.04.2014, 06:06

Forum Jump:


Users browsing this thread: 1 Guest(s)