GangZoneHideForPlayer 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|Cache une zone de gang pour un joueur.}}
 +
 +{{ParametersFR|playerid, zone}}
 +{{Param|playerid|L'ID du joueur à qui on va cacher la zone de gang.}}
 +{{Param|zone|L'ID de la zone de gang à cacher.}}
 +
 +{{NoReturnFR}}
 +
 +<pawn>
 +new gangzone;
 +
 +public OnGameModeInit()
 +{
 + gangzone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319);
 + return 1;
 +}
 +
 +public OnPlayerSpawn(playerid)
 +{
 + GangZoneShowForPlayer(playerid, gangzone, 0xFF0000FF);
 + return 1;
 +}
 +
 +public OnPlayerDeath(playerid, killerid, reason)
 +{
 + GangZoneHideForPlayer(playerid,gangzone);
 + return 1;
 +}
 +</pawn>
 +
 +{{RelatedFunctionsFR}}
 +{{GangZoneCreate_FR}}
 +{{GangZoneDestroy_FR}}
 +{{GangZoneShowForPlayer_FR}}
 +{{GangZoneShowForAll_FR}}
 +{{GangZoneHideForAll_FR}}
 +{{GangZoneFlashForPlayer_FR}}
 +{{GangZoneFlashForAll_FR}}
 +{{GangZoneStopFlashForPlayer_FR}}
 +{{GangZoneStopFlashForAll_FR}}
 +
[[Category:Scripting Functions FR]] [[Category:Scripting Functions FR]]
 +
 +[[en:GangZoneHideForPlayer]]

Current revision



Description:

Cache une zone de gang pour un joueur.


Paramètres:
(playerid, zone)
playeridL'ID du joueur à qui on va cacher la zone de gang.
zoneL'ID de la zone de gang à cacher.


RetourneCette fonction ne retourne pas de valeur spécifique.


new gangzone;
 
public OnGameModeInit()
{
    gangzone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319);
    return 1;
}
 
public OnPlayerSpawn(playerid)
{
    GangZoneShowForPlayer(playerid, gangzone, 0xFF0000FF);
    return 1;
}
 
public OnPlayerDeath(playerid, killerid, reason)
{
    GangZoneHideForPlayer(playerid,gangzone);
    return 1;
}

Fonctions Relatives

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

In other languages