key pressed
#4

here:

PHP Code:
else if (PRESSED(KEY_FIRE))
{
    if (!
GetPlayerVehicleID(playerid))
    {
        new 
objectweaponid GetPlayerWeapon(playerid), i;
        for(; 
sizeof iMateriali++)
        {
            if (!
IsPlayerInRangeOfPoint(playerid2iMaterial[i][m_x], iMaterial[i][m_y], iMaterial[i][m_z])) continue;
            
object GetObjectModel(iMaterial[i][modelid]);
            switch (object)
            {
                case 
657:
                {
                    if (
weaponid == 4)
                    {
                        
TextDrawShowForPlayer(playeridHolz[playerid]);
                        
SetTimerEx("KaputtMaterial"1500false"i"playerid);
                        
PlayerInfo[playerid][pHolz] += 5;
                        return 
1;
                    }
                }
                case 
747:
                {
                    if (
weaponid == 4)
                    {
                        
TextDrawShowForPlayer(playeridStein[playerid]);
                        
SetTimerEx("KaputtMaterial"1500false"i"playerid);
                        
PlayerInfo[playerid][pStein] += 5;
                        return 
1;
                    }
                }
            }
        }
    }

Reply


Messages In This Thread
key pressed - by Dreandor - 13.06.2018, 09:35
Re: key pressed - by JasonRiggs - 13.06.2018, 12:50
Re: key pressed - by Dreandor - 13.06.2018, 12:59
Re: key pressed - by xMoBi - 13.06.2018, 19:56
Re: key pressed - by Dreandor - 13.06.2018, 20:33
Re: key pressed - by Dreandor - 14.06.2018, 11:53

Forum Jump:


Users browsing this thread: 1 Guest(s)