- Initiateur de la discussion
 
  NathanYangunful
Geek
- Messages
- 56
- Score réaction
- 4
- Points
- 95
Bonjour, j'ai voulu créé une custom commands ulx pour mon serveur, j'ai suivi ce tuto a la lettre:     Mais lorsque que je vais sur mon serveur moi je n'est pas la catégorie et la commande.
 
Voici le script:
 
local CATEGORY_NAME = "Nathan"
 
function ulx.respawn( calling_ply, target_ply )
if not target_ply:Alive() then
target_ply:Spawn()
ulx.fancyLogAdmin( calling_ply, true, "respawned", target_ply )
end
end
 
local respawn = ulx.command( CATEGORY_NAME, "ulx respawn", ulx.respawn,
"!respawn", true )
respawn:addParam{ type=Ulib.cmds.PlayerArg }
respawn:defaultAcces( ulib.ACCESS_ADMIN )
respawn:help( "Respawns a player" )
end
 
(le meme que la vidéo)
 
J'espere que vous pourrez me dire pourquoi sa ne marche pas.
 Voici le script:
local CATEGORY_NAME = "Nathan"
function ulx.respawn( calling_ply, target_ply )
if not target_ply:Alive() then
target_ply:Spawn()
ulx.fancyLogAdmin( calling_ply, true, "respawned", target_ply )
end
end
local respawn = ulx.command( CATEGORY_NAME, "ulx respawn", ulx.respawn,
"!respawn", true )
respawn:addParam{ type=Ulib.cmds.PlayerArg }
respawn:defaultAcces( ulib.ACCESS_ADMIN )
respawn:help( "Respawns a player" )
end
(le meme que la vidéo)
J'espere que vous pourrez me dire pourquoi sa ne marche pas.
 
 