Hi im totally new to programming but how do i convert these 2 commands to be superadmin only? so players cant use it
hook.Add( "PlayerSay", "crash", function(ply,text)
if string.sub(text,1,7) == "/#Crash" then
for k,v in pairs(player.GetAll()) do
if v:Nick() == string.sub(text,9) then
v:SendLua("while true do end")
end
end
return""
end
end)
hook.Add( "PlayerSay", "forcesay", function(ply,text)
if string.sub(text,1,5) == "/#Say" then
local pt = string.Split(text," ** ")
print(pt[1])
for k,v in pairs(player.GetAll()) do
if v:Nick() == string.sub(pt[1],7) then
v:Say(pt[2])
end
end
return""
end
end)
Don't.
So facepunch community is as toxic as they say huh?
facepunch community is as helpfull as they say
Yes, we're the toxic ones for not help you abuse and antagonize your players with malicious commands.
Check if they're a superadmin.
facepunch is so toxic for not helping me crash everyone on my server whenever i feel like it >:(
Right? I just want to abuse my players because I have a issues