[Ajuda] Ajuda Aki
#5

Quote:
Originally Posted by HardWar
Посмотреть сообщение
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(PlayerInfo[playerid][pSocio] == 4) //Verifica se й socio diamante
    {
        new Frase[50], Nome[25]; //Cria as variaveis para armazenar a string e o nome
        GetPlayerName(playerid, Nome, 25); //Pega o nome do player, armazenando na variavel Nome
        format(Frase, sizeof(Frase), "socio diamante:~n~%s online", Nome); //Formata a string com o Nome
        GameTextForAll(Frase, 3000, 3); //Manda a mensagem para todos
    }
    return 1;
}
.
Ou em OnPlayerConnect.
Se for usar TextDraw mude a funзгo


Pawn Code Base:
pawn Код:
new Text:txd; //topo do gamemode

public OnGameModeInit( )
{
    txd= TextDrawCreate(150,120, "_"); //Verifique as cordenadas
    return true;
}

public OnPlayerConnect( playerid )
{
    new XX[ 60 ], name[ MAX_PLAYER_NAME + 1 ];
    if(PlayerInfo[playerid][pSocio] >= 4)
    {
    GetPlayerName( playerid, name, MAX_PLAYER_NAME +1 );
    format( XX, sizeof( XX ), "%s, Socio conectado", name );
    TextDrawSetString( txd, XX );  
    TextDrawShowForAll( txd );
    return true;
}
Reply


Messages In This Thread
Ajuda Aki - by lucasbjs0 - 13.01.2013, 14:03
Re: Ajuda Aki - by Pietrotm2012 - 13.01.2013, 14:05
Re: Ajuda Aki - by lucasbjs0 - 13.01.2013, 14:12
Re: Ajuda Aki - by HardWar - 13.01.2013, 14:39
Re: Ajuda Aki - by Schocc - 13.01.2013, 14:51
Re: Ajuda Aki - by lucasbjs0 - 13.01.2013, 15:16
Re: Ajuda Aki - by HardWar - 13.01.2013, 15:25
Re: Ajuda Aki - by lucasbjs0 - 13.01.2013, 15:31
Re: Ajuda Aki - by lucasbjs0 - 13.01.2013, 15:49
Re: Ajuda Aki - by Lуs - 13.01.2013, 15:57

Forum Jump:


Users browsing this thread: 3 Guest(s)