21.09.2018, 21:31
Код:
#define MAX_PICKUPS 2 new Pickups[MAX_PICKUPS]; public OnGameModeInit() { Pickups[0] = CreateDynamicPickup(1314, 1, -2334.0427, -3311.5967, 195.1423); Pickups[1] = CreateDynamicPickup(1314, 1, -3064.8191, -3764.0562, 7.7760); return 1; } public OnPlayerPickUpDynamicPickup(playerid, pickupid) { if(pickupid == Pickups[0]) ChangeVehicle(playerid, 451); if(pickupid == Pickups[1]) ChangeVehicle(playerid, 411); return 1; } forward ChangeVehicle(player, vehicle); public ChangeVehicle(player, vehicle) { if(IsPlayerInAnyVehicle(player)) { new veh = GetPlayerVehicleID(player); new Float:ang; GetVehicleZAngle(veh, ang); new Float:pos[3]; GetVehiclePos(veh, pos[0], pos[1], pos[2]); new Float:velo[3]; GetVehicleVelocity(veh, velo[0], velo[1], velo[2]); DestroyVehicle(veh); veh = CreateVehicle(vehicle, pos[0], pos[1], pos[2]+0.5, ang, -1, -1, -1); PutPlayerInVehicle(player, vehicle, 0); SetVehicleVelocity(veh, velo[0], velo[1], velo[2]); return 1; } return 1; }
Try to update ur Streamer Plugin.
https://sampforum.blast.hk/showthread.php?tid=102865/