Skip to content

CanPlayerAttack

Whether the player may attack.

true unless SetPlayerCanAttack said otherwise.

CanPlayerAttack(pid)
Parameter Type
pid number the player

boolean

if not CanPlayerAttack(pid) then SendClientMessage(pid, COLOR_GREY, "Your hands are tied.") end

SetPlayerCanAttack · the Combat group of the index