Flip vehicle with Num pad key
#1

I want players to be able to flip their vehicles by pressing Num4 for example, but I've completely forgotten how to do it. Could someone help? Thanks
Reply
#2

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(PRESSED(KEY_ANALOG_LEFT))
    {
        new Float:z;
        GetVehicleZAngle(GetPlayerVehicleID(playerid), z);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), z);
    }
    return 1;
}
Reply
#3

forgotten? you probably don't even know how to script.
this will 'remind' you
please, search next time

http://forum.sa-mp.com/showthread.ph...highlight=flip
Reply
#4

Quote:
Originally Posted by NaClchemistryK
Посмотреть сообщение
forgotten? you probably don't even know how to script.
this will 'remind' you
please, search next time

http://forum.sa-mp.com/showthread.ph...highlight=flip
Thanks for the prejudice. I actually used to script quite a lot, then I stopped for about a year and a half, so I've forgotten a lot of it. So, take your unhelpful attitude away from a Scripting Help forum...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)