Spawn player in a vehicle
#5

Thanks but i got a little problem here..

In my server you spawn trapped in a sphere, To get in game you must choose a team by typing the command..
When they spawn (not in a team) i want them to spawn on a bike, But when they select a team i want the bike to be destroyed.. Would the script look a little like this?

pawn Код:
public OnGameModeInit()
{  
CreateVehicle(522,2324, 1283, 98, 1, 146, 146, 60);

public OnPlayerSpawn()
{
PutPlayerInVehcile(playerid,526,0);


// Loop to check if players team = 0 if it is <= to 1 then it will destroy the vehicle?
for (pTeam0; i<=1; i++)
{
    new currentveh;
        currentveh = GetPlayerVehicleID(playerid);
        DestroyVehicle(currentveh);
}
Reply


Messages In This Thread
Spawn player in a vehicle - by Lz - 28.11.2012, 20:10
Re: Spawn player in a vehicle - by niels44 - 28.11.2012, 20:15
Re: Spawn player in a vehicle - by Lz - 28.11.2012, 20:17
Re: Spawn player in a vehicle - by CrazyChoco - 28.11.2012, 20:22
Re: Spawn player in a vehicle - by Lz - 28.11.2012, 20:34
Re: Spawn player in a vehicle - by maramizo - 28.11.2012, 21:28

Forum Jump:


Users browsing this thread: 2 Guest(s)