GetPlayerSurfingVehicleID FR
From SA-MP Wiki
(Difference between revisions)
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
Page d'Accueil | Les Fonctions | Les Callbacks | Les bases du Scripting | Plugins de Serveur | Tutoriaux
Ne prenez pas en compte les FR dans les noms
Description:
Récupère l'ID du véhicule sur lequel surf un joueur
(playerid)
playerid | The 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.
- GetPlayerVehicleID: Récupèrer l'id d'un véhicule dans lequel un joueur est
- GetPlayerVehicleSeat: Récupère la place d'un joueur dans une voiture