#1

PHP код:
vehOnVehicleSpawn(vehicleid) {
    
vehOnLoadPaintJob(vehicleid);
    
VehicleInfo[vehicleid][EVFlags] &= ~EVehicleFlags_WindowsDown;
    
VehicleInfo[vehicleid][EVFlags] &= ~EVehicleFlags_Totaled;
    if(
VehicleInfo[vehicleid][EVType] == EVehicleType_Owned && VehicleInfo[vehicleid][EVToDelete] == 1) {
        if(
playerHasCarInsurance(VehicleInfo[vehicleid][EVOwner]) && IsACar(GetVehicleModel(vehicleid))) {
            
putVehicleInImpound(vehicleid,0);
            
SendClientMessage(VehicleInfo[vehicleid][EVOwner], X11_LIGHTBLUE"Your vehicle has been destroyed, you must reclaim it at the Insurance Company");    
        } else {
            
DestroyOwnedVehicle(vehicleid);
            
SendClientMessage(VehicleInfo[vehicleid][EVOwner], X11_LIGHTBLUE"Your vehicle has been destroyed.");    
        } 
I want to add heli to the insurance aswell.. I tried adding && IsAHelicopter(GetVehicleModel(vehicleid) but that didn't work and gave me a fatal error like.. pawno has stopped working.

So I want to use
PHP код:
IsAHelicopter 
so the heli go to the insurance aswell.
Reply


Messages In This Thread
Help - by Puff - 17.10.2017, 09:21
Re: Help - by McBan - 17.10.2017, 21:55

Forum Jump:


Users browsing this thread: 2 Guest(s)