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

@ -16115,8 +16115,9 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
foreach( new i : Player )
{
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 ) );
SendServerMessage( i, "You have been thrown out of the vehicle as the owner has teleported it away!" );
}