01.09.2010, 07:05
The specs you want, are very hard and requires alot of work. May not even be possible.
The "easy version" of this, is probably something like this:
I think that will work x3 I just made something up, so don't be surprised if it doesn't work :P
The "easy version" of this, is probably something like this:
pawn Код:
if( !strcmp( cmdtext, "/mboat", true )) //morphing into boat
{
new
Float:x[ 2 ],
Float:y[ 2 ],
Float:z[ 2 ],
Float:a;
new id = GetPlayerVehicleID( playerid );
GetVehicleVelocity( id, x[ 0 ], y[ 0 ], z[ 0 ] );
GetVehiclePos( id, x[ 1 ], y[ 1 ], z[ 1 ] );
GetVehicleZAngle( id, a );
RemovePlayerFromVehicle( playerid );
DestroyVehicle( id );
new morphed = CreateVehicle( boatmodel, x[ 1 ], y[ 1 ], z[ 1 ], a, -1, -1, -1 );
PutPlayerInVehicle( playerid, morphed );
SetVehicleVelocity( morphed, x[ 0 ], y[ 0 ], z[ 0 ] );
return true;
}