anyone able to help me with a command
#3

not tested

PHP код:
CMD:backup(playeridparams[])
{
    if(
IsACop(playerid) || PlayerInfo[playerid][pFaction] == && PlayerInfo[playerid][pDivision] == || PlayerInfo[playerid][pFaction] == && PlayerInfo[playerid][pRank] >= 5)
    {
    if(
Backup[playerid] = 0)
    {
        new
        
zone[MAX_ZONE_NAME],
        
string[40 MAX_PLAYER_NAME];
        
GetPlayer3DZone(playeridzonesizeof(zone));
        
format(stringsizeof(string), "* %s requests backup over their radio."GetPlayerNameEx(playerid));
        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
        
format(stringsizeof(string), "%s is requesting immediate backup at %s."GetPlayerNameEx(playerid), zone);
        
Backup[playerid] = 1;
        foreach(
Playeri)
        if(
IsACop(i))
        {
            
SetPlayerMarkerForPlayer(iplayerid0x2641FEAA);
            
SendClientMessage(iTEAM_BLUE_COLORstring);
            
SendClientMessage(iCOLOR_WHITE"Type /nobackup to clear your backup request.");
            
SetTimerEx("BackupClear"180000false"ii"playerid1);
        }
          return 
1;
    }
    if(
Backup[playerid] == 1)
    {
        
SendClientMessage(playeridCOLOR_GREY" You already have an active backup request!");
          }
    }
    return 
1;

Reply


Messages In This Thread
anyone able to help me with a command - by IggyKlipz - 09.06.2017, 11:15
Re: anyone able to help me with a command - by FizzyWalshy - 09.06.2017, 12:11
Re: anyone able to help me with a command - by Zmith - 09.06.2017, 12:22
Re: anyone able to help me with a command - by Threshold - 09.06.2017, 12:31
Re: anyone able to help me with a command - by IggyKlipz - 09.06.2017, 13:15
Re: anyone able to help me with a command - by IggyKlipz - 09.06.2017, 17:02
Re: anyone able to help me with a command - by Threshold - 09.06.2017, 23:59
Re: anyone able to help me with a command - by Kane - 10.06.2017, 02:59
Re: anyone able to help me with a command - by IggyKlipz - 10.06.2017, 15:19

Forum Jump:


Users browsing this thread: 1 Guest(s)