SA-MP Forums Archive
[Ajuda] Game text - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Game text (/showthread.php?tid=422852)



Game text - vitorvlv - 15.03.2013

pawn Код:
if(pInfo[playerid][adm] >= 1)
        {
        format(String,sizeof(String),"adm %s online",Nome);
        GameTextForAll(String,3000,2);
        }
Coloquei no onplayerconnect,sу que nгo mostra o gametext :C


Re: Game text - Jefferson Santos - 15.03.2013

Tem que colocar em OnPlayerLogin
Tente com o seu.
Qualquer coisa, utilize esse que fiz.

pawn Код:
if(PlayerInfo[playerid][adm] >= 1)
    {
        new Nome[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Nome, sizeof(Nome));
        format(gstring, sizeof(gstring), "~w~~y~%s: ~g~Online", Nome);
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i)) GameTextForPlayer(i, gstring , 5000, 1);
        }
    }