Jump to content

Nerd Gaming Script Release (V1.1.4)


xXMADEXx

Recommended Posts

You're Welcome

You cant , All resources are link with that level 1 , level 2 , level 3 , you can only change if you know scripting and other basic things.

You can change it ??

i can pay you

yes i can but it will take too much time as I have to open every script for that , You can contact me on skype

Link to comment
  • 2 weeks later...

NGJobs > Law > General > Wanted_s.lua

function giveWantedPoints ( p, amount ) 
    if ( p and isElement ( p ) and tonumber ( amount ) ) then 
        local amount = tonumber ( amount ) 
        local wl = tonumber ( getElementData ( p, "WantedPoints" ) ) 
        setElementData ( p, "WantedPoints", tonumber ( wl ) + amount )  
        return true 
    end 
    return false 
end 
  
addEventHandler ( "onPlayerDamage", root, function ( p, weap, loss ) 
    if ( isElement ( p ) and p ~= source ) then 
  
        local x, y, z = getElementPosition ( source ) 
        --if ( getZoneName ( x, y, z, true ) == "Las Venturas" ) then return end 
  
        if ( getElementData ( source, "NGEvents:IsPlayerInEvent" ) or getElementData ( p, "NGEvents:IsPlayerInEvent" ) ) then 
            return 
        end 
         
        if ( getElementType ( p ) == 'vehicle' ) then 
            if ( getVehicleOccupant ( p ) ) then 
                p = getVehicleOccupant ( p ) 
            else 
                return  
            end 
        end 
  
        local t = getPlayerTeam ( p ) 
        if t then 
            local t = tostring ( getTeamName ( t ) ) 
            if weap then 
                if ( t == "Emergency" and getElementHealth ( source ) < 100 and weap == 14 ) then 
                    if ( getElementData ( p, "Job" ) == "Medic" ) then 
                        return 
                    end 
                elseif ( exports['NGPlayerFunctions']:isTeamLaw ( t ) and ( weap == 3 or weap == 23 ) and getPlayerWantedLevel ( source ) > 0 ) then 
                    return 
                end 
            end 
        end 
        giveWantedPoints ( p, math.floor ( loss * 3 ) ) 
    end 
end ) 
  
local ticks = 0 
local tickChange = 50 
setTimer ( function ( ) 
    ticks = ticks + 1 
    for i, v in ipairs ( getElementsByType ( 'player' ) ) do  
        if ( not getElementData ( v, "NGJobs:ArrestingOfficer" ) and not getElementData ( v, "isPlayerJailed" ) ) then 
            local wl = tonumber ( getElementData ( v, "WantedPoints" ) ) or 0 
            if ( wl >= 600 ) then 
                setPlayerWantedLevel ( v, 6 ) 
            elseif ( wl >= 450 ) then 
                setPlayerWantedLevel ( v, 5 ) 
            elseif ( wl >= 320 ) then 
                setPlayerWantedLevel ( v, 4 ) 
            elseif ( wl >= 210 ) then 
                setPlayerWantedLevel ( v, 3 ) 
            elseif ( wl >= 100 ) then 
                setPlayerWantedLevel ( v, 2 ) 
            elseif ( wl > 0 ) then 
                setPlayerWantedLevel ( v, 1 ) 
            elseif ( wl <= 0 ) then  
                setPlayerWantedLevel ( v, 0 ) 
            end 
            if ( ticks >= tickChange ) then 
                setElementData ( v, "WantedPoints", wl - 1 ) 
                if ( wl - 1 < 0 ) then 
                    setElementData ( v, "WantedPoints", 0 ) 
                end 
            end 
        end 
         
        if ( getPlayerWantedLevel ( v ) > 0 ) then 
            setPlayerNametagText ( v, tostring ( getPlayerName ( v ) ).."["..tostring ( getPlayerWantedLevel ( v ) ).."]" ) 
        else 
            setPlayerNametagText ( v, tostring ( getPlayerName ( v ) ) ) 
        end 
         
        local job = getElementData ( v, "Job" ) 
        if job  then 
            local max_ = max_wanted[getJobType(job)] or 7 
            local w_l = getPlayerWantedLevel ( v ) 
            if ( w_l ~= 0 and w_l > max_ ) then 
                exports['NGMessages']:sendClientMessage ( "You've been resigned for having a high wanted level.", v, 255, 255, 0 ) 
                resignPlayer ( v ) 
            end 
        end 
    end 
end, 3000, 0 ) 

Correct path

if ( wl >= 600 ) then 
                setPlayerWantedLevel ( v, 6 ) 
            elseif ( wl >= 450 ) then 
                setPlayerWantedLevel ( v, 5 ) 
            elseif ( wl >= 320 ) then 
                setPlayerWantedLevel ( v, 4 ) 
            elseif ( wl >= 210 ) then 
                setPlayerWantedLevel ( v, 3 ) 
            elseif ( wl >= 100 ) then 
                setPlayerWantedLevel ( v, 2 ) 
            elseif ( wl > 0 ) then 
                setPlayerWantedLevel ( v, 1 ) 
            elseif ( wl <= 0 ) then  
                setPlayerWantedLevel ( v, 0 ) 

Link to comment
  • 2 weeks later...
  • 2 months later...
  • 3 weeks later...
  • 2 weeks later...
  • 8 months later...
On 11/27/2014 at 2:26 AM, xXMADEXx said:

Hello everyone,

Nerd Gaming is a gamemode that I started making over a year ago with one of my good buddies Chronic. Soon after the launch in August, neither one of us had time to manage the server, due to school and work. A month after the launch, we decided to close it, so the gamemode became useless for me to just have for myself, because I wasn't going to use it. A couple months had passed, so I decided that I would release the gamemode. I released the gamemode, with the original version of 1.0, which was very unstable and full of bugs. A couple months after I released it to GitHub and the MTA community, I started to support frequent updates for the gamemode, which brings us today! I still update this gamemode, and if you have any problems with it, please send me a private message here, or add me on Skype (Madex-MTA) and discuss the issue with me!

Information

Gamemode type: RPG/CnR

Appox. file size: 23MB

Version: 1.1.4

GitHub: https://github.com/braydondavis/Nerd-Gaming-Public

(Click "Download ZIP" towards the mid-right)

Latest stable builds

GitHub: https://github.com/braydondavis/Nerd-Ga ... ree/master

Download: https://github.com/braydondavis/Nerd-Ga ... master.zip

Latest development builds

GitHub: https://github.com/braydondavis/Nerd-Ga ... evelopment

Download: https://github.com/braydondavis/Nerd-Ga ... opment.zip

Installation Video

 

 

Enjoy.

 

i just wanna know how to give vip from admin to normal player or from admin to staff or another admin thanks

Link to comment
  • 6 months later...
  • 3 months later...

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.
×
×
  • Create New...