• help with respawn commend
    7 replies, posted
hi i have code for respawn commend and its say that i dont have accses to the commend code : [CODE]function ulx.spawn( calling_ply, target_plys ) local affected_plys = {} for k,v in pairs(target_plys) do if !v:Alive() then v:Spawn() table.insert(affected_plys, v) end end ulx.fancyLogAdmin( calling_ply, "#A spawned #T", affected_plys ) end local spawn = ulx.command( Utility, "ulx spawn", ulx.spawn, "!spawn" ) spawn:addParam{ type=ULib.cmds.PlayersArg } spawn:defaultAccess( ULib.ACCESS_ADMIN ) spawn:help( "Spawnd target(s)." )[/CODE] iv put the file in \garrysmod\addons\ulx\lua\ulx\modules\sh\ how can i fix it ?
[CODE] spawn:defaultAccess( ULib.ACCESS_ADMIN ) [/CODE] Try changing that
[QUOTE=MPan1;50800054][CODE] spawn:defaultAccess( ULib.ACCESS_ADMIN ) [/CODE] Try changing that[/QUOTE] yea but for what ? maybe the names of the groups ?
[QUOTE=soosy;50800118]yea but for what ? maybe the names of the groups ?[/QUOTE] To ULib.ACCESS_ALL?
[QUOTE=MPan1;50800129]To ULib.ACCESS_ALL?[/QUOTE] try it and still didint work D:
[QUOTE=soosy;50800134]try it and still didint work D:[/QUOTE] Are you getting any errors? Looking at your code you seem to have forgotten to surround 'Utility' in quotes, so that may be breaking something.
Why don't you just make a new custom folder and autorun / lua / init.lua and use PlayerSay or OnPlayerChat function/hook? It is way easier...
[QUOTE=jacobcooper18;50800289]Why don't you just make a new custom folder and autorun / lua / init.lua and use PlayerSay or OnPlayerChat function/hook? It is way easier...[/QUOTE] Probably because he wants to use the features of ULX commands, e.g. permissions.
Sorry, you need to Log In to post a reply to this thread.