import es import playerlib import cfglib info = es.AddonInfo() info.name = "Air War" info.version = "1.0" info.author = "Donut" info.basename = "air_war" info.description = "A addon that do so that people can't shoot while thay are standing on the ground." def load(): es.server.cmd("mp_restartgame 2") def unload(): es.server.cmd("mp_restartgame 2") def player_hurt(event_var): attacker = int(event_var['attacker']) if attacker: player = playerlib.getPlayer(attacker) if player.OnGround > 0.5: name = player.name player.health -= 95 es.msg('#multi','#green[Air War] #default%s is shooting while on the ground!'%(name))