Made some pulls on the github repo to allow for something I've wished for for ages. So now you can do /flaggive <name> * to give a player all flags, same thing for taking flags.
And when (if) Chessnut merges my most recent pull request you can even do stupid shit like /playergive * * to give every player on the server every flag!
I'm starting to like NutScript more and more the more time I spend adding onto it.
[QUOTE=Atebite;46199161]Made some pulls on the github repo to allow for something I've wished for for ages. So now you can do /flaggive <name> * to give a player all flags, same thing for taking flags.
And when (if) Chessnut merges my most recent pull request you can even do stupid shit like /playergive * * to give every player on the server every flag!
I'm starting to like NutScript more and more the more time I spend adding onto it.[/QUOTE]
Thanks for contributing.
[QUOTE=Atebite;46199161]Made some pulls on the github repo to allow for something I've wished for for ages. So now you can do /flaggive <name> * to give a player all flags, same thing for taking flags.
And when (if) Chessnut merges my most recent pull request you can even do stupid shit like /playergive * * to give every player on the server every flag!
I'm starting to like NutScript more and more the more time I spend adding onto it.[/QUOTE]
Wouldn't it have been better to contribute to the newest version of NutScript (1.1)?
I hate to complain but the /chardelete and /charban commands are broken and they're so fundamental that it's just frustrating. If someone could get a quick fix on that I'd be grateful. (I don't use Github too much so I don't want to make a request there.) :C Also, what's the difference between the two? Why would you use one over the other?
[QUOTE=Boom Rainbow;46203698]I hate to complain but the /chardelete and /charban commands are broken and they're so fundamental that it's just frustrating. If someone could get a quick fix on that I'd be grateful. (I don't use Github too much so I don't want to make a request there.) :C Also, what's the difference between the two? Why would you use one over the other?[/QUOTE]
How are they broken?
Is there any errors?
[QUOTE=sants1;46203772]How are they broken?
Is there any errors?[/QUOTE]
I wouldn't say they're both broken, but they both seem to do the same thing. Which is just deletes the character.
Edit: Actually no, /chardelete isn't deleting characters.
[QUOTE=mib999;46200176]Wouldn't it have been better to contribute to the newest version of NutScript (1.1)?[/QUOTE]
Probably would be, but then again I usually only make lots of sugary stuff, I don't have a lot experience with things like making gamemodes, etc. so I'd probably fuck up.
It'll probably be a while until NS 1.1 done and adding sugary stuff in the middle of development seems like a bad idea to me. More focus on what needs to be done.
[QUOTE=sants1;46203772]How are they broken?
Is there any errors?[/QUOTE]
Fixed it, there was this one mistype in sh_commands I believe under the nutscript file. There was something in the code that was spelled "Escpae" so I switched it to "Escape" and it worked fine. You might want to commit that to the Github if you can. I did get an error before, but yeah I already fixed that myself.
Just an update that you can view 1.1 progress here:
[url]https://github.com/Chessnut/NutScript/milestones[/url]
[QUOTE=min00716;44968830]I made a weapon for Nutscript like this,
ITEM.name = "mosin"
ITEM.class = "weapon_mosin"
ITEM.uniqueID = "weapon_mosin"
ITEM.type = "rifle"
ITEM.model = Model("models/weapons/w_grub_mosin.mdl")
ITEM.price = 150
ITEM.desc = "mosin."
ITEM.category = "Weapons"
ITEM.flag = "V"
I can see it on my inventory, And I can equip it. But I can't use.
[IMG]http://i57.tinypic.com/2h3yhdl.png[/IMG]
[IMG]http://i62.tinypic.com/10nu62p.png[/IMG]
Did I do something wrong?[/QUOTE] Try this ITEM.name = "mosin"
ITEM.class = "weapon_mosin"
ITEM.uniqueID = "weapon_mosin"
ITEM.type = "weapon_rifle"
ITEM.model = Model("models/weapons/w_grub_mosin.mdl")
ITEM.price = 150
ITEM.desc = "mosin."
ITEM.category = "Weapons"
ITEM.flag = "V"
Or if its a gun that is bolt action that you press r after 1 shot try this
ITEM.name = "mosin"
ITEM.class = "weapon_mosin"
ITEM.uniqueID = "weapon_mosin"
ITEM.type = "weapon_crossbow"
ITEM.model = Model("models/weapons/w_grub_mosin.mdl")
ITEM.price = 150
ITEM.desc = "mosin."
ITEM.category = "Weapons"
ITEM.flag = "V"
[QUOTE=Austin1456;46216498]Try this ITEM.name = "mosin"
ITEM.class = "weapon_mosin"
ITEM.uniqueID = "weapon_mosin"
ITEM.type = "weapon_rifle"
ITEM.model = Model("models/weapons/w_grub_mosin.mdl")
ITEM.price = 150
ITEM.desc = "mosin."
ITEM.category = "Weapons"
ITEM.flag = "V"
Or if its a gun that is bolt action that you press r after 1 shot try this
ITEM.name = "mosin"
ITEM.class = "weapon_mosin"
ITEM.uniqueID = "weapon_mosin"
ITEM.type = "weapon_crossbow"
ITEM.model = Model("models/weapons/w_grub_mosin.mdl")
ITEM.price = 150
ITEM.desc = "mosin."
ITEM.category = "Weapons"
ITEM.flag = "V"[/QUOTE]
dude, he posted this 4 months ago
[QUOTE=Zelpa;46197710]I could throw together a pack without the player model includes so they work for Nutscript.[/QUOTE]
That would be pretty swell of you.
[QUOTE=sants1;46219686]dude, he posted this 4 months ago[/QUOTE] Trying to help people is not allowed here? kthxbye
[QUOTE=Austin1456;46222830]Trying to help people is not allowed here? kthxbye[/QUOTE]
not when it's 4 months late. he wouldn't notice your reply
How would I go about giving a user access to join a faction/create a character in a specific faction.
Example: On the character create list it would say "Civil Protection", ect.
[QUOTE=Icee2199;46223923]How would I go about giving a user access to join a faction/create a character in a specific faction.
Example: On the character create list it would say "Civil Protection", ect.[/QUOTE]
[code]/plywhitelist <name> "Civil Protection"[/code]
;)
Welcome to the thread.
=) Thanks!
How would I go about making doors un-ownable? Or make them belong to a specific faction?
[QUOTE=Icee2199;46225287]How would I go about making doors un-ownable? Or make them belong to a specific faction?[/QUOTE]
/doorsetunownable
It's optional but if you want to name the door + make it unownable:
/doorsetunownable <Name>
For faction doors, there's a Combine lock in the entities menu for example. Pretty self-explanatory.
Hey guys im new to lua i know a little bit when i installed your newanimations plugin i got this error spamming my console help please :)
[ERROR] gamemodes/nutscript/gamemode/core/sh_hooks.lua:178: attempt to index local 'animClass' (a nil value)
What's with the item duplication glitch in Nutscript?
If the server crashes/you disconnect with an item equipped (from what I've seen) you get a duplicate of the weapon/item you have equipped. This could destroy economies if people figure out exactly how it works. Is there a (temporary) fix for this?
Also /charban and /chardelete don't work most of the time, we PK'd someone yesterday and they rose from the dead three times. I tried deleting their char with /chardelete and that didn't work at all, /charban seemed to do something (they appeared back at spawn), but at the end of it, they were back and pretending like nothing happened. If I recall correctly we had to resort to deleting the character from the SQL.
Also please don't say stupid shit like wait for 1.1, I don't want to have to wait months for simple features to be fixed.
[QUOTE=Pastor_Necro;46228864]What's with the item duplication glitch in Nutscript?
If the server crashes/you disconnect with an item equipped (from what I've seen) you get a duplicate of the weapon/item you have equipped. This could destroy economies if people figure out exactly how it works. Is there a (temporary) fix for this?
Also /charban and /chardelete don't work most of the time, we PK'd someone yesterday and they rose from the dead three times. I tried deleting their char with /chardelete and that didn't work at all, /charban seemed to do something (they appeared back at spawn), but at the end of it, they were back and pretending like nothing happened. If I recall correctly we had to resort to deleting the character from the SQL. Also please don't say stupid shit like wait for 1.1, I don't want to have to wait months for simple features to be fixed.[/QUOTE]
Read Rainbows Comment He/She Fixed it
[QUOTE=Boom Rainbow;46207958]Fixed it, there was this one mistype in sh_commands I believe under the nutscript file. There was something in the code that was spelled "Escpae" so I switched it to "Escape" and it worked fine. You might want to commit that to the Github if you can. I did get an error before, but yeah I already fixed that myself.[/QUOTE]
Anybody know of a decent way to grab player info from a ragdoll of the player.
Mainly I'm just trying to figure out a way of using trace to see if player is looking at a valid player, and grab a NutVar from the target player.
Edit: Figured it out, was being a goddamn idiot.
Thanks for all the help so far guys!
Is there any website/place I could find all of the commands for NutScript and HL2RP?
[QUOTE=Chessnut;46235616][url]https://github.com/CloudSixteen/Clockwork/pull/139[/url][/QUOTE]
If you want to get petty, most of NutScript's functions originate from functions I wrote initially, and even this code is just a slightly modified version of the code above it which I wrote.
[QUOTE=kurozael;46238754]If you want to get petty, most of NutScript's functions originate from functions I wrote initially, and even this code is just a slightly modified version of the code above it which I wrote.[/QUOTE]
Even If it is, Better than copy and paste.
copy and pasted without the author? even worse.
[QUOTE=rebel1324;46238943]Even If it is, Better than copy and paste.
copy and pasted without the author? even worse.[/QUOTE]
Never copy and pasted, unless you're talking about the angle values, in which case I'm not gonna get permission to use a sequence of 3 floats.
Sorry, you need to Log In to post a reply to this thread.