15.06.2009, 06:09
Hey guys, i need some help here..
Well look:
See that thing?
I want to change the UNDEFINED thingy to that key: F or ENTER, you know, when entering a car, you press F or ENTER, i want to know what is the code for it!, Please help me if you can
Well look:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_UNDEFINED )
{
if (PlayerToPoint(1, playerid,-2487.4114,-612.5793,132.5592))
{
SetPlayerPos(playerid, -2487.3696,-611.0781,132.7919);
return 1;
}
if (PlayerToPoint(1, playerid,-2487.2993,-610.2986,132.7919))
{
SetPlayerPos(playerid, -2487.0820,-611.9934,132.5547);
return 1;
}
}
if (PlayerToPoint(1, playerid,-1757.8530,963.5155,24.8828))
{
SetPlayerPos(playerid, 2215.454833,-1147.475585,1025.796875);
SetPlayerInterior(playerid, 15);
return 1;
}
if (PlayerToPoint(1, playerid,-1707.1255,1018.0385,17.5859))
{
SetPlayerPos(playerid, 964.4483,2107.9851,1011.0303);
SetPlayerInterior(playerid, 1);
return 1;
}
if (PlayerToPoint(1, playerid,963.4483,2107.9851,1011.0303))
{
SetPlayerPos(playerid, -1707.1255,1018.0385,17.5859);
SetPlayerInterior(playerid, 0);
return 1;
}
return 0;
}
pawn Код:
if(newkeys == KEY_UNDEFINED )
{