buttons wont work
#6

PHP код:
public OnPlayerPressButton(playeridbuttonid)
{
    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.599999900.3);
                foreach(new 
iPlayer)
                {
                    if(
IsPlayerInRangeOfPoint(i500, -1083.90002441,4289.70019531,7.59999990))
                    {
                        
SendClientMessage(iCOLOR_YELLOW" UNAUTHORISED INTRUDERS!! LOCKDOWN SEQUENCE INITIATED!!");
                    }
                }
                
format(stringsizeof(string), "** %s has initiated a lockdown sequence at the San Andreas Military Island. **"GetPlayerName(playerid));
                
SendFamilyMessage(iGroupIDDEPTRADIOstring);
                
IslandGateStatus gettime();
                
IslandThreatElimTimer SetTimer("IslandThreatElim"18000000);
            }
            else
            {
                
KillTimer(IslandThreatElimTimer);
                
IslandThreatElim();
            }
        }
        else
        {
            
SendClientMessage(playeridCOLOR_GRAD2" Only the SAAS has the authority to do this! ");
        }
        return 
1;
    } 
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)