buttons wont work
#5

Quote:
Originally Posted by Josh_Main
Посмотреть сообщение
pawn Код:
public OnPlayerPressButton(playerid, buttonid)
{
    if(buttonid == lockdownbutton)
    {
        new iGroupID = PlayerInfo[playerid][pMember];
        if(PlayerInfo[playerid][pRank] >= arrGroupData[iGroupID][g_iCrateIsland])
        {
            new string[128];
            if(IslandGateStatus == 0)
            {
                MoveDynamicObject(IslandGate, -1083.90002441,4289.70019531,7.59999990, 0.3);
                foreach(new i: Player)
                {
                    if(IsPlayerInRangeOfPoint(i, 500, -1083.90002441,4289.70019531,7.59999990))
                    {
                        SendClientMessageEx(i, COLOR_YELLOW, " UNAUTHORISED INTRUDERS!! LOCKDOWN SEQUENCE INITIATED!!");
                    }
                }
                format(string, sizeof(string), "** %s has initiated a lockdown sequence at the San Andreas Military Island. **", GetPlayerNameEx(playerid));
                SendFamilyMessage(iGroupID, DEPTRADIO, string);
                IslandGateStatus = gettime();
                IslandThreatElimTimer = SetTimer("IslandThreatElim", 1800000, 0);
            }
            else
            {
                KillTimer(IslandThreatElimTimer);
                IslandThreatElim();
            }
        }
        else
        {
            SendClientMessageEx(playerid, COLOR_GRAD2, " Only the SAAS has the authority to do this! ");
        }
        return 1;
    }
Try return 1 only once, not twice
didnt work
Reply


Messages In This Thread
buttons wont work - by MillenniumG - 01.10.2014, 12:35
Re: buttons wont work - by TakeiT - 01.10.2014, 12:38
Re: buttons wont work - by MillenniumG - 01.10.2014, 12:42
Re: buttons wont work - by Josh_Main - 01.10.2014, 13:02
Re: buttons wont work - by MillenniumG - 01.10.2014, 14:01
Re: buttons wont work - by YanLanger - 01.10.2014, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)