stunting help
#5

Quote:
Originally Posted by Stigg
Посмотреть сообщение
Unlimited nos:

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(PRESSED(KEY_FIRE))
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        if(vehicleid)
        {
            AddVehicleComponent(vehicleid, 1010);
        }
    }
    return 1;
}
thanks man
Reply


Messages In This Thread
stunting help - by DaRkAnGeL[NBK] - 12.10.2011, 19:59
Re: stunting help - by Tigerkiller - 12.10.2011, 20:06
Re: stunting help - by Kush - 12.10.2011, 20:14
Re: stunting help - by Stigg - 12.10.2011, 20:23
Re: stunting help - by DaRkAnGeL[NBK] - 12.10.2011, 20:33

Forum Jump:


Users browsing this thread: 2 Guest(s)