18.08.2012, 15:30
Try this
pawn Код:
new PlayerIn[MAX_VEHICLES]; //I would replace MAX_VEHICLES with Number of vehicles you have
public OnPlayerSpawn(playerid)
{
new pveh;
for(new i=0;i<MAX_VEHICLES;i++)
{
if(!PlayerIn[i])
{
pveh = i;
break;
}
}
PutPlayerInVehicle(playerid,pveh,0);
PlayerIn[pveh] = 1;
return 1;
}