[Pedido] Apenas um Anti Car Spawn
#1

Bem ja cansei de ir no search e ****** mas os que achei ou nao funfa ou tem mts protetores, bem estou atras de apenas um ant car spawner e agradeзo muito a quem coneguir propor um ou atй msm fazer um de coraзгo msm pois ainda sou iniciante.

Grato.
Reply
#2

filterscripts
Код:
// Coded by Koma
#include <a_samp>
public OnFilterScriptInit()
{
    print("Anti Car Spam by Koma loaded.");
    return 1;
}
#define SCM SendClientMessage
new xacalaca[MAX_PLAYERS];
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    xacalaca[playerid] ++;
    SetTimerEx("desxacalaca", 1000,false,"i",playerid);
    return 1;
}
forward desxacalaca(playerid);
public desxacalaca(playerid)
{
    xacalaca[playerid] --;
    if(xacalaca[playerid] > 10)
    {
        new bibi[128], Nome[MAX_PLAYER_NAME];
        SCM(playerid, -1, "Este servidor estб protegido pelo sistema Kocars e vocк foi banido por spam de veнculos");
        GetPlayerName(playerid, Nome, sizeof(Nome));
        format(bibi, sizeof(bibi), "[Koprotect]: %s foi banido pelo uso do mod cleo 4 car spam.", Nome);
        SendClientMessageToAll(-1, bibi);
        Ban(playerid);
    }
    //printf("xacalaca = %d", xacalaca[playerid]); // debug
    return 1;
}
@EDIT

Postado no forum do sa-mp https://sampforum.blast.hk/showthread.php?tid=333024
Reply
#3

esse ai nem funfa.
Mas obrigado por tenta ajuda,

HELP !
Reply
#4

Quote:
Originally Posted by Nill.Oliveira
Посмотреть сообщение
filterscripts
Код:
// Coded by Koma
#include <a_samp>
public OnFilterScriptInit()
{
    print("Anti Car Spam by Koma loaded.");
    return 1;
}
#define SCM SendClientMessage
new xacalaca[MAX_PLAYERS];
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    xacalaca[playerid] ++;
    SetTimerEx("desxacalaca", 1000,false,"i",playerid);
    return 1;
}
forward desxacalaca(playerid);
public desxacalaca(playerid)
{
    xacalaca[playerid] --;
    if(xacalaca[playerid] > 10)
    {
        new bibi[128], Nome[MAX_PLAYER_NAME];
        SCM(playerid, -1, "Este servidor estб protegido pelo sistema Kocars e vocк foi banido por spam de veнculos");
        GetPlayerName(playerid, Nome, sizeof(Nome));
        format(bibi, sizeof(bibi), "[Koprotect]: %s foi banido pelo uso do mod cleo 4 car spam.", Nome);
        SendClientMessageToAll(-1, bibi);
        Ban(playerid);
    }
    //printf("xacalaca = %d", xacalaca[playerid]); // debug
    return 1;
}
@EDIT

Postado no forum do sa-mp https://sampforum.blast.hk/showthread.php?tid=333024
esse dai e pra Mod cleo, O Grande problema e o ******...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)