[PEDIDO]/skin /pintar textdraws
#10

Fiz pra vocк, isto deve resolver o seu problema:

pawn Код:
if(strcmp(cmd, "/skin", true) == 0)
    {
        new foco[50];
        foco = strtok(cmdtext, idx);
        if(!strlen(foco)) return SendClientMessage(playerid, 0xFFFFFFAA, "Digite: /skin [ id ]");
        SetPlayerSkin(playerid,strval(foco));
        return 1;
    }
   
    if(strcmp(cmd, "/pintar", true) == 0)
    {
        new foco[50], x, y[50], z[150];
        foco = strtok(cmdtext, idx);
        if(!strlen(foco)) return SendClientMessage(playerid, 0xFFFFFFAA, "Digite: /pintar [ id do TextDraw ] [ COR+TEXTO (Exemplo: ~r~Oi, sou um TextDraw) ]");
        x = strval(foco);
        foco = strtok(cmdtext, idx);
        if(!strlen(foco)) return SendClientMessage(playerid, 0xFFFFFFAA, "Digite: /pintar [ id do TextDraw ] [ COR+TEXTO (Exemplo: ~r~Oi, sou um TextDraw) ]");
        format(y, sizeof(y), foco);
        TextDrawHideForPlayer(playerid, x);
        TextDrawSetString(x, y);
        TextDrawShowForPlayer(playerid, x);
        return 1;
    }

Espero ter ajudado
Reply


Messages In This Thread
[PEDIDO]/skin /pintar textdraws - by felipewireless - 19.01.2011, 20:45
Re: [PEDIDO]/skin /pintar textdraws - by [Ips]Guh - 19.01.2011, 21:12
Re: [PEDIDO]/skin /pintar textdraws - by felipewireless - 19.01.2011, 21:37
Re: [PEDIDO]/skin /pintar textdraws - by Ricop522 - 19.01.2011, 22:18
Re: [PEDIDO]/skin /pintar textdraws - by [FeK]Knife - 19.01.2011, 22:20
Re: [PEDIDO]/skin /pintar textdraws - by Magnus' - 19.01.2011, 23:47
Re: [PEDIDO]/skin /pintar textdraws - by felipewireless - 20.01.2011, 01:25
Re: [PEDIDO]/skin /pintar textdraws - by Ricop522 - 20.01.2011, 01:58
Re: [PEDIDO]/skin /pintar textdraws - by felipewireless - 20.01.2011, 15:00
Re: [PEDIDO]/skin /pintar textdraws - by rjjj - 20.01.2011, 15:27

Forum Jump:


Users browsing this thread: 1 Guest(s)