SA-MP Forums Archive
[FilterScript] Anti-God (/god) por DraKoN - 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)
+----- Forum: Lançamentos/Releases (https://sampforum.blast.hk/forumdisplay.php?fid=56)
+----- Thread: [FilterScript] Anti-God (/god) por DraKoN (/showthread.php?tid=170341)



Anti-God (/god) por DraKoN - ipsBruno - 22.08.2010

Funзгo
Й um sistema no qual o jogador de qualquer tipo digita "/god[id]' vai fazer um teste em que o jogador se o jogador nгo perde a sua vida como ele acusa God Mod, tem sido testado vбrias vezes e provavelmente nunca falha ou tem mau funcionamento .. Caso nгo for God Mata o Player que Reportou

Cуdigo no Fуrum:

pawn Код:
#include <a_samp>
#include <zcmd>

#define NARANJA 0xF97804FF

new Float:GODX;
new Float:GODY;
new Float:GODZ;
new Float:ComandoGod;

CMD:god(playerid, params[])
{

    if(gettime() - GetPVar(playerid, #comandoGd) < 4) {
        return false;
    }
    SetPVar(playerid, #comandoGd,  gettime());
    new otherid = strval(params);

    if(GetDistanceBetweenPlayers(playerid, otherid) > 20) {
        return SendClientMessage(playerid,NARANJA, "[ERRO]: Jogador Longe de Mais (20mt)");
    }

    if( GetPlayerInterior(otherid) ) {
        return SendClientMessage(playerid,NARANJA,"[ERRO]: Jogaddor em interior");
    }

    if(!IsPlayerConnected(otherid)) return SendClientMessage(playerid, NARANJA, "[ERRO]: Jogador Off");
    if(otherid == playerid) return SendClientMessage(playerid, NARANJA, "[ERRO]:Reportando a Si Mesmo?");

    GetPlayerHealth(otherid, ComandoGod);
    SetPlayerHealth(otherid, 80);
    GetPlayerPos(otherid, GODX, GODY, GODZ);
    SetPlayerPos(otherid, GODX, GODY, GODZ+20);

    SetTimerEx("CheckGod", 2000, false, "ii", playerid, otherid);
    SendClientMessage(playerid, NARANJA, "[INFO]: Aguarde 2 Segundos");
    TogglePlayerControllable(playerid, 0);
    return true;
}


//By: Slick
GetDistanceBetweenPlayers(playerid,playerid2)
{
    new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
    new Float:dis;
    GetPlayerPos(playerid,x1,y1,z1);
    GetPlayerPos(playerid2,x2,y2,z2);
    dis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
    return floatround(dis);
}


CheckGod(health1,playerid);
public CheckGod(health1,playerid)
{
    static
        string[62+MAX_PLAYER_NAME+MAX_PLAYER_NAME]
        ;

    static Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);

    if(z != GODZ) return 0;

    static Float:health;
    GetPlayerHealth(playerid,health);

    if(health >= 80) {

        static name2[MAX_PLAYER_NAME];
        GetPlayerName(health1, name2, sizeof(name2));

        static name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));

        format(string, sizeof(string),"-AntiGod-: %s foi banido  (By: %s [/god])",name,name2);
        SendClientMessageToAll(NARANJA, string);

        Ban(playerid);
    }
    if(health < 80) {
        SendClientMessage(health1,VERMELHO,"[ERRO]: Player Nгo God,Preste Mais atencao ao  reportar [Como Puniзгo Morreras]");
        SetPlayerHealth(health1,0.0);
    }

    SetPlayerHealth(playerid, ComandoGod);
    TogglePlayerControllable(health1,1);

    return 1;
}
Obrigado

DraKoN


ATUALIZADO: Atualizado para ZCMD !!


Re: Anti-God (/god) por DraKoN - Gil_Henriquee - 23.08.2010

Muito bom

Eu jб testei ele e nгo encontrei nenhum BUG.

Irei utiliza-lo em meu GM!

Manterei os crйditos

Bom trabalho


Re: Anti-God (/god) por DraKoN - BlackFin - 23.08.2010

lol nгo й sorry-me й i'm sorry
bom fs


Respuesta: Re: Anti-God (/god) por DraKoN - ipsBruno - 24.08.2010

Quote:
Originally Posted by BlackFin
Посмотреть сообщение
lol nгo й sorry-me й i'm sorry
bom fs
Caso nгo saiba isto й uma Giria Inglesa,eu ando muito falando Inglкs que acabo pegando esse modo de falar,mesmo assim o correto i'm sorry,Giria nгo sгo erros Ortogrбficos pois fazem parte da Lнngua porйm de forma Informal,ou popularmente conhecido como Linguagem de Povгo,procure parar de corrigir erros Bobos,grande parte aqui esta na Adolescкncia e sгo acostumados a falar girias..


Re: Anti-God (/god) por DraKoN - Kasura - 24.08.2010

euri alta... girias me ingles...

+ uma vez

"Com nerds nгo se discute nй drakon?"

(OBS: Me desbloqueia do msn, й estranho mas preciso de vc =/)


Respuesta: Re: Anti-God (/god) por DraKoN - ipsBruno - 24.08.2010

Quote:
Originally Posted by [GangstA]Kasura
Посмотреть сообщение
(OBS: Me desbloqueia do msn, й estranho mas preciso de vc =/)
Rlx,nгo estou brabo,й que tive que reservar o MSN para o Clan meu,brevemente criarei outros para o clan e Desbloquearei/Adicionarei os Contatos Novamente


Re: Anti-God (/god) por DraKoN - Kasura - 24.08.2010

=D

Sakei...

Uma coisa... eu queria tirar os links de script da minha assinatura porem queria por em 1 site separado a lista...

Vc conhece algun site estilo pastebin que de pra postar texto? porem que de pra colorir e por link... porem em 1 pagina sу?

nгo sendo blog?

@EDIT
****** docs da?


Respuesta: Anti-God (/god) por DraKoN - ipsBruno - 24.08.2010

Vai no HDFREE,ou me passa a pagina que Hospedo..


Re: Anti-God (/god) por DraKoN - Kasura - 24.08.2010

@EDIT

Resolvi ja drakon ^^

Fiz no ****** docs ^^ Fico rox


Re: Anti-God (/god) por DraKoN - Canabis - 24.08.2010

e se o cara flooda no comando ?