10.09.2011, 14:40
So this doesn't work, and I don't know why.
I get not warnings or errors, but when I go In-Game, and press shift, when entering a car. It does nothing.
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;
}