[Ajuda] Como Criar um Cуdigo
#2

Sei fazer para aparecer no box de texto, como vocк quer que apareзa em baixo do dinheiro й text draw, tem um уtimo tutorial do membro Garfield

https://sampforum.blast.hk/showthread.php?tid=155569


E aqui o esquema pra aparecer no dialуgo de texto.

pawn Код:
#include <a_samp>

#define COR_AZULCLARO   0x33CCFFAA

public OnPlayerConnect(playerid)
{
    new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s entrou no servidor", pname);
    SendClientMessageToAll(COR_AZULCLARO, string);
}

public OnPlayerDisconnect(playerid, reason)
{
    new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    switch(reason)
    {
        case 0: format(string, sizeof(string), "%s saiu do servidor. (Queda de Conexгo)", pname);
        case 1: format(string, sizeof(string), "%s saiu do servidor. (Conta Prуpia)", pname);
        case 2: format(string, sizeof(string), "%s saiu do servidor. (Kickado/Banido)", pname);
    }
    SendClientMessageToAll(COR_AZULCLARO, string);
}
ai й sу vocк adaptar no text draw, se nгo conseguir me contate por E-mail endereзo na minha assinatura, abraзos
Reply


Messages In This Thread
Como Criar um Cуdigo - by focaximubh - 28.08.2012, 00:38
Re: Como Criar um Cуdigo - by Joker_OutLock - 28.08.2012, 00:55
Re: Como Criar um Cуdigo - by focaximubh - 28.08.2012, 00:58
Re: Como Criar um Cуdigo - by Joker_OutLock - 28.08.2012, 01:06
Re: Como Criar um Cуdigo - by focaximubh - 28.08.2012, 01:22
Re: Como Criar um Cуdigo - by Joker_OutLock - 28.08.2012, 01:33
Re: Como Criar um Cуdigo - by Spectro_BR - 28.08.2012, 01:42
Re: Como Criar um Cуdigo - by focaximubh - 28.08.2012, 01:51
Re: Como Criar um Cуdigo - by Joker_OutLock - 28.08.2012, 02:03
Re: Como Criar um Cуdigo - by Maklister - 28.08.2012, 02:26

Forum Jump:


Users browsing this thread: 1 Guest(s)