19.02.2011, 22:28
hey
I have made this single command for spawning a vehicle, but i want to spawn inside the vehicle.
here is what i got so far
I have made this single command for spawning a vehicle, but i want to spawn inside the vehicle.
here is what i got so far
Код:
new Float:x, Float:y, Float:z, Float:ang; new VehicleID = GetPlayerVehicleID(playerid); new cmd[128]; if(strcmp(cmd, "/Infernus", true) == 0) { if (!IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid, 0xFFFF00FF, "You are already inside a vehicle."); return 1; } GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, ang); CreateVehicle(411, x+1, y+1, z+1, 0, 0, 0, 600); SetVehicleZAngle(VehicleID, ang); return 1; }