Small help needed.. please.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Small help needed.. please.. (
/showthread.php?tid=81924)
Small help needed.. please.. -
Moustafa - 15.06.2009
Hey guys, i need some help here..
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;
}
See that thing?
pawn Код:
if(newkeys == KEY_UNDEFINED )
{
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
Re: Small help needed.. please.. -
CJ101 - 15.06.2009
https://sampwiki.blast.hk/wiki/GetPlayerKeys
You cant use that key. Look at the link, all you need is there
Re: Small help needed.. please.. -
Abernethy - 15.06.2009
KEY_SECONDARY_ATTACK
~k~~VEHICLE_ENTER_EXIT~
Re: Small help needed.. please.. -
Moustafa - 15.06.2009
Oh, it cannot be the pressing F or ENTER? damn! but when i make it the SECONDARY_ATTACK, when i press SPACE or F or A & D together, it gets generated, and i don't want that! i only want when i press F or ENTER ...!
damn!