Raised This Month: $ Target: $400
 0% 

Reset things, when?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yatchi
Member
Join Date: Feb 2011
Location: Brazil
Old 04-10-2014 , 03:32   Reset things, when?
Reply With Quote #1

Hi!

When should I reset things? Like bools that stores clients, entities that had their color changed..

It's better on round_start, round_end or we have a even better way?

Thank you
yatchi is offline
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 04-10-2014 , 03:49   Re: Reset things, when?
Reply With Quote #2

Well to save player's info, round_end. This way it doesnt change anymore until the new session is active (new round)
You could use round_start to reset VIP features, like removing perks and making them retype the command.

Then again, if you are changing entity colors and other visual stuff, you may want to call it when noone is watching, so at round start when players at spawn.
__________________
SourcePawn Coding Level: Novice
DJ Data is offline
yatchi
Member
Join Date: Feb 2011
Location: Brazil
Old 04-10-2014 , 04:10   Re: Reset things, when?
Reply With Quote #3

Hmm.. I got it! Thanks :]
yatchi is offline
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 04-10-2014 , 04:23   Re: Reset things, when?
Reply With Quote #4

Alright hope it helped ;)
__________________
SourcePawn Coding Level: Novice
DJ Data is offline
Reply



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 16:34.


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