how to spawn with vehicle .
#5

pawn Код:
// Global Variable;
new
    gVehicle[ MAX_PLAYERS ]
;

public OnPlayerSpawn( playerid )
{
    gVehicle[ playerid ] = CreateVehicle( 411, 0.0, 0.0, 0.0,  0.0, 0, 0, 60 ); // 411 - infernus. Change the vehicle/colours etc.
    PutPlayerInVehicle( playerid, gVehicle[ playerid ], 0 );
    SetVehiclePos( gVehicle[ playerid ], x, y, z ); // Change it to where he/she will spawn!
    SetVehicleZAngle( gVehicle[ playerid ], angle ); // Same for this too!
    return 1;
}
Note; you should get the player state and if the old_state was driver and the new_state on foot, you should put the player in the car as a driver, because it will be a bit fail!
Reply


Messages In This Thread
how to spawn with vehicle . - by [INA]Crazy - 04.12.2012, 10:24
Re: how to spawn with vehicle . - by Konstantinos - 04.12.2012, 10:27
Re: how to spawn with vehicle . - by [INA]Crazy - 04.12.2012, 10:28
Re: how to spawn with vehicle . - by dr.lozer - 04.12.2012, 10:31
Re: how to spawn with vehicle . - by Konstantinos - 04.12.2012, 10:34
Re: how to spawn with vehicle . - by [INA]Crazy - 04.12.2012, 10:38
Re : how to spawn with vehicle . - by will-56 - 04.12.2012, 11:06

Forum Jump:


Users browsing this thread: 1 Guest(s)