Aduty Help
#1

so I have this command
PHP код:
CMD:aduty(playeridparams[])
{       
    if(
adlvl[playerid] <2) return 0;
    
aDuty[playerid]=1;
    new 
sendername[MAX_PLAYER_NAME], string[256];
    
GetPlayerName(playeridsendernamesizeof(sendername));
    
SetPlayerHealth(playerid99999999);
    
SetPlayerArmour(playerid99999999);
    
SetPVarInt(playerid"WantedLvl"GetPlayerWantedLevel(playerid));
    
SetPlayerWantedLevel(playerid0);
    
SendClientMessage(playeridCOLOR_YELLOW"You are now an on-duty Administrator!");
    
format(stringsizeof(string), "%s is now on-duty Administrator. "sendername);
    
SendClientMessageToAll(COLOR_GREENstring);
    
SetPlayerColor(playeridCOLOR_GREEN);
    
ResetPlayerWeapons(playerid);
    
GivePlayerWeapon(playerid4210000);
    
GivePlayerWeapon(playerid3910000);
    
GivePlayerWeapon(playerid3810000);
    
GivePlayerWeapon(playerid3410000);
    
GivePlayerWeapon(playerid3110000);
    
GivePlayerWeapon(playerid2910000);
    
GivePlayerWeapon(playerid2710000);
    
GivePlayerWeapon(playerid2410000);
    
GivePlayerWeapon(playerid401);
    
GivePlayerWeapon(playerid101);
    
GivePlayerWeapon(playerid91);
    return 
1;

when the admin use it he get visible on map as a marker but I have noticed that when ever someone's color change he get visible on map how to fix that?
Reply


Messages In This Thread
Aduty Help - by silverms - 20.04.2017, 09:30
Re: Aduty Help - by skuller12 - 20.04.2017, 09:39

Forum Jump:


Users browsing this thread: 1 Guest(s)