hi guy at the moment the only way i know to let some users ones that i trust use the protection script is to make them admins so i added a group called Protector but theres a line of code im suck that no matter how i change it, it wont work im very new to lua but have some ex with php and this looks alot like it so maybe thats whats putting me wrong
anyway the code is
-- All following commands are only usable when the player is an admin!
if event.player:isAdmin() == false then
event.player:sendTextMessage("[#FF0000]You are not an admin");
return;
end
i was thinking this should work
-- All following commands are only usable when the player is an admin!
if event.player:isAdmin() or isProtector() == false then
event.player:sendTextMessage("[#FF0000]You are not an admin");
return;
end
or this code
-- All following commands are only usable when the player is an admin!
if event.player:isAdmin() == false then
elseif event.player:isProtector() == false then
event.player:sendTextMessage("[#FF0000]You are not an admin");
return;
end
can anyone help with this or even make a script for user groups cheers