Create a vehicle when player joins
#2

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;
}
Reply


Messages In This Thread
Create a vehicle when player joins - by ValentinLaw - 18.08.2012, 15:11
Re: Create a vehicle when player joins - by RanSEE - 18.08.2012, 15:30
Re: Create a vehicle when player joins - by ValentinLaw - 18.08.2012, 15:45
Re: Create a vehicle when player joins - by ValentinLaw - 18.08.2012, 15:49
Re: Create a vehicle when player joins - by RanSEE - 18.08.2012, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)