Duty Help
#1

Hello so i want to know that if i have lile a /duty command like
PHP код:
new aduty[MAX_PLAYERS];
CMD:duty(playeridparams[])
{
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?
Reply
#2

Only for those who are also on duty?
Reply
#3

I think this can help you
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Reply
#4

No he get veiwed for all players
Reply
#5

PHP код:
for (new iMAX_PLAYERSi++)
{
       
SetPlayerMarkerForPlayer(playeridi0xFFFFFF00); //This will disable for all players.
}
SetPlayerMarkerForPlayer(playeridadminsid0xFF0000FF); //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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)