27.03.2014, 08:44
Here's a command:
https://sampwiki.blast.hk/wiki/CreateVehicle
Код:
CMD:veh(playerid, params[]) { if(IsPlayerInAnyVehicle(playerid) || GetVehicleModelIDFromName(params[0]) == -1 || GetVehicleModelIDFromName(params[0]) == 520) return true; new car, Float:a; GetPlayerFacingAngle(playerid, a); new Float:oldposx, Float:oldposy, Float:oldposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); car = CreateVehicle(GetVehicleModelIDFromName(params[0]),oldposx,oldposy,oldposz,0,0,0,-1); SetVehicleVirtualWorld(car, GetPlayerVirtualWorld(playerid)); PutPlayerInVehicle(playerid,car,0); return 1; }