Car on FIRE ?
#1

i got this probblem for many days now and i look throught the script and i cant figur it out
BASICALLY What happens is when a player enters a VEHICLE more then 2nd PLAYERID the car sets on fire and i have no idea why ?

This is my [OnPlayerEnterVehicle]
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return 1;
}
When Exits teh Vehicle
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}
Vehicle Spawn script
pawn Код:
CreatePlayerVehicle( playerid, modelid )
{
    new
        vehicle,
        Float:x,
        Float:y,
        Float:z,
        Float:angle;

    if ( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
    {
        vehicle = GetPlayerVehicleID( playerid );
        GetVehiclePos( vehicle, x, y, z );
        GetVehicleZAngle( vehicle, angle );
        DestroyVehicle( vehicle );
    }
    else
    {
        GetPlayerPos( playerid, x, y, z );
        GetPlayerFacingAngle( playerid, angle );
    }
    vehicle = CreateVehicle( modelid, x, y, ( z + 1 ), angle, -1, -1, DEFAULT_RESPAWN_TIME );
    LinkVehicleToInterior( vehicle, GetPlayerInterior( playerid ) );
    #if !defined IGNORE_VIRTUAL_WORLDS
        SetVehicleVirtualWorld( vehicle, GetPlayerVirtualWorld( playerid ) );
    #endif
    #if !defined IGNORE_WARP_INTO_VEHICLE
        PutPlayerInVehicle( playerid, vehicle, 0 );
    #endif
    #if !defined IGNORE_VEHICLE_DELETION
        gDialogCreated[ vehicle ] = true;
    #endif
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)