From 46c5b3b3bc278ff6885cad5d596c1d7ca4922504 Mon Sep 17 00:00:00 2001 From: Steven Howard Date: Tue, 18 Sep 2018 20:44:47 +0100 Subject: [PATCH] addes GetPlayerPos for slapping the player out of the vehicle "/v bring" --- gamemodes/sf-cnr.pwn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index cb5d6cc..6e44f20 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -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!" ); }