addes GetPlayerPos for slapping the player out of the vehicle "/v bring"
This commit is contained in:
parent
c13bfb4716
commit
46c5b3b3bc
@ -16115,8 +16115,9 @@ public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
|
|||||||
|
|
||||||
foreach( new i : Player )
|
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 ) );
|
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