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/