Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- RandomVehicleSpawns
- for Bičas.
- SA:MP.
- by Renas.
- */
- #define MAX_VEHICLES_SPAWNS 4
- // 4 - x,y,z,a (0,1,2,3)
- new const Float:RandomVehicleSpawns[MAX_VEHICLE_SPAWNS] [4] = {
- {x,y,z,a},
- {x,y,z,a},
- {x,y,z,a},
- {x,y,z,a}
- };
- // Panaudojimas kažkur
- new randomSpawnForVehicle = random(sizeof(RandomVehicleSpawns));
- SetVehiclePos(GetPlayerVehicleID(playerid),RandomVehicleSpawns[randomSpawnForVehicle][0],RandomVehicleSpawns[randomSpawnForVehicle][1],RandomVehicleSpawns[randomSpawnForVehicle][2]);
- SetVehicleZPos(playerid,RandomVehicleSpawns[randomSpawnForVehicle][3]);
Advertisement
Add Comment
Please, Sign In to add comment