one question
#1

there are a cmds like SetVehicleSpawnInfo? I just need it for parking my vehicles with cmd /park
or if somebody know else cmd to set vehicle's spawn positzion
Reply
#2

pawn Код:
CMD:park(playerid,params[])
{
    if(!IsPlayerInAnyVehicle) return 1;
    new Pos[4],modelid,veh,seat;
    modelid = GetVehicleModel(GetPlayerVehicleID(playerid));
    GetVehiclePos(GetPlayerVehicleID(playerid),Pos[0],Pos[1],Pos[2]);
    GetVehicleZAngle(GetPlayerVehicleID(playerid),Pos[3]);
    seat = GetPlayerVehicleSeat(playerid);
    DestroyVehicle(GetPlayerVehicleID(playerid));
    veh = CreateVehicle(modelid,Pos[0],Pos[1],Pos[2],Pos[3],1,1,50);
    PutPlayerInVehicle(playerid,veh,seat);
    SendClientMessage(playerid,0x00FF00FF,"Vehicle Parked!");
    return 1;
}
NOTE: UNTESTED. Have fun. Should work.
Reply
#3

somebody know how to remove cameralookat and camerapos?
Reply
#4

I think it's SetCameraBehindPlayer or something like that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)