aDuty Help
#1

hey so I have this command that should when player type the command to be view on the map all the players can see him but it isn't workin good here is the script
PHP код:
CMD:aduty(playeridparams[])
{
    if(
adlvl[playerid]<1) return 0;
    new 
pname[64], str[150];
    
GetPlayerName(playeridpnamesizeof(pname));
    for(new 
i=0iMAX_PLAYERSi++)
    {
        if(
aDuty[playerid]==0)
        {
            
SetPlayerMarkerForPlayer(playeridi, (GetPlayerColor(playerid)));
               
format(str,sizeof(str),"Admin[%s] Is Now [ON] Duty"pname);
            
SendClientMessageToAll(COLOR_GREEN,str);
            
aDuty[playerid]=1;
            return 
1;
        }
        if(
aDuty[playerid]==1)
        {
            
SetPlayerMarkerForPlayer(playeridi00);
               
format(str,sizeof(str),"Admin[%s] Is Now [OFF] Duty"pname);
            
SendClientMessageToAll(COLOR_GREEN,str);
            
SetPlayerHealth(playerid100);
            
SetPlayerArmour(playerid100);
            
aDuty[playerid]=0;
            return 
1;
        }
        return 
1;
        
    }
    return 
1;

Reply


Messages In This Thread
aDuty Help - by silverms - 09.03.2017, 20:08
Re: aDuty Help - by Immortal99 - 10.03.2017, 06:09
Re: aDuty Help - by Toroi - 10.03.2017, 06:13
Re: aDuty Help - by silverms - 10.03.2017, 06:15
Re: aDuty Help - by Toroi - 10.03.2017, 06:24

Forum Jump:


Users browsing this thread: 1 Guest(s)