06.07.2012, 22:54
Alright, I just started writing this thing down. And I thought that it would be a good idea to test it out if it reacts to pressing keys. Unfortunately it didn't respond. Any thoughts ?
By the way I'm importing it as filterscript.
By the way I'm importing it as filterscript.
PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
public OnFilterScriptInit()
{
ManualVehicleEngineAndLights();
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Car Control", "Select an action", "Engine" ,"Lights");
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;
}