IsVehicleStreamedIn FR

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
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




Cette fonction a été ajoutée dans SA-MP 0.3a et ne fonctionne pas dans les versions antérieures


Description:

Checks if a vehicle is streamed in for a player.


Paramètres:
(vehicleid, forplayerid)
vehicleidL'ID du véhicule.
forplayeridL'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.


Callbacks Relatives

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