06.06.2012, 18:34
First make en enum like that for the random car spawn.
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:
And when I say set the car spawn I mean to set it in the Car%d.txt using the random spawn spots.
pawn Код:
enum carspawn
{
Float: cX,
Float: cY,
Float: cZ,
Float: cA
}
new Cars[][carspawn] =
{
{x,y,z,a},
{x,y,z,a}
};
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;