Doesn't work.
#1

So this doesn't work, and I don't know why.
pawn Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new newkeys, oldkeys;
    if (IsKeyJustDown(KEY_JUMP, newkeys, oldkeys))
    {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        SetPlayerPos(playerid, X, Y, Z+5);
    }
    return 1;
}
I get not warnings or errors, but when I go In-Game, and press shift, when entering a car. It does nothing.
Reply
#2

OnPlayerEnterVehicle called in no time/so fast and once when player press f/g near car on default. How can you predict it?
What are you trying to make btw?
Reply
#3

I am trying to make it so if they are pressing SHIFT on entering a vehicle,
It places them at their X, Y, Z +5, In-order to prevent Ninja-Jacking.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)