Checkpoint problem
#7

PHP код:

IsAC4Boat
(carid)
{
    for(new 
0sizeof(C4Vehicles); v++)
    {
        if(
carid == C4Vehicles[v]) return 1;
    }
    return 
0;
}

else if(
IsAC4Boat(vehicleid))
        {
            if(
StealingC4[playerid] == playerid)
            {
                if(
BoatHaveC4[GetPlayerVehicleID(playerid)] == 1)
                {
                    
C4B[playerid] = 1;
                    
TogglePlayerControllable(playerid1);
                    
SetPlayerCheckpoint(playerid, -426.44,1163.00,0.705.0);
                    
SendClientMessage(playeridCOLOR_LIGHTBLUE"Drive to the checkpoint to receive C4");
                }
            }
             else
            {
                  
RemovePlayerFromVehicle(playerid);
                new 
Float:slxFloat:slyFloat:slz;
                
GetPlayerPos(playeridslxslyslz);
                
SetPlayerPos(playeridslxslyslz);
                 
NOPCheck(playerid);
                 
SendClientMessageEx(playeridCOLOR_GRAD2"You are not stealing c4");
            }
        }

    
C4Vehicles[0] = AddStaticVehicleEx(472,-1449.8000488,425.3999939,0.0000000,270.0000000,30,30,15); //Coastguard
    
C4Vehicles[1] = AddStaticVehicleEx(472,-1438.0000000,425.3999939,0.0000000,270.0000000,31,31,15); //Coastguard
    
C4Vehicles[2] = AddStaticVehicleEx(472,-1425.9000244,425.3999939,0.0000000,270.0000000,30,30,15); //Coastguard
    
C4Vehicles[3] = AddStaticVehicleEx(472,-1413.4000244,425.3999939,0.0000000,270.0000000,30,30,15); //Coastguard
    
C4Vehicles[4] = AddStaticVehicleEx(472,-1401.6999512,425.3999939,0.0000000,270.0000000,30,30,15); //Coastguard
    
C4Vehicles[5] = AddStaticVehicleEx(472,-1389.9000244,425.3999939,0.0000000,270.0000000,30,30,15); //Coastguard
    
C4Vehicles[6] = AddStaticVehicleEx(472,-1377.5999756,425.3999939,0.0000000,270.0000000,30,30,15); //Coastguard
    
C4Vehicles[7] = AddStaticVehicleEx(472,-1365.5000000,425.3999939,0.0000000,270.0000000,30,30,15); //Coastguard
    
C4Vehicles[8] = AddStaticVehicleEx(472,-1353.5000000,425.3999939,0.0000000,270.0000000,30,30,15); //Coastguard 
Reply


Messages In This Thread
Checkpoint problem - by Kenway - 23.02.2013, 07:03
Re: Checkpoint problem - by SilverKiller - 23.02.2013, 07:30
Re: Checkpoint problem - by Kenway - 23.02.2013, 08:10
Re: Checkpoint problem - by Kenway - 23.02.2013, 11:13
Re: Checkpoint problem - by Kenway - 23.02.2013, 20:00
Re: Checkpoint problem - by Misiur - 23.02.2013, 20:10
Re: Checkpoint problem - by Kenway - 23.02.2013, 20:25
Re: Checkpoint problem - by Misiur - 23.02.2013, 20:54
Re: Checkpoint problem - by Kenway - 24.02.2013, 05:43

Forum Jump:


Users browsing this thread: 2 Guest(s)