06.09.2011, 15:09
Here:
here the list of key's that your script can detect : https://sampwiki.blast.hk/wiki/GetPlayerKeys
pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{//1
if((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE) && IsPlayerInAnyVehicle(playerid) // change it to whatever key you want :)
{//2
if(IsPlayerInRangeOfPoint(playerid,15,1596.0629,2199.1621,10.8203) || IsPlayerInRangeOfPoint(playerid,15,2202.0964,2474.6543,10.8203) || IsPlayerInRangeOfPoint(playerid,15,2114.8044,919.7510,10.8203) || IsPlayerInRangeOfPoint(playerid,5,622.4417,1679.9636,6.9922) || IsPlayerInRangeOfPoint(playerid,5,618.6267,1684.9540,6.9922) || IsPlayerInRangeOfPoint(playerid,10,1382.3110,460.1322,20.3452) || IsPlayerInRangeOfPoint(playerid,5,615.3784,1689.7960,6.9922) || IsPlayerInRangeOfPoint(playerid,20,-1675.7123,413.1389,7.1797))
{//3
ShowPlayerDialog(playerid,FUELDIALOG,DIALOG_STYLE_INPUT,"Blah","Buttom","Buttom");
}//3
}//2
return 1;
}//1