addes GetPlayerPos for slapping the player out of the vehicle "/v bring"
This commit is contained in:
parent
c13bfb4716
commit
46c5b3b3bc
@ -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!" );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user