GetPlayerInterior FR

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 16:37, 3 February 2014
Connor Mead (Talk | contribs)

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

Line 25: Line 25:
{{GetPlayerVirtualWorld_FR}} {{GetPlayerVirtualWorld_FR}}
-[[Category:Scripting FunctionsFR]]+[[Category:Scripting Functions FR]]
[[en:GetPlayerInterior]] [[en:GetPlayerInterior]]
[[ru:GetPlayerInterior]] [[ru:GetPlayerInterior]]

Current revision



Description:

Récupère l'intérieur courant d'un joueur. Une liste des intérieurs courants sont disponibles sur cette page.


Paramètres:
(playerid)
playeridL'ID du joueur dont on veut récupérer l'ID de l'intérieur.


Retourne:

L'ID de l'intérieur dans lequel le joueur est actuellement.


public OnPlayerCommandText(playerid,text[])
{
    if(strcmp(cmdtext,"/int",true) == 0)
    {
        new string[128];
        format(string, sizeof(string), "Vous êtes dans l'intérieur %i",GetPlayerInterior(playerid));
        SendClientMessage(playerid, 0xFF8000FF, string);
        return 1;
    }
    return 0;
}

Fonctions Relatives

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

In other languages