addes GetPlayerPos for slapping the player out of the vehicle "/v bring"

This commit is contained in:
Steven Howard 2018-09-18 20:44:47 +01:00
parent c13bfb4716
commit 46c5b3b3bc

View File

@ -16117,6 +16117,7 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{ {
if( GetPlayerVehicleID( i ) == g_vehicleData[ playerid ] [ id ] [ E_VEHICLE_ID ] ) if( GetPlayerVehicleID( i ) == g_vehicleData[ playerid ] [ id ] [ E_VEHICLE_ID ] )
{ {
GetPlayerPos( i, X, Y, Z );
SetPlayerPos( i, X, Y, ( Z + 0.5 ) ); SetPlayerPos( i, X, Y, ( Z + 0.5 ) );
SendServerMessage( i, "You have been thrown out of the vehicle as the owner has teleported it away!" ); SendServerMessage( i, "You have been thrown out of the vehicle as the owner has teleported it away!" );
} }