Forgot your password?
DonOmar, July 19, 2016 in Scripting
function prison(player, cmd)
if player then
wantedlevel = getPlayerWantedLevel(Player)
local playerTeam = getPlayerTeam ( Police Service )
local playerTeam2 = getPlayerTeam ( Criminals )
local jX, jY, jZ = getElementPosition (playerTeam)
local pX, pY, pZ = getElementPosition (playerTeam2)
local dist = getDistanceBetweenPoints3D ( pX, pY, pZ, jX, jY, jZ)
if ( wantedlevel == 0 ) then
exports.CORtexts:output("You can't use this command when not wanted!", player, 0, 255, 0) return end
if dist > 149 then
exports.CORtexts:output("You can't use this command when near a cop !", plyer, 0, 255, 0) return end
Original posts should be auto quoted.
And that guy should be banned.
i don't wanna anyone to take my code just it.
Then make a quick example code, just like I always do.
You need to be a member in order to leave a comment
Sign up for a new account in our community. It's easy!
Already have an account? Sign in here.
No registered users viewing this page.