[Pedido] Ann com TextDraw
#8

Quote:
Originally Posted by delete
Посмотреть сообщение
onplayercomm...

pawn Код:
new cmd[128], string[128], tmp[128], idx;
    cmd = strtok(cmdtext, idx);
pawn Код:
if(strcmp(cmd, "/cnn", true) == 0)
    if(PlayerInfo[playerid][Level] >= 2) {

        new length = strlen(cmdtext);
        while ((idx < length) && (cmdtext[idx] <= ' '))
        {
            idx++;
        }
        new offset = idx;
        new result[70];
        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
        {
            result[idx - offset] = cmdtext[idx];
            idx++;
        }
        result[idx - offset] = EOS;
        if(!strlen(result)) return SendClientMessage(playerid,-1,"Use: /cnn [mensagem]");
        if(strlen(result) > 40) return SendClientMessage(playerid,-1,"O mбximo de caracteres permitido й 40");
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,sizeof(name));
        format(string,sizeof(string),"Admin %s: ~y~%s", name, result);
        textdrawtoall = TextDrawCreate(325.000000, 394.000000, string);
        TextDrawAlignment(textdrawtoall, 2);
        TextDrawBackgroundColor(textdrawtoall, 255);
        TextDrawFont(textdrawtoall, 1);
        TextDrawLetterSize(textdrawtoall, 0.399999, 3.199999);
        TextDrawColor(textdrawtoall, 16711935);
        TextDrawSetOutline(textdrawtoall, 1);
        TextDrawSetProportional(textdrawtoall, 1);
        for(new i; i < MAX_PLAYERS; i ++)
        {
            TextDrawShowForPlayer(i, textdrawtoall);
        }
        SetTimer("DestruirTextDrawToAll",5000, false);
        return 1;
    }



public DestruirTextDrawToAll()
{
    TextDrawHideForAll(textdrawtoall);
   
    return 1;
}
code por: Humildade Forever
Sim isso funfa perfeitamente, uso no meu server de boa,
aliбs foi eu que fiz o topico pedindo isso kkkkkkk
________________________
QUER UM GAMEMODE? UM FILTERSCRIPT? UM MOD? AJUDA?
VISITE-NOS: http://www.sampknd.blogspot.com.br/


QUER UM HOST DE QUALIDADE E NГO ACHA?
AQUI ESTБ: http://www.hosterbrasil.com/


Reply


Messages In This Thread
[Pedido] Ann com TextDraw - by Lucas_HenryK - 10.04.2012, 23:10
Re: [Pedido] Ann com TextDraw - by Ricop522 - 10.04.2012, 23:22
Re: [Pedido] Ann com TextDraw - by Lucas_HenryK - 10.04.2012, 23:27
Re: [Pedido] Ann com TextDraw - by Ricop522 - 10.04.2012, 23:47
Re: [Pedido] Ann com TextDraw - by Lucas_HenryK - 10.04.2012, 23:50
Re: [Pedido] Ann com TextDraw - by Delete_ - 10.04.2012, 23:52
Re: [Pedido] Ann com TextDraw - by Ricop522 - 10.04.2012, 23:52
Re: [Pedido] Ann com TextDraw - by Edu33 - 11.04.2012, 00:45
Re: [Pedido] Ann com TextDraw - by Lucas_HenryK - 11.04.2012, 01:04
Re: [Pedido] Ann com TextDraw - by GReeN_WOoD - 11.04.2012, 01:27

Forum Jump:


Users browsing this thread: 3 Guest(s)