IsVehicleStreamedIn FR
From SA-MP Wiki
(Difference between revisions)
Revision as of 03:55, 5 January 2013 Connor Mead (Talk | contribs) ← Previous diff |
Revision as of 19:04, 6 January 2013 Connor Mead (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
+ | {{ScriptingFR}} | ||
+ | {{Title}} | ||
+ | |||
+ | {{0.3AddedFR|fonction|}} | ||
+ | |||
+ | {{Description|Checks if a vehicle is streamed in for a player.}} | ||
+ | |||
+ | {{ParametersFR|vehicleid, forplayerid}} | ||
+ | {{Param|vehicleid|L'ID du véhicule.}} | ||
+ | {{Param|forplayerid|L'ID du joueur.}} | ||
+ | |||
+ | {{ReturnsFR|'''1''' if the vehicle is streamed in, otherwise '''0'''.}} | ||
+ | |||
+ | <pawn> | ||
+ | new streamed_in_count = 0; | ||
+ | new string[100]; | ||
+ | |||
+ | for(new v = 1; v < MAX_VEHICLES; v++) | ||
+ | { | ||
+ | if(IsVehicleStreamedIn(v, playerid)) | ||
+ | { | ||
+ | streamed_in_count ++; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | format(string, 100, "You currently have %d vehicles streamed in to your game.", streamed_in_count); | ||
+ | SendClientMessage(playerid, COLOUR_WHITE, string); | ||
+ | </pawn> | ||
+ | |||
+ | {{RelatedFunctionsFR}} | ||
+ | {{IsPlayerStreamedIn}} | ||
+ | |||
+ | {{RelatedCallbacksFunctionFR}} | ||
+ | {{OnVehicleStreamIn}} | ||
+ | {{OnVehicleStreamOut}} | ||
+ | {{OnPlayerStreamIn}} | ||
+ | {{OnPlayerStreamOut}} | ||
+ | |||
[[Category:Scripting Functions FR]] | [[Category:Scripting Functions FR]] |
Revision as of 19:04, 6 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:
Checks if a vehicle is streamed in for a player.
(vehicleid, forplayerid)
vehicleid | L'ID du véhicule. |
forplayerid | L'ID du joueur. |
Retourne:
1 if the vehicle is streamed in, otherwise 0.
new streamed_in_count = 0; new string[100]; for(new v = 1; v < MAX_VEHICLES; v++) { if(IsVehicleStreamedIn(v, playerid)) { streamed_in_count ++; } } format(string, 100, "You currently have %d vehicles streamed in to your game.", streamed_in_count); SendClientMessage(playerid, COLOUR_WHITE, string);
Fonctions Relatives
Les fonctions suivantes peuvent être utiles car elles sont indirectement ou directement liées a cette fonction.
- IsPlayerStreamedIn: Checks if a player is streamed in for another player.
Callbacks Relatives
Les Callbacks suivantes peuvent être utiles car elles sont indirectement ou directement liées a cette fonction.
- OnVehicleStreamIn: Called when a vehicle streams in for a player.
- OnVehicleStreamOut: Called when a vehicle streams out for a player.
- OnPlayerStreamIn: Called when a player streams in for another player.
- OnPlayerStreamOut: Called when a player streams out for another player.