11.04.2014, 04:55
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 :
and this SS
Sorry for my bad english
Thanks rep++ for helped
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;
}
Sorry for my bad english
Thanks rep++ for helped