Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <a_npc>
- new Ambulanceheli;
- new Hunter;
- new Train;
- new AT400;
- new CPTbotX1bus;
- new TablooX1;
- forward Bot1();
- forward Bot2();
- forward Bot3();
- forward Bot4();
- forward Bot5();
- forward Parool();
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Botid by kerts93");
- print("--------------------------------------\n");
- SendRconCommand("password 0");
- SetTimer("Bot1", 500, false);
- Ambulanceheli = AddStaticVehicle(563, 2109.1763, 1503.0453, 32.2887, 82.2873, 3, 6);
- Hunter = AddStaticVehicle(425, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 0);
- Train = AddStaticVehicle(538, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
- AT400 = AddStaticVehicle(577, 2109.1763, 1503.0453, 32.2887, 82.2873, 1, 3);
- CPTbotX1bus = AddStaticVehicle(431, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 0);
- TablooX1 = Create3DTextLabel("X1 La Habra",0x66CC00FF,1141.34, -1389.88, 15.06,30.0,0);
- }
- public Bot1()
- {
- ConnectNPC("Mathew_McDonald","erthelicopterbot");
- SetTimer("Bot2", 500, false);
- }
- public Bot2()
- {
- ConnectNPC("Moralles_McSmith","hunterbot");
- SetTimer("Bot3", 500, false);
- }
- public Bot3()
- {
- ConnectNPC("Kelroy_Hedges","trainbot");
- SetTimer("Bot4", 500, false);
- }
- public Bot4()
- {
- ConnectNPC("Roy_Sealin","at400bot");
- SetTimer("Bot5", 500, false);
- }
- public Bot5()
- {
- ConnectNPC("Mack_Duck","busX1");
- SetTimer("Parool", 500, false);
- }
- public Parool() {
- SendRconCommand("password cApus6A9");
- }
- public OnPlayerSpawn(playerid)
- {
- if(!IsPlayerNPC(playerid)) return 0;
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid,playername,sizeof(playername));
- if(!strcmp(playername,"Mathew_McDonald",true)) {
- PutPlayerInVehicle(playerid, Ambulanceheli, 0);
- }
- else if(!strcmp(playername,"Moralles_McSmith",true)) {
- PutPlayerInVehicle(playerid, Hunter, 0);
- }
- else if(!strcmp(playername,"Kelroy_Hedges",true)) {
- PutPlayerInVehicle(playerid, Train, 0);
- }
- else if(!strcmp(playername,"Roy_Sealin",true)) {
- PutPlayerInVehicle(playerid, AT400, 0);
- }
- else if(!strcmp(playername,"Mack_Duck",true)) {
- PutPlayerInVehicle(playerid, CPTbotX1bus, 0);
- Attach3DTextLabelToVehicle( TablooX1, CPTbotX1bus, 0.0, 0.0, 2.0);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment