how to make /park
#1

how to make /parkcar for below script i dont know how to make them park in a save file.
and i also want to save the tuning of cars in a file like /savetune it save our current tunning in a file.
pawn Code:
#define FILTERSCRIPT
#define COLOR_RED 0xAA3333AA

#include <a_samp>

new Summair;
new Summair1;

public OnFilterScriptInit()
{
    Summair = AddStaticVehicle(562,-1959.1219,288.1400,35.1337,89.6646,145,145);
    Summair1 = AddStaticVehicle(411,-1986.5643, 248.8863, 34.9182, 0, 0, 0);
    AddVehicleComponent(Summair, 1036);
    AddVehicleComponent(Summair, 1040);
    AddVehicleComponent(Summair, 1034);
    AddVehicleComponent(Summair, 1172);
    AddVehicleComponent(Summair, 1149);
    AddVehicleComponent(Summair, 1035);
    AddVehicleComponent(Summair, 1002);
    AddVehicleComponent(Summair, 1079);
    return 1;
}


public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new PlayerName[24];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

    if(newstate == PLAYER_STATE_DRIVER) {
        new Vehicle = GetPlayerVehicleID(playerid);
        if(Vehicle == Summair) {
            if(strcmp(PlayerName,"Summair",true)) {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, 0xAA3333AA, "This car is reserved for: Summair");

            }
        }
        if(Vehicle == Summair1) {
            if(strcmp(PlayerName,"Summair",true)) {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, 0xAA3333AA, "This car is reserved for: Summair");
            }
        }
       
    }
    return 1;
}


public OnVehicleSpawn(vehicleid)
{
    AddVehicleComponent(Summair, 1036);
    AddVehicleComponent(Summair, 1040);
    AddVehicleComponent(Summair, 1034);
    AddVehicleComponent(Summair, 1172);
    AddVehicleComponent(Summair, 1149);
    AddVehicleComponent(Summair, 1035);
    AddVehicleComponent(Summair, 1002);
    AddVehicleComponent(Summair, 1079);
}
Reply


Messages In This Thread
how to make /park - by shaikh007 - 28.07.2011, 04:25
AW: how to make /park - by umarmalik - 18.08.2011, 18:00
Re: how to make /park - by ElieJabbour - 18.08.2011, 18:18

Forum Jump:


Users browsing this thread: 1 Guest(s)