Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new pveh[MAX_PLAYERS], Float:SpawnPointX[MAX_PLAYERS],Float:SpawnPointY[MAX_PLAYERS],Float:SpawnPointZ[MAX_PLAYERS],Float:SpawnPointA[MAX_PLAYERS],SpawnPointVeh[MAX_PLAYERS],SpawnPointUsed[MAX_PLAYERS];
- new vDim[MAX_VEHICLES];
- new vInt[MAX_VEHICLES];
- stock CreateVehicleEx(model, Float:pox, Float:poy, Float:poz, Float:poa, dimension, interior, c1, c2, spawn_d) {
- new vehid = CreateVehicle(model, pox, poy, poz, poa, c1, c2, spawn_d);
- LinkVehicleToInterior(vehid, interior);
- SetVehicleVirtualWorld(vehid, dimension);
- return vehid;
- }
- stock SpawnInVehicle(playerid, model, Float:pox, Float:poy, Float:poz, Float:poa, dimension, interior, c1, c2, spawn_d) {
- if(model==0||pox==0||poy==0){
- pox = SpawnPointX[0];
- poy = SpawnPointY[0];
- poz += 2;
- }
- if(pveh[playerid]>0) DestroyVehicle(pveh[playerid]);
- pveh[playerid] = CreateVehicle(model, pox, poy, poz, poa, c1, c2, spawn_d);
- LinkVehicleToInterior(pveh[playerid], interior);
- SetVehicleVirtualWorld(pveh[playerid], dimension);
- SetPlayerVirtualWorld(playerid, dimension);
- SetPlayerInterior(playerid, interior);
- PutPlayerInVehicle(playerid, pveh[playerid], 0);
- vDim[pveh[playerid]] = dimension;
- vInt[pveh[playerid]] = interior;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement