Hello,
I would like to block the use of the vehicle when the variable = true
I have a code:
Code:
#include <amxmodx>
#include <hamsandwich>
new bool:something[33] = true;
public plugin_init() {
RegisterHam(Ham_Use, "func_vehicle", "BlockPojazd");
RegisterHam(Ham_Use, "func_vehiclecontrol", "BlockPojazd");
}
public BlockPojazd(ent, id, activator, iType, Float:fValue) {
if(!is_user_alive(id) || id == activator) return 1;
if(something) return 4;
return 1;
}