23.04.2009, 02:23
Carbot-Buttler - [v.0.1]
Theres a lot of Server with Godfather and any Godfatherserver got the same Problem...
Nobody wantґs to be a Busdriver . Why ?
Quote:
- 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 |
What does it do ?
#include <jmove>
©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);
And No i dont want to be Mirrored
Add this to ur Gamemode
Код:
/*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; }
TeleportDestveh is allready definied in the Include.
What i need to to next ?
Код:
/*U need to 'Start' the Bot so put this OnPlayerCommandText too. Itґs just a simple Timer */ forward Autostop(); 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 }
For Acceleration
Код:
/*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; }
Bugs
Код:
- 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.