[ajuda]Fazer sistema de pontos no drift
#1

opa galera, sussegado?

seguinte, eu to fazendo um GM de 4FUN aqui q usa sistema de pontos quando mata, domina GZ e etc.

agora eu queria saber, como eu faзo pra verificar se o carro esta "Driftando", ou seja, deslizando?

eu tentei:

pawn Код:
public Driftando(playerid, vehicleid)
{
    new Float:Z;
    GetVehicleZAngle(vehicleid, Z);
    new Float:Z1;
    Z1 = Z+5;
    if(IsPlayerInAnyVehicle(playerid))
    {
        if(GetVehicleZAngle(vehicleid, Z1))
        {
            GameTextForPlayer(playerid, "+2 Pontos", 100, 6);
            Pontos[playerid] = Pontos[playerid]+2;
        }
    }
    return 1;
}
mas nгo funcionou....
Reply
#2

Tenta:
pawn Код:
static stock Driftando(pid) {
    if(IsPlayerInAnyVehicle(pid)) {    
        new v = GetPlayerVehicleID(pid);
        static Float:vAZ[MAX_VEHICLES];

        if(GetVehicleZAngle(vehicleid,vAZ[v]) > 90.0 || GetVehicleZAngle(vehicleid,Z[v]) < 180.0) {
            GameTextForPlayer(pid, "+2 Pontos", 100, 6);
            Pontos[pid] += 2;
            return true;
        }
    }
    return true;
}
Espero ter ajudado.
Reply
#3

http://forum.sa-mp.com/search.php
Reply
#4

nгo deu certo nгo, tentei atй mudar algumas coisas mas nada
Reply
#5

LoL achei kkkk
mas eu tinha procurado no ****** antes e n tinha achado
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)