01.10.2012, 16:45
pawn Код:
Public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_YES))
{
return cmd_vinteract(playerid, "");
}
if(GetPlayerState(playerid) == 2 || GetPlayerState(playerid) == 3)
{
if(GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1)
{
if(PRESSED(KEY_SPRINT))
{
new vehid;
vehid = GetPlayerVehicleID(playerid);
if(vengineon[playerid] == 0)
{
return cmd_eon(playerid, "");
}
}
if(PRESSED(KEY_SUBMISSION))
{
//
}
}
}
if(PRESSED(128))
{
//
}
return 1;
}