Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*==============================================================================
- __________
- / A \
- / A A \
- / A A \
- | A A |
- | AAAAAAAAAAAAA | M M U U N N R R R A
- | A A | M M M M U U N N N R R A A
- | A _____ A | M M M M U U N N N R R A A
- | A | | A | M M M M U U N N N R R R A A A A
- | A | | A | M M M U U N N N RR R A A
- |_A__| |__A_| M M UUUUU N N R R A A
- _____________________________________________________________________________*/
- #include <a_samp>
- #include <streamer>
- #include <zcmd>
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_RED 0xFF0000AA
- new Pilot[MAX_PLAYERS];
- new Pickuppilot;
- new LVehicleId;
- new colour1,colour2;
- new Float:x, Float:y, Float:z,angle;
- forward Fix(playerid, vehicleid);
- public OnFilterScriptInit()
- {
- print("\n++++++++++++++++$$$$$$$+++++++++++++");
- print(" FilterScript By Amunra Are Loaded ");
- print("++++++++++++++++++$$$$$$+++++++++++++\n");
- Pickuppilot = CreatePickup(1239,1,2737.7542,-1760.2360,44.1451);
- return 1;
- }
- public OnFilterScriptExit()
- {
- DestroyPickup(Pickuppilot);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- Pilot[playerid] = 0;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- Pilot[playerid] = 0;
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- Pilot[playerid] = 0;
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- Pilot[playerid] = 0;
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if(Pilot[playerid] > 0)
- {
- Pilot[playerid] = 0;
- DestroyVehicle(GetPlayerVehicleID(playerid));
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid,0xFF0000AA,"You Leave the Pilot Job");
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(Pilot[playerid] == 1){
- Pilot[playerid] = 2;
- SetPlayerCheckpoint(playerid,351.2875,2500.7703,16.4844,12.0);
- return 1;
- }
- if(Pilot[playerid] == 2){
- Pilot[playerid] = 3;
- SetPlayerCheckpoint(playerid,955.8745,2071.4685,21.7015,12.0);
- GameTextForPlayer(playerid,"Fix you're Heli for 7 second!",6000,6);
- SetTimer("Fix",7000,false);
- return 1;
- }
- if(Pilot[playerid] == 3){
- Pilot[playerid] = 4;
- SetPlayerCheckpoint(playerid,1108.7338,1529.2932,52.4059,12.0);
- return 1;
- }
- if(Pilot[playerid] == 4){
- Pilot[playerid] = 0;
- GameTextForPlayer(playerid,"You're Finish Your Pilot Job",3000,1);
- GivePlayerMoney(playerid,150000);
- DestroyVehicle(GetPlayerVehicleID(playerid));
- DisablePlayerCheckpoint(playerid);
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == Pickuppilot)
- GameTextForPlayer(playerid,"Type /pilot to Start Job Pilot",3000,1);
- return 1;
- }
- CMD:pilot(playerid,params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 2,2737.7542,-1760.2360,44.1451))
- {
- if(Pilot[playerid] == 1 || Pilot[playerid] == 2 || Pilot[playerid] == 3 || Pilot[playerid] == 4)
- {
- SendClientMessage(playerid,0xFF0000AA,"You have started a Pilot Job and can't use this command again.");
- return 1;
- }
- else
- Pilot[playerid] = 1;
- new name[MAX_PLAYER_NAME], string[128];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "%s Was To be a Pilot. Type /jobpilot for go to work a pilot jobs By Amunra's.", name );
- SendClientMessageToAll(0xFFFF00AA, string);
- SendClientMessage(playerid,0xFFFF00AA,"Please follow the red checkpoint to Stay and still your Vehicle.");
- SetPlayerCheckpoint(playerid,351.2875,2500.7703,16.4844,12.0);
- LVehicleId = CreateVehicle(487,2750.7383,-1799.7063,41.6439,angle,colour1,colour2,-1);
- SetVehicleVirtualWorld(LVehicleId, GetPlayerVirtualWorld(playerid));
- LinkVehicleToInterior(LVehicleId, GetPlayerInterior(playerid));
- GetPlayerPos(playerid,x,y,z);
- SetPlayerPos(playerid,2750.7383,-1799.7063,41.6439);
- PutPlayerInVehicle(playerid,LVehicleId,0);
- return 1;
- }
- else
- {
- SendClientMessage(playerid,0xFF0000AA,"You must be at Pickup Job Pilot To use this commands");
- }
- return 1;
- }
- CMD:jobpilot(playerid,params[])
- {
- if(Pilot[playerid] == 1 || Pilot[playerid] == 2 || Pilot[playerid] == 3 || Pilot[playerid] == 4)
- {
- SendClientMessage(playerid,0xFF0000AA,"Now you on work ,and You can't Use this Commands");
- }
- else
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,2750.7383,-1799.7063,41.6439);
- return 1;
- }
- public Fix(playerid, vehicleid)
- {
- SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
- GameTextForPlayer(playerid,"Your VEHICLE Still Fix",2000,1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement