Help with /sellcar !
#3

First make en enum like that for the random car spawn.
pawn Код:
enum carspawn
{
    Float: cX,
    Float: cY,
    Float: cZ,
        Float: cA
}
new Cars[][carspawn] =
{
    {x,y,z,a},
    {x,y,z,a}
};
Then before the strlen check if the player is at the car lot.
If not return some message.

To set the car spawn, set it after this part of the command:
pawn Код:
dini_IntSet(carfile,"carvalue",tmpprice);
            Vehicles[r][carvalue] = tmpprice;
            dini_IntSet(carfile,"forsale",1);
            Vehicles[r][forsale] = 1;
And when I say set the car spawn I mean to set it in the Car%d.txt using the random spawn spots.
Reply


Messages In This Thread
Help with /sellcar ! - by deltapro - 06.06.2012, 18:07
Re: Help with /sellcar ! - by alpha500delta - 06.06.2012, 18:29
Re: Help with /sellcar ! - by zxc1 - 06.06.2012, 18:34
AW: Help with /sellcar ! - by deltapro - 06.06.2012, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)