if(listitem == 0) { SetCameraBehindPlayer(playerid); new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { return SetVehiclePos(vehicleid,-587.9664,918.3303,429.7906); } SetPlayerPos(playerid, -587.9664,918.3303,429.7906); SetPlayerFacingAngle(playerid, 1.4484); }
TogglePlayerControllable(playerid, 0);
TogglePlayerControllable(playerid, 1);
if(listitem == 0) { Object(playerid); SetCameraBehindPlayer(playerid); new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { return SetVehiclePos(vehicleid,-587.9664,918.3303,429.7906); } SetPlayerPos(playerid, -587.9664,918.3303,429.7906); SetPlayerFacingAngle(playerid, 1.4484); }
Ha azzal a scripttel szeretnéd, amit belinkeltél, akkor így. if(listitem == 0) { Object(playerid); SetCameraBehindPlayer(playerid); new vehicleid = GetPlayerVehicleID(playerid); new State = GetPlayerState(playerid); if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER) { return SetVehiclePos(vehicleid,-587.9664,918.3303,429.7906); } SetPlayerPos(playerid, -587.9664,918.3303,429.7906); SetPlayerFacingAngle(playerid, 1.4484); }
forward ObjectOff(playerid);stock Object(playerid){TogglePlayerControllable(playerid, false); //lefagyasztásGameTextForPlayer(playerid, \"~g~Objectek ~b~Betoltese~w~!\", 3000, 6); //megjelenítendo szöveg PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); //hang az objectek betöltése közbenSetTimerEx(\"ObjectOff\", 6000, 0,\"e\",playerid); //Az \"ObjectOff\" meghívása 6 másodperc múlvareturn 1;}public ObjectOff(playerid){TogglePlayerControllable(playerid, true); //fagyasztás feloldásaGameTextForPlayer(playerid, \"~g~Objectek ~b~Betoltve~w~!\", 3000, 6); //megjelenítendo szöveg PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); //hang az objectek betöltése végénreturn 1;}