• Print

Author Topic: Player spawned in the server  (Read 4455 times)

0 Members and 1 Guest are viewing this topic.

Offline riki137

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
  • lol wuttermelon
    • SapphireWebsites
Player spawned in the server
« on: July 07, 2010, 12:45:37 pm »
How can i make that it will write to chat when player spawned on server?
Its only in ULX Logs but don't write to chat.

Thanks, Riki.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Player spawned in the server
« Reply #1 on: July 07, 2010, 01:14:39 pm »
Untested, but this should work. Just make a file in lua/autorun on your server and stick this code in it. It doesn't matter what the file is named.

Code: Lua
  1. local function onInitialSpawn( ply )
  2.     ULib.tsay( nil, ply:Nick() .. " has joined the server." )
  3. end
  4. hook.Add( "PlayerInitialSpawn", "doSayOnSpawn", onInitialSpawn )
  5.  
« Last Edit: July 07, 2010, 04:51:46 pm by JamminR »
Experiencing God's grace one day at a time.

Offline riki137

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
  • lol wuttermelon
    • SapphireWebsites
Re: Player spawned in the server
« Reply #2 on: July 15, 2010, 03:32:05 am »
Thanks, i will test it now.

Offline riki137

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
  • lol wuttermelon
    • SapphireWebsites
Re: Player spawned in the server
« Reply #3 on: July 15, 2010, 03:58:14 am »
It works, but joined i will replace with spawned in, ye?
Many thanks
« Last Edit: July 15, 2010, 04:04:24 am by riki137 »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2727
  • Karma: 430
    • |G4P| Gman4President
Re: Player spawned in the server
« Reply #4 on: July 15, 2010, 11:53:55 am »
You can edit the string to say whatever you want. It will still work so long as you do not change any of the actual lua syntax part of it.

Offline riki137

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
  • lol wuttermelon
    • SapphireWebsites
Re: Player spawned in the server
« Reply #5 on: July 20, 2010, 06:47:40 am »
Thanks, Really many thanks  ;D ;D
Everyone other want to made this for me for money 5GBP-10USD   :-\

  • Print