Duty 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: Duty Help (
/showthread.php?tid=630068)
Duty Help -
silverms - 08.03.2017
Hello so i want to know that if i have lile a /duty command like
PHP код:
new aduty[MAX_PLAYERS];
CMD:duty(playerid, params[])
{
aduty[playerid]=1;
... so is there a way that the person who have the duty on he viewed on the mini map only the one on duty can be visibles not the other players?
Re: Duty Help -
Edwin2801 - 08.03.2017
Only for those who are also on duty?
Re: Duty Help -
coool - 08.03.2017
I think this can help you
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Re: Duty Help -
silverms - 09.03.2017
No he get veiwed for all players
Re: Duty Help -
coool - 10.03.2017
PHP код:
for (new i; i < MAX_PLAYERS; i++)
{
SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFF00); //This will disable for all players.
}
SetPlayerMarkerForPlayer(playerid, adminsid, 0xFF0000FF); //This will again enable for the one on duties. Note: You have to replace adminsid with the one's id you want to enable for
I think you have understood it one thing more arrange it according to your script. +REP if it helped.