• DarkRP respawner (Need help)
    2 replies, posted
Hello! I'm pretty new to lua, but I'm getting better and better.. I have a problem with a very simple code atm.. [CODE]local function unstuck( ply, text) if(string.sub ( text, 1, 6) == "!stuck" ) then if ply:Alive() then ply:Kill() ply:Spawn() PrintMessage( HUD_PRINTTALK, "Player: "..ply:Nick().." was respawned by using the !stuck command.") end end end[/CODE] Any ideas why this will not work? I can really not see what's wrong with it.. Thanks!
Do you hook [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index8519.html"]PlayerSay[/URL]?
Hmmm.. I will give it a try! [editline]2nd December 2013[/editline] [QUOTE=Busan1;43045615]Do you hook [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index8519.html"]PlayerSay[/URL]?[/QUOTE] I forgot to add the hook.. Thanks for the help man! *Solved*
Sorry, you need to Log In to post a reply to this thread.