Git Product home page Git Product logo

Comments (2)

uen avatar uen commented on August 11, 2024

Hello mate I'm fucked

Baggage baguettes baguette baguette bagueyyebfuck off

If you want to get a players level you can use

ply:getDarkRPVar('level')

Where ply is the player

Therefore if you want a custom check on an object you can use

function(ply) return ply:getDarkRPVar('level') > 10 end

You can just use the level = 10 parameter

I don't really fucking know
On 1 Jul 2016 00:23, "Survivor21" [email protected] wrote:

Currently I am trying to make a custom check to see if the player is a
certain level, and if they are they can use that entity (not spawn it,
interact with it)

I've tried it with ply:hasLevel ply:getLevel Level = , (With different
capitalization)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#50, or mute the
thread
https://github.com/notifications/unsubscribe/ADxNa1VQd0VBTHTV0nYHgKWpGDmonhV-ks5qRDJ0gaJpZM4JCmit
.

from leveling-system.

Survivor21 avatar Survivor21 commented on August 11, 2024

function ENT:Use(a,c)

if function(ply) return ply:getDarkRPVar('level') < 6 end then
self:Remove()
self:SetUseType( SIMPLE_USE )
net.Start("server_say_spell_add")
            net.WriteString("Avada Kedavra")
            net.WriteEntity(c)
net.Send(c)
end 

end

Tried using that, but still anyone can interact with it. Just using level = 6 makes the entity not even show up :P Any more ideas,

Thanks for the help so far !

from leveling-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.