Author Topic: [Request] Give weapon on spawn  (Read 4603 times)

0 Members and 1 Guest are viewing this topic.

Offline BlitherLlama

  • Newbie
  • *
  • Posts: 8
  • Karma: -4
[Request] Give weapon on spawn
« 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)
« Last Edit: June 28, 2016, 06:02:37 AM by BlitherLlama »

Offline OpticPotatOS

  • Jr. Member
  • **
  • Posts: 53
  • Karma: 0
  • GLaDOS
    • Gaming for Everyone
Re: [Request] Give weapon on spawn
« Reply #1 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
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 ;)
My website isn't my website, rather, it's the gaming network my sever is connected to.

ttt.gfe.nu

Unforeseen Consequences

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: [Request] Give weapon on spawn
« Reply #2 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
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline OpticPotatOS

  • Jr. Member
  • **
  • Posts: 53
  • Karma: 0
  • GLaDOS
    • Gaming for Everyone
Re: [Request] Give weapon on spawn
« Reply #3 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
« Last Edit: June 29, 2016, 09:12:35 AM by OpticPotatOS »
My website isn't my website, rather, it's the gaming network my sever is connected to.

ttt.gfe.nu

Unforeseen Consequences

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: [Request] Give weapon on spawn
« Reply #4 on: June 29, 2016, 10:43:39 PM »
No, but as I said, ideas, or code bits to build on.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming