SA-MP Forums Archive
Pedido de FS. - 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: Pedido de FS. (/showthread.php?tid=279081)



Pedido de FS. - CanTLoGin - 25.08.2011

Queria pedir um FS.
Quando o player segurar o botгo 0 ele fica como se fosse " Speed Hack " no carro.
e quando fica apertando CAPSLook o carro da uns pulo ^^ '

@Nгo me xinguem



Re: Pedido de FS. - Chefгo - 25.08.2011

cara vai procurar...
nunca vi um fs desse por aki...


Re: Pedido de FS. - StrondA_ - 25.08.2011

Poderia fazer, mais estou com preguiзa, entгo faзa vocк. isto й uma base....
em:
OnPlayerKeyStateChange...

if(newkeys & KEY_SUBMISSION) //tecla..
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:X9, Float:Y9, Float:Z9;
GetVehicleVelocity(GetPlayerVehicleID(playerid), X9,Y9,Z9); //speed
SetVehicleVelocity(GetPlayerVehicleID(playerid), X9,Y9,Z9+0.4);
}
}
}



Re: Pedido de FS. - CanTLoGin - 25.08.2011

valeu. vou tentar aki


Re: Pedido de FS. - StrondA_ - 25.08.2011

cade a rep + ? /zoa, nads manolo precisar posta ai


Re: Pedido de FS. - [R] ousenber [K] - 25.08.2011

TiagoPS :

PHP код:
#include <a_samp>
#define FILTERSCRIPT
#define HANDLING 1 // Aki O Handling ( quanto menor mais velocidade )
new HandlingZ[MAX_PLAYERS], CimaBaixoChave;
public 
OnFilterScriptInit()
{
    print(
"+-+-+-+-+-+-+-+-+-+-+-+-+-+-+");
    print(
"|- Ultra Turbo By: TiagoPS -|");
    print(
"|-+-+-+-+ Carregado +-+-+-+-|");
    print(
"+-+-+-+-+-+-+-+-+-+-+-+-+-+-+");
    
SetTimer("Handling",250true);
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/TurboON"cmdtexttrue8) == 0)
    {
        
HandlingZ[playerid] = 1;
        
SendClientMessage(playerid0xFFFFFFAA"Turbo Ativado");
        return 
true;
    }
    if (
strcmp("/TurboOFF"cmdtexttrue8) == 0)
    {
        
HandlingZ[playerid] = 0;
        
SendClientMessage(playerid0xFFFFFFAA"Turbo Desativado");
        return 
true;
    }
    return 
false;
}
forward Handling();
public 
Handling()
{
    for(new 
iMAX_PLAYERSi++)
    {
        if(
HandlingZ[i] == 1)
        {
            
GetPlayerKeys(i,Chave,Cima,Baixo);
            if(
Chave &= 8)
            {
                if(
GetPlayerState(i) == PLAYER_STATE_DRIVER)
                {
                    new 
Float:X,Float:Y,Float:Z;
                    
GetVehicleVelocity(GetPlayerVehicleID(i),X,Y,Z);
                    
SetVehicleVelocity(GetPlayerVehicleID(i),X+(HANDLING),Y+(HANDLING),Z+(HANDLING));
                }
            }
        }
    }
    return 
true;

This forum requires that you wait 120 seconds between posts. Please try again in 14 seconds.