13.01.2014, 13:40
Estou tentando desenvolver uma CNN em TextDraw, Obs: Eu ja procurei no SEARCH,
Codigo:
Codigo:
pawn Код:
//CNN
CNN = TextDrawCreate(184.5 ,351 , "cnn");
TextDrawFont(CNN , 1);
TextDrawLetterSize(CNN,0.2999, 1.4);
TextDrawColor(CNN , 0xffffffFF);
TextDrawSetOutline(CNN , false);
TextDrawSetProportional(CNN , true);
TextDrawSetShadow(CNN , 1);
pawn Код:
if(strcmp(cmdtext,"/cnn",true))
{
if(IsPlayerAdmin(playerid)){
new str[256],nome[MAX_PLAYER_NAME];
GetPlayerName(playerid,nome,sizeof(nome));
format(str, sizeof(str), "~y~%s: ~w~%s",nome,cmdtext[5]);
TextDrawShowForAll(CNN);
SetTimer("apagarcnn",5000,false);
}else{
SendClientMessage(playerid,-1,"[ERRO]: Vocк nгo tem permissгo");
}
return 1;
}
Obs: ao digitar "/cnn lelek" apareзe na tela "cnn"