Srry ~5 Uhr Übersetzung folgt^
Theres a lot of Server with Godfather and any Godfatherserver got the same Problem...
Nobody want´s to be a Busdriver :D. Why ?
Zitat
- Low Money
- Everyone shots at ur tires (That´s rll Shit)
- Busses are so sloooooow
- Busdriver get´s frustrated and start to kill Police Officers
So that´s the ultimate Answer to all this suckers.
#include <jmove>
(c)Copyright 2009, Jason Gregory
3 Speedoptions - Slow [< 25Mph], Normal [>= 50Mph], Fast [> 75Mph][/b]
U can make ur own Route Ingame with /Botmark
U can enter the Car/Vehicle as Driver/Passenger
U can start the Vehicle with /Startbotcar
U can stop the Vehicle with /Stopbotcar
U can change the Height, X-Coord, Y-Coord, X-Coord of the Vehicle with MoveVehicleX, MoveVehicleY, MoveVehicleZ
Compatible with any Vehicle, Planes, Boats, Bikes, Motorbike
Userful for Busses or Planes
Natives:
native xMoveVehicle(carid);
native yMoveVehicle(carid);
native zMoveVehicle(carid);
native MoveVehicle(carid);
Link for the Include:
And No i dont want to be Mirrored
/*Under OnPlayerCommandText*/
if(strcmp(cmd, "/vehmark", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerIsAdmin)
{
GetPlayerPos(playerid, TeleportDestveh[playerid][0],TeleportDestveh[playerid][1],TeleportDestveh[playerid][2]);
SendClientMessage(playerid, COLOR_GRAD1, " Teleporter Station set, now use /Botstart");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " HINT: U must login as Rcon Admin !");
}
}
return 1;
}
This Mark is the Position where the Bot goes, so dont place the Mark behind Buildings!
TeleportDestveh is allready definied in the Include.
/*U need to 'Start' the Bot so put this OnPlayerCommandText too. It´s just a simple Timer */
forward Autobewegung();
if(strcmp(cmd,"/Startbotcar",true)==0)
{
if(IsPlayerConnected(playerid))
{
Autostop = SetTimer("Autostop", 250, 1); //Dont worry it can take 250 ;)
}
return 1;
}
if(strcmp(cmd,"/Startbotcar",true)==0)
{
if(IsPlayerConnected(playerid))
{
KillTimer(Autostop);
}
return 1;
}
public Autostop()
{
xMoveVehicle(carid);
yMoveVehicle(carid);
zMoveVehicle(carid);
//or just use MoveVehicle(carid); because it´s all in 1
MoveVehicle
}
/*U need to 'Start' the Bot so put this OnPlayerCommandText too. It´s just a simple Timer */
if(strcmp(cmd,"/Speed1",true)==0)
{
if(IsPlayerConnected(playerid))
{
KillTimer(Autostop);
Autostop = SetTimer("Autostop", 250, 1); //Dont worry it can take 250 ;)
}
return 1;
}
if(strcmp(cmd,"/Speed2",true)==0)
{
if(IsPlayerConnected(playerid))
{
Autostop = SetTimer("Autostop", 150, 1);
}
return 1;
}
if(strcmp(cmd,"/Speed3",true)==0)
{
if(IsPlayerConnected(playerid))
{
KillTimer(Autostop);
Autostop = SetTimer("Autostop", 50, 1); //If u want it faster just edit it
}
return 1;
}
- Other Players !can´t see the Vehicle moving because Sa-mp is not syncrom
- MoveVehicle is bugged idk why but im doing my best, try out MoveVehicleX/Y/Z
If theres any Problem with the Script, post it here. It take a time for me to answer, because im rlly bussy working, but i will do my best.