Hi, so im trying to make it so that when players are automaticly put into classes.
[CODE]
if (SERVER) then
nut.char.hookVar("charname", "guardranks", function(character)
local client = character.player
if (IsValid(client) and client:Team() == FACTION_CST and string.find(character:getVar("charname"), "Guardsman")) then
client:getChar():setClass(CLASS_CST_GUARD)
print("test")
end
end)
end
[/CODE]
This is what i have, no erros, but nothing is happening when i change my name to Guardsman. Im in the right faction. It's based on the nutscript framework.
Sorry, you need to Log In to post a reply to this thread.