13.01.2014, 14:44
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;
}