GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => Leírások/Útmutatók => SA-MP: Szerverfejlesztés => Függvények => A témát indította: Benceee - 2012. február 12. - 09:17:15

Cím: GetPlayerInterior(playerid)
Írta: Benceee - 2012. február 12. - 09:17:15
GetPlayerInterior funkció:
           Lekérjük egy adott játékos interior ID-jét. Az interior ID-ket itt tekintheted meg.
Paraméterek:
 
(playerid)

 
playerid Az adott játékos azonosítója.
Visszatérés A játékos interior ID-je.
Példa a helyes használatra:
 
public OnPlayerCommandText(playerid,text[])
{
    if(strcmp(cmdtext,\"/int\",true) == 0)
    {
        new string[128];
        format(string, sizeof(string), \"Interior: %i\",GetPlayerInterior(playerid));
        SendClientMessage(playerid, 0xFF8000FF, string);
        return 1;
    }
    return 0;
}