[Ajuda] Modificar o botao
#3

Й sу modificar a KEY_HANDBRAKE pela KEY_FIRE

PHP код:
public iHazardKeys()
{
    new 
Float:angleFloat:xFloat:yFloat:z;
    for(new 
playerid 0playerid GetMaxPlayers(); playerid++)
    {
        
GetPlayerKeys(playeridkeysupdownleftright);
        
GetObjectPos(BolaDeFutebolxyz);
        
GetPlayerFacingAngle(playeridangle);
        if(
keys == KEY_FIRE && PlayerJogando[playerid] == 1)
        {
            if(
IsPlayerInRangeOfPoint(playerid1.7x,y,z))
            {
                
GetPlayerPos(playeridxyz);
                
GetXYInFrontOfPlayer(playeridxy7.0);
                
MoveObject(BolaDeFutebolxy10.315610.0);
                
ApplyAnimation(playerid#FIGHT_D, #FightD_1, 4.1, 0, 1, 1, 0, 0);
            
}
        }
        else if(
keys == KEY_FIRE KEY_SPRINT && PlayerJogando[playerid] == 1)
        {
            if(
IsPlayerInRangeOfPoint(playerid1.7x,y,z))
            {
                
GetPlayerPos(playeridxyz);
                
GetXYInFrontOfPlayer(playeridxy7.0);
                
MoveObject(BolaDeFutebolxy10.315610.0);
                
ApplyAnimation(playerid#FIGHT_D, #FightD_1, 4.1, 0, 1, 1, 0, 0);
            
}
        }
    }

Reply


Messages In This Thread
Modificar o botao - by zGuigui2068 - 09.05.2015, 04:13
Re: Modificar o botao - by Dayvison_ - 09.05.2015, 12:55
Re: Modificar o botao - by viniciuship - 09.05.2015, 13:34

Forum Jump:


Users browsing this thread: 1 Guest(s)