CanPlayerAttack
Whether the player may attack.
true unless SetPlayerCanAttack said otherwise.
Syntax
Section titled “Syntax”CanPlayerAttack(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if not CanPlayerAttack(pid) then SendClientMessage(pid, COLOR_GREY, "Your hands are tied.") endSee also
Section titled “See also”SetPlayerCanAttack · the Combat group of the index
