[Ajuda] /cnn em TextDraw
#2

testa isso:

pawn Код:
if(strcmp(cmdtext,"/cnn",true))
{
    if(!IsPlayerAdmin(playerid))
        return SendClientMessage(playerid,-1,"[ERRO]: Vocк nгo tem permissгo");
    new cnntextpt[80], str[128];
    if(sscanf(cmdtext, "s[5]s[80]", cmdtext, cnntextpt))
        return SendClientMessage(playerid, -1, "uso: /cnn [texto]");
    GetPlayerName(playerid,str,sizeof(str));
    format(str, sizeof(str), "~y~%s: ~w~%s", str, cmdtext[5]);
    TextDrawSetString(CNN, str);  
    TextDrawShowForAll(CNN);
    SetTimer("apagarcnn",5000,false);
    return 1;
}
Reply


Messages In This Thread
/cnn em TextDraw - by TorresPutado - 13.01.2014, 13:40
Re: /cnn em TextDraw - by PT - 13.01.2014, 14:44
Respuesta: Re: /cnn em TextDraw - by TorresPutado - 13.01.2014, 14:58
Re: /cnn em TextDraw - by PT - 13.01.2014, 15:01
Respuesta: Re: /cnn em TextDraw - by TorresPutado - 13.01.2014, 15:31
Re: /cnn em TextDraw - by XxSemNickxX - 13.01.2014, 17:45
Respuesta: /cnn em TextDraw - by TorresPutado - 13.01.2014, 18:40

Forum Jump:


Users browsing this thread: 1 Guest(s)