28.05.2018, 08:00
You can't have pMember at 14 AND 18 at the same time so the above if-statement would never work.
Try this one instead to check if it's either 14 or 18, then check if he's in an ambulance and he's the driver:
I also don't get the antifraude raport system in that command.
It doesn't block anything, except prevent making a second entry in the database.
Does that entry get removed somewhere else, which is inserted everytime someone uses the heal command?
What is it supposed to do?
Try this one instead to check if it's either 14 or 18, then check if he's in an ambulance and he's the driver:
Код:
if(((PlayerInfo[playerid][pMember] == 14) || (PlayerInfo[playerid][pMember] == 18)) && IsAnAmbulance(GetPlayerVehicleID(playerid)) && (GetPlayerVehicleSeat(playerid) == 0))
It doesn't block anything, except prevent making a second entry in the database.
Does that entry get removed somewhere else, which is inserted everytime someone uses the heal command?
What is it supposed to do?