Comments (2)
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.
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)
- I get "you earned 0xp for playing on the server"
- Problem with the Printers
- Doesn't work at all. HOT 3
- Error's
- need help HOT 1
- DarkVAR not registred
- Entity
- Doesnt seem to be a file for editing what levels unlock HOT 2
- XP Bar Texture not changing HOT 1
- how to i install the addon HOT 1
- printers dont go away HOT 1
- Changing values in sh_config.lua has no effect. HOT 8
- the hud change
- How to remove printers? HOT 1
- Giving no experience
- You have earned 0 xp. HOT 5
- Serverguard support HOT 1
- Level doesn't go away when I disable it. HOT 1
- Adding XP For Buying Shipments? HOT 3
- Custom Book Entity HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leveling-system.