Ulysses

Ulysses Stuff => Suggestions => Topic started by: BlitherLlama on June 28, 2016, 05:55:27 AM

Title: [Request] Give weapon on spawn
Post by: BlitherLlama on June 28, 2016, 05:55:27 AM
This is more of a request than a suggestion, but I was wondering if anyone could make
it where a user is automatically given weapons when they spawn. (I'm no pro but is it possible to make it so
it uses a "give" command when they spawn?)I would like it so i can set it per person (e.g. give player lightsaber every time they respawn on any job)
Title: Re: [Request] Give weapon on spawn
Post by: OpticPotatOS on June 28, 2016, 08:49:52 AM
Chances are no one is going to make this for you, they might help you make it, but no one is gonna just write the code for you, doesn't help you all that much, or the person writing it.

Quick search on google and the Lua ref brings up theses two that may or may not help you:

GM:PlayerSpawn (https://wiki.garrysmod.com/page/GM/PlayerSpawn)
player_manager.OnPlayerSpawn (https://wiki.garrysmod.com/page/player_manager/OnPlayerSpawn)

Maybe look at some basic Lua examples, a tutorial or two, read some stuff on Garry's Mod Lua and try and write it for yourself ;)
Title: Re: [Request] Give weapon on spawn
Post by: JamminR on June 28, 2016, 06:20:54 PM
Perhaps one might look and search our forum for ideas, or even bits of code to customize to their own needs.
*ahem*
https://forums.ulyssesmod.net/index.php/topic,6183.0.html
Title: Re: [Request] Give weapon on spawn
Post by: OpticPotatOS on June 29, 2016, 12:42:48 AM
Perhaps one might look and search our forum for ideas, or even bits of code to customize to their own needs.
*ahem*
https://forums.ulyssesmod.net/index.php/topic,6183.0.html
Does that addon let you set it so people spawn with the weapons, and spawns with different weapons based on their (I assume darkRP) jobs? That's what this guy's asking for I believe
Title: Re: [Request] Give weapon on spawn
Post by: JamminR on June 29, 2016, 10:43:39 PM
No, but as I said, ideas, or code bits to build on.