Markers Help - 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)
+--- Thread: Markers Help (
/showthread.php?tid=632758)
Markers Help -
silverms - 18.04.2017
iv made an admin duty command and it is working fine but it is supposed to show the on duty admin marker on minimap for every one but it isn't doing it I have this code on player update
PHP код:
if(aDuty[playerid]==1)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && Logged[i]>0)
{
SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(playerid));
}
}
}
Re: Markers Help -
Kane - 18.04.2017
Why not just use the admin duty color instead of GetPlayerColor?
You need to change the parameters around.
Код:
SetPlayerMarkerForPlayer(i, playerid, 0x00000FF)
Re: Markers Help -
LazzyBoy - 18.04.2017
nevermind check that up
Re: Markers Help -
Vince - 18.04.2017
Quote:
Originally Posted by silverms
I have this code on player update
|
WHY? Just put it in the duty command. And if it's supposed to be for everyone you may as well just use SetPlayerColor.