Можно ли как нибудь оптимизировать код
PHP код:
if(IsPlayerInAnyVehicle(playerid))
{
if(newkeys & 65536)
{
if(GetPVarInt(playerid,"gInvs")) return true;
ShowInv(playerid);
SetPVarInt(playerid, "gInv", 1);
}
return 1;
}
else
{
if(newkeys == KEY_CTRL_BACK)
{
if(GetPVarInt(playerid,"gInvs")) return true;
ShowInv(playerid);
SetPVarInt(playerid, "gInv", 1);
}
}