Posts: 1,241
Threads: 304
Joined: May 2012
Reputation:
0
Title says it all.
More info: So I have decide to put Tram in my server, I do put coordinates in nearest Tram rails in San Fiero. and it automatically fits the rails. Now after trying to use F or Enter it doesn't work.
Why?? It's a vehicle right?
Posts: 1,274
Threads: 54
Joined: Jul 2012
I've never had this issue, do you have it as like,
'AddStaticVehicleEx' ?
Posts: 1,241
Threads: 304
Joined: May 2012
Reputation:
0
Still can't enter what's the problem?
Posts: 535
Threads: 36
Joined: Oct 2009
Reputation:
0
OnPlayerKeyStateChange
if( newkeys & KEY_JOIN ) {
new Float:vx, Float:vy, Float:vz;
for( new x = 0; x < MAX_VEHICLES; x ++ ) {
if(GetVehicleModel(x) == tram_models) {
GetVehiclePos( x, vx , vy, vz );
if( IsPlayerInRangeOfPoint( playerid , 1.5 , vx, vy, vz )) {
PutPlayerInVehicle( playerid , x, as_driver );
}
}
}
If he press "passenger key" do the same change only seat id.. mb with a for to check all seats and if one is avaitable put player here
sorry for english, i write everything (code and this text) fast because i had to go