Checkpoint adding ! REP +1 !!
#1

Guys i made this:
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Mission Checkpoints");
	print("--------------------------------------\n");
	
	#include <a_samp>

new Airports[][][] {
        { "Las Venturas Gate 1", "1577.2006", "1504.4862", "10.8342" }
        { "Las Venturas Gate 2", "1575.7137", "1390.3827", "10.8493" }
        { "Los Santos Gate 1", "1560.2095", "-2415.1707", "13.5547" }
        { "Los Santos Gate 2", "1642.4600", "-2407.6489", "13.5547" }
        { "Los Santos Gate 3", "1723.5370", "-2412.3101", "13.5547" }
        { "San Fierro Gate 1", "-1357.4568", "-243.0007", "14.1440" }
        { "San Fierro Gate 2", "-1305.0311", "-411.8734", "14.1440" }

    };

new PlayerOnMission[Max_Players];

public OnPlayerConnect(playerid) {
    PlayerOnMission[playerid] = 0;
    return true;
}

public OnPlayerDisconnect(playerid, reason) {
    PlayerOnMission[playerid] = 0;
    return true;
}

public OnPlayerEnterVehicle(playerid, vehicleid) {
    switch(GetVehicleModel(vehicleid)) {
        case 519, 577, 592: {
            new Message[100],
                RandomAirport = rand(sizeof(Airports));
            format(Message, 100, "A checkpoint has been set at %s!", Airports[RandomAirport][0]);
            SendClientMessage(playerid, -1, "Loading Passengers!");
            SetPlayerCheckpoint(playerid, floatstr(Airports[RandomAirport][1]), floatstr(Airports[RandomAirport][2]), floatstr(Airports[RandomAirport][3]));
            PlayerOnMission[playerid] = 1;
        }
    }
    return true;
}

public OnPlayerEnterCheckpoint(playerid) {
    if(PlayerOnMission[playerid] == 1) {
        SendClientMessage(playerid, -1, "Unloading Passengers!");
        GivePlayerMoney(playerid, 5000);
    }
    return true;
}
	return 1;
	#endif
Guys i added this airport for three Planes:
1.Andro
2.Shamal
3.AT-400

Now anyone can tell me how to start /work that if i type /work there should be checkpoint coming !!

Please Tell me and Get +1 Rep !!
Thanks.
Reply


Messages In This Thread
Checkpoint adding ! REP +1 !! - by Avi57 - 31.03.2012, 04:34
Re: Checkpoint adding ! REP +1 !! - by Avi57 - 31.03.2012, 05:15
Re: Checkpoint adding ! REP +1 !! - by Shabi RoxX - 31.03.2012, 05:33
Respuesta: Checkpoint adding ! REP +1 !! - by Chris1337 - 31.03.2012, 05:35
Re: Checkpoint adding ! REP +1 !! - by captainjohn - 31.03.2012, 05:55
Re: Checkpoint adding ! REP +1 !! - by Avi57 - 31.03.2012, 06:51
Re: Checkpoint adding ! REP +1 !! - by Avi57 - 31.03.2012, 07:02
Re: Checkpoint adding ! REP +1 !! - by captainjohn - 31.03.2012, 07:12
Re: Checkpoint adding ! REP +1 !! - by Harish - 31.03.2012, 07:14
Re: Checkpoint adding ! REP +1 !! - by Avi57 - 31.03.2012, 07:26

Forum Jump:


Users browsing this thread: 4 Guest(s)