Advertisement
SSN-ATomIC

ULX Model

Jan 28th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. function ulx.model( calling_ply, target_plys, model )
  2.  
  3. for k,v in pairs( target_plys ) do
  4.  
  5. if ( not v:Alive() ) then
  6.  
  7. ULib.tsayError( calling_ply, v:Nick() .. " is dead", true )
  8.  
  9. else
  10.  
  11. v:SetModel( model )
  12.  
  13. end
  14.  
  15. end
  16.  
  17. ulx.fancyLogAdmin( calling_ply, "#A set the model for #T to #s", target_plys, model )
  18.  
  19. end
  20. local model = ulx.command( "Fun", "ulx model", ulx.model, "!model" )
  21. model:addParam{ type=ULib.cmds.PlayersArg }
  22. model:addParam{ type=ULib.cmds.StringArg, hint="model" }
  23. model:defaultAccess( ULib.ACCESS_ADMIN )
  24. model:help( "Set a player's model." )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement