GangZoneShowForPlayer FR

From SA-MP Wiki

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

← Previous diff
Revision as of 22:05, 4 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 1: Line 1:
 +{{ScriptingFR}}
 +
 +{{Description|Affiche une zone de gang pour un joueur. Doit être crée via [[GangZoneCreate_FR|GangZoneCreate]] en premier.}}
 +
 +{{ParametersFR|playerid, zone, color}}
 +{{Param|playerid|L'ID du joueur à qui vous voulez afficher la zone de gang.}}
 +{{Param|zone|L'ID de la zone de gang à afficher pour le joueur. Retournée via [[GangZoneCreate_FR|GangZoneCreate]]}}
 +{{Param|color|La couleur de la zone de gang. Transparence Alpha supportée.}}
 +
 +{{ReturnFR|'''1''' si la zone de gang a bien été affichée, sinon '''0''' (non existante).}}
 +
 +<pawn>
 +new Zone;
 +
 +public OnGameModeInit()
 +{
 + Zone = GangZoneCreate(1082.962, -2787.229, 2942.549, -1859.51);
 + return 1;
 +}
 +
 +public OnPlayerSpawn(playerid)
 +{
 + GangZoneShowForPlayer(playerid, Zone, 0xFFFF0096);
 + return 1;
 +}
 +</pawn>
 +
 +{{RelatedFunctions}FR}
 +{{GangZoneCreate_FR}}
 +{{GangZoneDestroy_FR}}
 +{{GangZoneShowForAll_FR}}
 +{{GangZoneHideForPlayer_FR}}
 +{{GangZoneHideForAll_FR}}
 +{{GangZoneFlashForPlayer_FR}}
 +{{GangZoneFlashForAll_FR}}
 +{{GangZoneStopFlashForPlayer_FR}}
 +{{GangZoneStopFlashForAll_FR}}
 +
[[Category:Scripting Functions FR]] [[Category:Scripting Functions FR]]
 +
 +[[en:GangZoneShowForPlayer]]
 +[[es:GangZoneShowForPlayer]]

Revision as of 22:05, 4 February 2014



Description:

Affiche une zone de gang pour un joueur. Doit être crée via GangZoneCreate en premier.


Paramètres:
(playerid, zone, color)
playeridL'ID du joueur à qui vous voulez afficher la zone de gang.
zoneL'ID de la zone de gang à afficher pour le joueur. Retournée via GangZoneCreate
colorLa couleur de la zone de gang. Transparence Alpha supportée.


Retourne:

1 si la zone de gang a bien été affichée, sinon 0 (non existante).


new Zone;
 
public OnGameModeInit()
{
    Zone = GangZoneCreate(1082.962, -2787.229, 2942.549, -1859.51);
    return 1;
}
 
public OnPlayerSpawn(playerid)
{
    GangZoneShowForPlayer(playerid, Zone, 0xFFFF0096);
    return 1;
}

{{RelatedFunctions}FR}

In other languages