/back up problem
#1

pawn Code:
if(strcmp(cmd, "/backup", true) == 0 || strcmp(cmd, "/bk", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
            {
                if(CopOnDuty[playerid] == 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "[Error:] You are not on duty");
                    return 1;
                }
                if (PlayerInfo[playerid][pRequestingBackup] != 1)
                {
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "[Radio:] All units, %s is requesting immediate assistance, location marked on the map (red)", sendername);
                    PlayerInfo[playerid][pRequestingBackup] = 1;
                    for(new i = 0; i < MAX_PLAYERS; i++)
                    {
                        if(IsPlayerConnected(i))
                        {
                            if(PlayerInfo[i][pFaction] == 0 || PlayerInfo[i][pFaction] == 6)
                            {
                                SetPlayerMarkerForPlayer(i, playerid, 0xFF0000FF);
                                SendClientMessage(i, COLOR_LSPD, string);
                            }
                        }
                    }
                    SendClientMessage(playerid, COLOR_WHITE, "[Info:] Type /backupclear or /bkc to clear your backup request");
                    SetTimerEx("BackupClear", 180000, false, "ii", playerid, 1);
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GREY, "[Error:] You already have an active backup request");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "[Error:] Invalid faction");
            }
        }
        return 1;
    }
When my cops /backup, no red marker appears. I want one to appear. Please help, thanks.
Reply
#2

bump
Reply
#3

Stop bumping, i think i am going to call my local LEO and tell them you were impersonating a Federal Officer(FBI)
Reply
#4

Quote:
Originally Posted by Steven82
Stop bumping, i think i am going to call my local LEO and tell them you were impersonating a Federal Officer(FBI)
do it. see you in court.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)