Hallo ich habe mir eine schranke gescriptet aber die schranke soll nach oben aufgehen und nicht zur seite.
Ich habe keine ahnung wie ich es machen muss und wie ich es einsetzen muss kan mir jemand helfen am besten zeigen wo ich es einsetzen kan.
Ich bedanke mich jetzt schon
Hier mein Script
#include <a_samp>
#pragma tabsize 0
new Tor;
main() {
//Message shown in server window
print("\n----------------------------------");
print(" schranke");
print("----------------------------------\n");
}
public OnGameModeInit() {
SetGameModeText("My Gamemode"); //Mode name in server browser
AddPlayerClass(0, -1451.2561,-806.7216,77.6796,113.2599, 0, 0, 0, 0, 0, 0);
Tor = CreateObject(968, -1517.188477, -818.017883, 58.291527, 0.0000, 270.6186, 258.7500);
AddStaticVehicle(424,311.7932,-1788.8888,4.3567,359.1558,3,2); //Strandbuggy 1
return 1;
}
public OnGameModeExit() {
return 1;
}
public OnPlayerRequestClass(playerid, classid) {
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerRequestSpawn(playerid) {
return 1;
}
public OnPlayerConnect(playerid) {
return 1;
}
public OnPlayerDisconnect(playerid, reason) {
return 1;
}
public OnPlayerSpawn(playerid) {
return 1;
}
public OnPlayerDeath(playerid, killerid, reason) {
return 1;
}
public OnVehicleSpawn(vehicleid) {
return 1;
}
public OnVehicleDeath(vehicleid, killerid) {
return 1;
}
public OnPlayerText(playerid, text[]) {
return 1;
}
public OnPlayerPrivmsg(playerid, recieverid, text[]) {
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp(cmdtext, "/auf", true)==0)
{
MoveObject(Tor,-1517.163452, -818.017883, 58.291527,4);
return 1;
}
if (strcmp(cmdtext, "/zu", true)==0)
{
MoveObject(Tor, -1517.188477, -818.017883, 58.291527,4);
return 1;
}
return 0;
}
public OnPlayerInfoChange(playerid) {
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) {
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) {
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid) {
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate) {
return 1;
}
public OnPlayerEnterCheckpoint(playerid) {
return 1;
}
public OnPlayerLeaveCheckpoint(playerid) {
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid) {
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid) {
return 1;
}
public OnRconCommand(cmd[]) {
return 1;
}
public OnObjectMoved(objectid) {
return 1;
}
public OnPlayerObjectMoved(playerid, objectid) {
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid) {
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row) {
return 1;
}
public OnPlayerExitedMenu(playerid) {
return 1;
}