General > Developers Corner

Extra credit for certain rank

<< < (2/3) > >>

ojbristow:
Sorry, what file does this go in, at the minute in looking at traitor_state.lua and cant see where I would slot this in. If im in the right place that is.

Cobalt:

--- Quote from: Ven01273 on January 03, 2014, 03:24:18 PM ---What's with the extra ")" at the end of your code?

--- End quote ---
Because I hooked that function. Also I missed an end, edited the original post.
--- Quote from: ojbristow on January 03, 2014, 03:27:32 PM ---Sorry, what file does this go in, at the minute in looking at traitor_state.lua and cant see where I would slot this in. If im in the right place that is.

--- End quote ---
Don't put it in ttt gamemode files, put it in lua/autorun/server
Also make sure you confgure it, don't just throw it in there because right now it won't do anything. You have to give them the credit first.

ojbristow:
Thank you, Im pretty new to lua. Can you explain what I have to configure please?

Owen

Cobalt:

--- Quote from: ojbristow on January 03, 2014, 03:34:21 PM ---Thank you, Im pretty new to lua. Can you explain what I have to configure please?

Owen

--- End quote ---
How do you want the players to get credits?

ojbristow:
So, when someone in the supporter rank is selected as a T, they will automatically get it at the start?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version