Recommended Posts

    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 
    exports.CIFprison:sendPlayerToPrison(player, false) 
    addCommandHandler("surrender", prison) 

Share this post

Link to post

Original posts should be auto quoted.

And that guy should be banned.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.