[REP+] how to place a yellow downpointing arrow marker on car?
#9

hmm yeah i have now made this:
pawn Код:
enum StealInfo
{
    StealName[200],
    PayTax,
    Float:carx,
    Float:cary,
    Float:carz,
    Float:carendx,
    Float:carendy,
    Float:carendz
}
pawn Код:
new StealMissions[][StealInfo] =
{
    {"Steal the Infernus from Las Payasdas Caravan Park to BaySide Docks", 40000,-159.9991,2768.8738,62.5925,-2432.1255,2294.9141,4.9844}
};
new Stealing[MAX_PLAYERS];
new StealCar[MAX_VEHICLES];
pawn Код:
CMD:steal(playerid, params[])
{
    if(Stealing[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "you are already stealing a car!");
    if(Teams[playerid] == DEALER)
    {
        Stealing[playerid] = 1;
        new get = random(sizeof(StealMissions));
        StealCar[0] = AddStaticVehicle(411,-159.9991,2768.8738,62.5925,139.5876,0,3); // stealinfernus
        SetVehicleParamsForPlayer(StealCar[0], playerid, 1, 0);
        new string[128];
        format(string,sizeof(string), "%s", StealMissions[get][StealName]);
        SendClientMessage(playerid, COLOR_GREEN, string);
        return 1;
    }
    else if(Teams[playerid] != DEALER) return SendClientMessage(playerid, COLOR_RED, "ERROR: you aren't a Dealer!");
    return 1;
}
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(Stealing[playerid] == 1)
    {
        new end = random(sizeof(StealMissions));
        SetPlayerCheckpoint(playerid, StealMissions[end][carendx], StealMissions[end][carendy], StealMissions[end][carendz], 5.0);
        return 1;
    }
    return 1;
}
pawn Код:
public OnPlayerEnterCheckpoint( playerid )
{
    if(Stealing[playerid] == 1)
    {
        Stealing[playerid] = 0;
        new earn = random(sizeof(StealMissions));
        DestroyVehicle(StealCar[0]);
        DisablePlayerCheckpoint(playerid);
        new string[200];
        format(string, sizeof(string), "you have succesfully delivered the vehicle and earned: $%d", StealMissions[earn][PayTax]);
        SendClientMessage(playerid, COLOR_BLUE, string);
        return 1;
    }
    return 1;
}
but how do i make it that when a player does /steal a marker gets on the minimap for the player so he knows where the car is...?

greets niels

the one who answers this good will get REP+ and ofc all the others who helped me
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)