OnPlayerExitVehicle: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This is called when a player exits any Vehicle. == Syntax == onPlayerExitVehicle( player, vehicle ) == Example == <source lang="squirrel"> function onPlayerExitVehicle( pla...")
 
No edit summary
Line 1: Line 1:
This is called when a player exits any Vehicle.
This event is called when a player exits a Vehicle.


== Syntax ==
== Syntax ==
onPlayerExitVehicle( player, vehicle )
<pre>onPlayerExitVehicle( player, vehicle )</pre>
 
== Arguments ==
* ''CPlayer'' '''player''' - The player instance, or, the one who is exiting the vehicle.
* ''CVehicle'' '''player''' - The vehicle instance, or, the vehicle which is being exited by the player.


== Example ==  
== Example ==  
Line 8: Line 12:
function onPlayerExitVehicle( player, vehicle )
function onPlayerExitVehicle( player, vehicle )
{
{
ClientMessage("You Have Exited "+GetVehicleNameFromModel( vehicle.Model )+".",player,0,205,0);
Message( player.Name + " has exited " + GetVehicleNameFromModel( vehicle.Model ) + "." );
}
}
</source>
</source>

Revision as of 13:48, 9 March 2016

This event is called when a player exits a Vehicle.

Syntax

onPlayerExitVehicle( player, vehicle )

Arguments

  • CPlayer player - The player instance, or, the one who is exiting the vehicle.
  • CVehicle player - The vehicle instance, or, the vehicle which is being exited by the player.

Example

function onPlayerExitVehicle( player, vehicle )
{
Message( player.Name + " has exited " + GetVehicleNameFromModel( vehicle.Model ) + "." );
}