[Include] sss (Speed sem sorvete)
#1

Bem vou ser breve, essa include foi feita com o intuito de o jogador possa usar speed sem usar mods.

Modo de uso:
Simples, adicionar:
Код:
#include <sss>
abaixo da include a_samp e usar a tecla alt in-game.
Source:
PHP код:
////////////////////////////////////////////////////////////////////////////////
/*
//////////////////////// Speed sem Sorvete by DrTHE ////////////////////////////
*/
////////////////////////////////////////////////////////////////////////////////
#define oxC Check(playerid)
#define ixC Prepare(playerid)
new e_Timer[MAX_PLAYERS];
new 
bool:e_Reduzir[MAX_PLAYERS] = false;
new 
bool:e_OPKST;
public 
OnGameModeInit()
{
    
e_OPKST funcidx(#ExOnPlayerKeyStateChange) != -1;
     
return CallLocalFunction(#ExOnGameModeInit, #);
}
#if defined _ALS_OnGameModeInit
        #undef OnGameModeInit
#else
        #define _ALS_OnGameModeInit
#endif
#define OnGameModeInit ExOnGameModeInit
forward ExOnGameModeInit();
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    
CallLocalFunction(#Prepare, #d, playerid);
    
return (e_OPKST CallLocalFunction("ExOnPlayerKeyStateChange""i"playerid) : 1);
}
#if defined _ALS_OnPlayerKeyStateChange
        #undef OnPlayerKeyStateChange
#else
        #define _ALS_OnPlayerKeyStateChange
#endif
#define OnPlayerKeyStateChange ExOnPlayerKeyStateChange
forward ExOnPlayerKeyStateChange(playeridnewkeysoldkeys);
forward ixC; public ixC
{
    new 
Keysudlr;
    
GetPlayerKeys(playeridKeysudlr);
    if(
Keys &= 4)
    {
        if(
e_Reduzir[playerid] == false)
        {
            
KillTimer(e_Timer[playerid]);
            
e_Reduzir[playerid] = true;
            
e_Timer[playerid] = SetTimerEx(#Check, 200, true, #d, playerid);
            
return 1;
        }
    }
    return 
1;
}
forward oxC; public oxC
{
    if(!
IsPlayerConnected(playerid))
    {
        
e_Reduzir[playerid] = false;
        
KillTimer(e_Timer[playerid]);
        return 
1;
    }
    new 
Keysupdown;
    
GetPlayerKeys(playeridKeysupdown);
    if(
Keys &= 4)
    {
        if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            new 
Float:xFloat:yFloat:z;
            
GetVehicleVelocity(GetPlayerVehicleID(playerid), xyz);
            
SetVehicleVelocity(GetPlayerVehicleID(playerid), + (4), + (4), + (4));
        }
    }
    else
    {
        
e_Reduzir[playerid] = false;
        
KillTimer(e_Timer[playerid]);
        if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            new 
Float:xFloat:yFloat:z;
            
GetVehicleVelocity(GetPlayerVehicleID(playerid), xyz);
            
SetVehicleVelocity(GetPlayerVehicleID(playerid), - (4), - (4), - (4));
        }
    }
    return 
1;

Download:
> logo abaixo nos 'attachments'

Made in China
Reply


Messages In This Thread
sss (Speed sem sorvete) - by DrTHE - 21.10.2012, 23:41
Re: sss (Speed sem sorvete) - by Q.I - 21.10.2012, 23:44
Re: sss (Speed sem sorvete) - by dPlaYer_ - 21.10.2012, 23:59
Re: sss (Speed sem sorvete) - by DrTHE - 22.10.2012, 00:03
Re: sss (Speed sem sorvete) - by tonisantolia - 22.10.2012, 00:08
Re: sss (Speed sem sorvete) - by Q.I - 22.10.2012, 00:11
Re: sss (Speed sem sorvete) - by DrTHE - 22.10.2012, 00:12
Re: sss (Speed sem sorvete) - by jpeg - 22.10.2012, 00:53
Re: sss (Speed sem sorvete) - by Q.I - 22.10.2012, 01:13
Re: sss (Speed sem sorvete) - by zSuYaNw - 22.10.2012, 01:16

Forum Jump:


Users browsing this thread: 3 Guest(s)