Hallo kan mir jemand helfen und sagen was ich falsch gemacht habe ich habe alles vom TUT übernommen aber die
beiden x,y,z cordinaten habe ich neu eingefügt.
kan mir jemand helfen thx
#include <a_samp>
new Tor;
main() {
//Message shown in server window
print("\n----------------------------------");
print(" Bus");
print("----------------------------------\n");
}
public OnGameModeInit() {
SetGameModeText("My Gamemode"); //Mode name in server browser
AddPlayerClass(0, 314.6997, -1779.7434, 4.5598, 269.1425, 0, 0, 0, 0, 0, 0);
Tor = CreateObject(969, 2028.251099, 1337.621704, 9.987190, 0.0000, 0.0000, 270.0000);
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,2028.244141, 1338.613037, 9.987190,4);
return 1;
}
if (strcmp(cmdtext, "/zu", true)==0)
{
MoveObject(Tor, 2028.251099, 1337.621704, 9.987190,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;
}