GangZoneShowForAll FR

From SA-MP Wiki

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

← Previous diff
Current revision
Connor Mead (Talk | contribs)

Line 1: Line 1:
 +{{ScriptingFR}}
 +
 +{{Description|Affiche une zone de gang avec la couleur désirée pour tous les joueurs.}}
 +
 +{{ParametersFR|zone, color}}
 +{{Param|zone|L'IDde la zone de gang (retournée via [[GangZoneCreate_FR|GangZoneCreate]]).}}
 +{{Param|color|La couleur de la zone de gang.}}
 +
 +{{Return|'''1''' si la zone de gang a bien été affichée, sinon '''0''' (non-existante).}}
 +
 +<pawn>
 +new gangzone;
 +
 +public OnGameModeInit()
 +{
 + gangzone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319);
 + return 1;
 +}
 +
 +public OnPlayerSpawn(playerid)
 +{
 + if(IsPlayerAdmin(playerid)) GangZoneShowForAll(gangzone,COLOR_RED);
 + return 1;
 +}
 +
 +</pawn>
 +
 +{{RelatedFunctionsFR}}
 +{{GangZoneCreate_FR}}
 +{{GangZoneDestroy_FR}}
 +{{GangZoneShowForPlayer_FR}}
 +{{GangZoneHideForPlayer_FR}}
 +{{GangZoneHideForAll_FR}}
 +{{GangZoneFlashForPlayer_FR}}
 +{{GangZoneFlashForAll_FR}}
 +{{GangZoneStopFlashForPlayer_FR}}
 +{{GangZoneStopFlashForAll_FR}}
 +
[[Category:Scripting Functions FR]] [[Category:Scripting Functions FR]]
 +
 +[[en:GangZoneShowForAll]]

Current revision



Description:

Affiche une zone de gang avec la couleur désirée pour tous les joueurs.


Paramètres:
(zone, color)
zoneL'IDde la zone de gang (retournée via GangZoneCreate).
colorLa couleur de la zone de gang.


Return Values:

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


new gangzone;
 
public OnGameModeInit()
{
    gangzone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319);
    return 1;
}
 
public OnPlayerSpawn(playerid)
{
    if(IsPlayerAdmin(playerid)) GangZoneShowForAll(gangzone,COLOR_RED);
    return 1;
}

Fonctions Relatives

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

In other languages