- 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 |
native xMoveVehicle(carid); native yMoveVehicle(carid); native zMoveVehicle(carid); native MoveVehicle(carid);
/*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; }
/*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 }
/*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
C:\Program Files\Rockstar Games\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "x1" shadows a variable at a preceding level C:\Program Files\Rockstar Games\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "y1" shadows a variable at a preceding level C:\Program Files\Rockstar Games\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "z1" shadows a variable at a preceding level C:\Program Files\Rockstar Games\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "x2" shadows a variable at a preceding level C:\Program Files\Rockstar Games\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "y2" shadows a variable at a preceding level C:\Program Files\Rockstar Games\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "z2" shadows a variable at a preceding level C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(14) : error 020: invalid symbol name "" C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(30) : error 021: symbol already defined: "xMoveVehicle" C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(33) : error 021: symbol already defined: "GetVehiclePos" C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(35) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(37) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(41) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(44) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(48) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(50) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(53) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(57) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(60) : error 021: symbol already defined: "yMoveVehicle" C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(63) : error 021: symbol already defined: "GetVehiclePos" C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(65) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(67) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(71) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(75) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(81) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(84) : error 021: symbol already defined: "zMoveVehicle" C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(87) : error 021: symbol already defined: "GetVehiclePos" C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(88) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(90) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(94) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(98) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(103) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Server\pawno\include\jmove.inc(106) : error 021: symbol already defined: "MoveVehicle" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42726) : error 076: syntax error in the expression, or invalid function call C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42734) : error 076: syntax error in the expression, or invalid function call C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42743) : error 076: syntax error in the expression, or invalid function call C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42744) : error 076: syntax error in the expression, or invalid function call C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42752) : error 076: syntax error in the expression, or invalid function call C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42760) : error 076: syntax error in the expression, or invalid function call C:\Documents and Settings\A\Desktop\TL-RP\gamemodes\tlrp.pwn(42761) : error 076: syntax error in the expression, or invalid function call
if(strcmp(cmd, "/vehmark", true) == 0) { if(IsPlayerConnected(playerid)) { if (!IsPlayerAdmin(playerid)) { 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; } 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; } 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; }
1. Just put the Filterscript in your Server.cfg 2. Start ur Gamemode and have fun =) |
BotCar = AddStaticVehicle(431, X, Y, Z, Z_Angle, 0, 0);
C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(14) : error 020: invalid symbol name "" C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(30) : error 021: symbol already defined: "xMoveVehicle" C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(33) : error 021: symbol already defined: "GetVehiclePos" C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(35) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(37) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(41) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(44) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(48) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(50) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(53) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(57) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(60) : error 021: symbol already defined: "yMoveVehicle" C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(63) : error 021: symbol already defined: "GetVehiclePos" C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(65) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(67) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(71) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(75) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(81) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(84) : error 021: symbol already defined: "zMoveVehicle" C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(87) : error 021: symbol already defined: "GetVehiclePos" C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(88) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(90) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(94) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(98) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(103) : error 010: invalid function or declaration C:\Dokumente und Einstellungen\Sebbel\Eigene Dateien\Scripting\pawno\include\jmove.inc(106) : error 021: symbol already defined: "MoveVehicle" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
#include <a_samp> #include <jmove> // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #if defined FILTERSCRIPT forward Autostop(); BotCar = AddStaticVehicle(431, X, Y, Z, Z_Angle, 0, 0); public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Carbot by Jason_Gregory umgewandelt in FS von Sebastian Frank"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Carbot by Jason_Gregory umgewandelt in FS von Sebastian Frank"); print("----------------------------------\n"); } #endif public OnPlayerCommandText(playerid, cmdtext[]) { 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; } 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 } 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; } }