SA-MP Forums Archive
[AJUDA] Sistema de /an (anuncio) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Sistema de /an (anuncio) (/showthread.php?tid=272938)



[AJUDA] Sistema de /an (anuncio) - Niko_Bellik - 30.07.2011

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!


Re: [AJUDA] Sistema de /an (anuncio) - Red Smoke - 30.07.2011

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


Re: [AJUDA] Sistema de /an (anuncio) - wallon - 30.07.2011

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


Re: [AJUDA] Sistema de /an (anuncio) - RockFire - 30.07.2011

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;