General > Developers Corner

How to make it so freeze is disabled if being whipped?

(1/1)

JohnnyAppleseed:
Hello everyone! I run a darkrp server, and I would like to figure out how to make it so that if a player is being whipped, they can't be frozen?

--- Code: ---if v.whipped then
ULib.tsayError( calling_ply, v:Nick() .. " is being whipped!", true )
v:Unlock()
v.frozen = nil
ulx.clearExclusive( v )
end

--- End code ---
that's what we've tried. But it doesn't work!

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version