Change the map icon in the Streamer Plugin function - 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: Change the map icon in the Streamer Plugin function (
/showthread.php?tid=254891)
Change the map icon in the Streamer Plugin function -
tal_peretz - 13.05.2011
when the mode started i did like this -
PHP код:
MapIcon[NumberProp] = SetPlayerMapIconEX(70,-1,NumberProp,dini_Float(fileProp,"x"),dini_Float(fileProp,"y"),dini_Float(fileProp,"z"),31,0);
and its working.
but when i try to change the map icon with a commands like this -
PHP код:
MapIcon[NumberProp] = SetPlayerMapIconEX(70,-1,NumberProp,dini_Float(fileProp,"x"),dini_Float(fileProp,"y"),dini_Float(fileProp,"z"),32,0);
that's not change !!! why?
here is the SetPlayerMapIconEX -
PHP код:
forward SetPlayerMapIconEX(distance,playerid,idprop,Float:x, Float:y, Float:z, type ,style);
public SetPlayerMapIconEX(distance,playerid,idprop,Float:x, Float:y, Float:z, type ,style)
{
style = -1;
idprop = -1;
playerid = -1;
CreateDynamicMapIcon(x, y, z, type, 0, -1, -1, -1, distance);
return 1;
}
big thanks for helping !!!!
Re: Change the map icon in the Streamer Plugin function -
Laronic - 13.05.2011
This is not 100% like you want it but you see how you do it, you can edit it.
Instead of use:
forward (...)
public (...)
use:
pawn Код:
stock SetPlayerMapIconEX(playerid = -1, Float:distance, Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1)
{
return CreateDynamicMapIcon(x, y, z, type, color, worldid, interiorid, playerid, distance);
}
Re: Change the map icon in the Streamer Plugin function -
tal_peretz - 13.05.2011
Thank's man !