GetPlayerSurfingVehicleID FR

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 03:52, 5 January 2013
Connor Mead (Talk | contribs)

← Previous diff
Revision as of 17:54, 5 January 2013
Connor Mead (Talk | contribs)

Next diff →
Line 1: Line 1:
 +{{ScriptingFR}}
 +{{Title}}
 +
 +{{0.3Added|function|}}
 +
 +{{Description|Récupère l'ID du véhicule sur lequel surf un joueur}}
 +
 +{{Parameters|playerid}}
 +{{Param|playerid|The ID of the player you want to know the surfing vehicle ID of.}}
 +
 +{{Returns|The ID of the vehicle that the player is surfing, or INVALID_VEHICLE_ID if they are not surfing or the vehicle has no driver.}}
 +
 +<pawn>
 +new surf = GetPlayerSurfingVehicleID(playerid);
 +if(surf == INVALID_VEHICLE_ID) SendClientMessage(playerid, COLOR_RED, "You are not surfing.");
 +</pawn>
 +
 +{{RelatedFunctionsFR}}
 +*[[GetPlayerVehicleID_FR|GetPlayerVehicleID:]] Récupèrer l'id d'un véhicule dans lequel un joueur est
 +*[[GetPlayerVehicleSeat_FR|GetPlayerVehicleSeat:]] Récupère la place d'un joueur dans une voiture
 +
[[Category:Scripting Functions FR]] [[Category:Scripting Functions FR]]

Revision as of 17:54, 5 January 2013




GetPlayerSurfingVehicleID FR was added in SA-MP 0.3a This function was added in SA-MP 0.3a and will not work in earlier versions!


Description:

Récupère l'ID du véhicule sur lequel surf un joueur


Parameters:
(playerid)
playeridThe ID of the player you want to know the surfing vehicle ID of.


Return Values:

The ID of the vehicle that the player is surfing, or INVALID_VEHICLE_ID if they are not surfing or the vehicle has no driver.


new surf = GetPlayerSurfingVehicleID(playerid);
if(surf == INVALID_VEHICLE_ID) SendClientMessage(playerid, COLOR_RED, "You are not surfing.");

Fonctions Relatives

Les fonctions suivantes peuvent être utiles car elles sont indirectement ou directement liées a cette fonction.