stunting help
#1

how to add unlimited nos to cars? also how to spawn cars ?
Reply
#2

i explain it tomorrow too
Reply
#3

Quote:
Originally Posted by Tigerkiller
Посмотреть сообщение
i explain it tomorrow too
Nothing needed...

If the person is in a vehicle, check if they press the button which activates nitro, then -> https://sampwiki.blast.hk/wiki/AddVehicleComponent
Reply
#4

Quote:
Originally Posted by DaRkAnGeL[NBK]
Посмотреть сообщение
how to add unlimited nos to cars? also how to spawn cars ?
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;
}
Simple, but work's.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)