Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: epictroller629 on October 14, 2018, 11:14:26 AM
-
I need help with these commands i cant see any of them in the XGui please help
Game mode(s) I am having this problem on:
DarkRP
local CATERGORY_NAME = "Respawn"
function ulx.respawn( calling_ply, target_ply )
if not target_ply:Alive() then
target_ply:Spawn()
ulx.fancyLogAdmin( calling_ply, true, "#A Respawned #T", target_ply )
end
end
local respawn = ulx.command( CATERGORY_NAME, "ulx respawn", ulx.respawn, "!respawn", true )
respawn:addParam{ type=ULib.cmds.PlayerArg }
respawn:defaultAccess( ULib.ACCESS_ADMIN )
respawn:help( "Respawns a player/target cmd made by Drew" )
function ulx.srespawn( calling_ply, target_ply )
if not target_ply:Alive() then
target_ply:Spawn()
ulx.fancyLogAdmin( calling_ply, true, "", target_ply )
end
end
local respawn = ulx.command( CATERGORY_NAME, "ulx srespawn", ulx.srespawn, "!srespawn", true )
respawn:addParam{ type=ULib.cmds.PlayerArg }
respawn:defaultAccess( ULib.ACCESS_ADMIN )
respawn:help( "Silenty respawns a player/target cmd made by Drew" )
-
I'm pretty sure it's because both of your commands use the same variable ("respawn") when defining the command.
-
I'm pretty sure it's because both of your commands use the same variable ("respawn") when defining the command.
Well When I Has Only one command it still didnt work why?
-
If you tried removing one after you had them both in, they'd still be defined in data/ulib/misc_registered.txt
-
I'm Saying I Added srespawn After a test with just respawn
-
And, if removing/deleting the misc_registered.txt doesn't help, we really can't read minds by looking at code.
At first glance for the time most of us have to take, the command should work, IF it's registered on both client and server.
If there are errors, look for them at server startup in server console, and in both server and game console when trying to run the command.
-
I Have Fixed My Problem Thx For The Help ;) :)