Raised This Month: $32 Target: $400
 8% 

Solved [REQ] Random namer every round.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
spancer35
Senior Member
Join Date: Dec 2014
Location: City 17
Old 02-19-2018 , 13:52   [REQ] Random namer every round.
Reply With Quote #1

Hello everyone,

I need a plugin to rename everyone in server at round start. Plugin should pick names from a file.

e.g.
names.txt
Code:
Delta
Bravo
Charlie
Echo
Foxtrot
Golf
Hotel
India
Juliett
Kilo
Lima
Miko
November
Oscar
Papa
Quebec
Romeo
__________________

Last edited by spancer35; 02-24-2018 at 14:17. Reason: solved
spancer35 is offline
spancer35
Senior Member
Join Date: Dec 2014
Location: City 17
Old 02-21-2018 , 10:35   Re: [REQ] Random namer every round.
Reply With Quote #2

up?
__________________
spancer35 is offline
timtam95
Member
Join Date: Feb 2018
Old 02-21-2018 , 17:15   Re: [REQ] Random namer every round.
Reply With Quote #3

Place names.txt in tf/addons/sourcemod.

I'm assuming this is for CSGO. Hook "teamplay_round_start" if it's for TF2.
timtam95 is offline
timtam95
Member
Join Date: Feb 2018
Old 02-21-2018 , 17:16   Re: [REQ] Random namer every round.
Reply With Quote #4

Quote:
Originally Posted by timtam95 View Post
Place names.txt in tf/addons/sourcemod.

I'm assuming this is for CSGO. Hook "teamplay_round_start" if it's for TF2.
Attached Files
File Type: sp Get Plugin or Get Source (RandomNameChanger.sp - 279 views - 1.4 KB)
timtam95 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 02-21-2018 , 18:05   Re: [REQ] Random namer every round.
Reply With Quote #5

You should get used to the new syntax, especially since it's been around for a few years already.
Also why read the file every round start if you're going to store it in an ArrayList anyways, might as well load it on mapstart or plugin start and store it in an ArrayList, then on round start clone the list and use the clone to do your name pick.
Mitchell is offline
spancer35
Senior Member
Join Date: Dec 2014
Location: City 17
Old 02-22-2018 , 13:42   Re: [REQ] Random namer every round.
Reply With Quote #6

Works perfectly. Thank you so much! Can we make some additions?.
  • New names should set after round starts. (35 seconds after)
  • Plugin should set our real nicknames again at end of the round.
__________________
spancer35 is offline
timtam95
Member
Join Date: Feb 2018
Old 02-22-2018 , 19:36   Re: [REQ] Random namer every round.
Reply With Quote #7

Give this a try.
Attached Files
File Type: sp Get Plugin or Get Source (RandomNameChanger.sp - 256 views - 2.2 KB)
timtam95 is offline
spancer35
Senior Member
Join Date: Dec 2014
Location: City 17
Old 02-23-2018 , 11:30   Re: [REQ] Random namer every round.
Reply With Quote #8

Quote:
Originally Posted by timtam95 View Post
Give this a try.
Timer is working well but end of the round real names doesn't works. If you can execute "name XX" command to all players it'll work.
__________________
spancer35 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode