[AJUDA] Sistema de /an (anuncio)
#1

Jб procurei no forum e nгo achei nada, se alguem poder me ajudar ai a fazer um sistema de anuncio, vlw

O comando para anunciar seria /an e sу nivel 3+ poderia anunciar!
Reply
#2

Isso depende muito do GM utilizado, pois as variбveis (como do level e telefone) podem ser diferentes. Qual estб utilizando?
Reply
#3

pawn Код:
#define COLOR_WHITE 0xFFFFFFAA //topo
    if (strcmp("/ann", cmdtext, true, 10) == 0)
    {
    new dir[256];
    new idx;
    new string[256];
    dir = strtok(cmdtext, idx);
    if(!strlen(dir)) {
        SendClientMessage(playerid, COLOR_WHITE, "Uso: /ann [Text]");
        return 1;
    }
    format(string, sizeof(string), "~g~%s",dir);
    format(string, sizeof(string), "~n~~n~n~~n~~w~%s",dir);
    GameTextForAll(string, 6000, 3);
        return 1;
    }
Deve funfar, n testei (y
Reply
#4

PHP код:
if(!strcmp(cmdtext,"/ann",true))
{
    if(!
strlen(cmdtext[6])) return SendClientMessage(playerid,-1"[-] /ann [texto]");
    new 
sStr[128];
    
GetPlayerName(playerid,sStr,sizeof(sStr));
    
format(stringsizeof(string), "~y~%s: ~w~%s",sStr,cmdtext[6]);
    
GameTextForAll(sStr,6000,3);
    return 
true;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)