24.03.2012, 23:28
Add the parameter seatid in the callback OnPlayerEnterVehicle. That's would be great.
AttachPlayerToVehicle(playerid, vehicleid, Float:xoffset, Float:yoffset, Float:zoffset, Float:zangle, bool:enableweapons = true, bool:allowcamera = false, bool:forcesync = true);
pawn Код:
allowcamera to freely move your camera around, or set to the zangle by default forcesync for animations S: |
AttachVehicleToObject( vehicleid, objectid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ ); AttachVehicleToPlayerObject( playerid, vehicleid, playerobjectid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ ); IsVehicleAttachedToObject( vehicleid, objectid ); IsVehicleAttachedToPlayerObject( playerid, vehicleid, playerobjectid );
AttachPlayerToVehicle
AttachVehicleToVehicle
Код:
ShowVehicleOnMap(true/false); for SPECIAL_ACTION_USECELLPHONE if use SPECIAL_ACTION_USECELLPHONE show to player hud weapon image cellphone from file gta3.img -> cellphone.txt - > cellphoneicon |
native DisableHeadMove(playerid, bool:set);
native DisableHeadMovements(bool:set);