#1

what wrong Signed /Open, and I only open but shut


pawn Код:
COMMAND:open( playerid )
{
    new
        vehid = GetClosestVehicle( playerid ),
        vid = GetPlayerVehicleID ( playerid  ),
        engine,lights,alarm,doors,bonnet,boot,objective,
        Boot[MAX_PLAYERS];
       
    if ( vehid < MAX_PLAYERS )
    {
        if ( !CheckPlayerDistanceToVehicle( 3.5, playerid, vehid ) ) SendClientMessage( playerid, COLOR_GREY, "   There is a vehicle near you." );
        else if ( !VehicleHasTrunk( GetVehicleModel( vehid ) ) )     SendClientMessage( playerid, COLOR_GREY, "   This vehicle has no trunk." );
        else
        {
            if(Boot[playerid] == 0)
            {
                GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective);
                SetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
                ShowInfoText         ( playerid, "~g~Boot Open", 3000 );
                Boot[playerid] = 1;
            }
            else if(Boot[playerid] == 1)
            {
                GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective);
                SetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
                ShowInfoText         ( playerid, "~g~Boot Close", 3000 );
                Boot[playerid] = 0;
            }
        }
    }
    else
        SendClientMessage( playerid, COLOR_GREY, "   There is a vehicle near you." );

    return true;
}
Reply
#2

up up
Reply
#3

help plz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)