[code]
function GM:PlayerNoClip( ply )
if(ply:IsAdmin()) then
return true
else
ply:PrintMessage( HUD_PRINTTALK, "You must be Admin or above to noclip!" )
return false
end
[/code]
How in the rustybullethole is this not working?
:3
------------------------------------------------------
Help would be appreciated
You are missing an 'end' after 'return false'.
You forgot an "end".
Here's a rewritten version.
[lua]function GM:PlayerNoClip( ply )
if ( !ply:IsAdmin() ) then
ply:PrintMessage( HUD_PRINTTALK, "You must be admin to noclip!" )
return false
end
return true
end[/lua]
[editline]10:52PM[/editline]
DAMMIT. Ninja'd. :ninja: That's okay, because I provided code. :smile:
Oh wow, I don't believe I forgot to end it :3
you have been boxified for your efforts.
Thanks.