Raised This Month: $ Target: $400
 0% 

How do you make it the class you picked stays to next round.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
caked
Member
Join Date: Dec 2012
Old 12-29-2013 , 17:12   How do you make it the class you picked stays to next round.
Reply With Quote #1

Once you join the server there will be a class menu popping up and pick the following classes. Once picked and then later die, I want them to stay the same class next respawn or round.

A better e.g is a player died, then there next respawn they still have there same class from previous round.
caked is offline
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 12-29-2013 , 17:16   Re: How do you make it the class you picked stays to next round.
Reply With Quote #2

as long as you don't touch the variable that stores the class info, it will never change. So you don't need to do anything, if you don't want it to change.
akcaliberg is offline
caked
Member
Join Date: Dec 2012
Old 12-29-2013 , 17:39   Re: How do you make it the class you picked stays to next round.
Reply With Quote #3

My mod has auto respawn once they die they respawn again but with no previous weapons.
caked is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-29-2013 , 18:45   Re: How do you make it the class you picked stays to next round.
Reply With Quote #4

You need to store them in some sort of variable and then re-give them when they spawn.
__________________
fysiks is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 12-29-2013 , 19:45   Re: How do you make it the class you picked stays to next round.
Reply With Quote #5

If memory serves. Pretty sure I've already made you something like this? As long as you didn't change too much it should of worked

but im away from home for a while so won't be able to help till then.
__________________
Blizzard_87 is offline
caked
Member
Join Date: Dec 2012
Old 12-29-2013 , 19:54   Re: How do you make it the class you picked stays to next round.
Reply With Quote #6

Can you give me an example of the variable.
caked is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 12-29-2013 , 20:27   Re: How do you make it the class you picked stays to next round.
Reply With Quote #7

Quote:
Originally Posted by caked View Post
Can you give me an example of the variable.
checkout my LAME first mod i made.. pretty sure it uses the ability to save classes whether you die or not.

https://forums.alliedmods.net/showthread.php?t=204642

plus i think the above linked plugin should be unapproved lol... it was a very bad attempted at a first plugin when i started coding.
__________________
Blizzard_87 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-29-2013 , 21:14   Re: How do you make it the class you picked stays to next round.
Reply With Quote #8

Quote:
Originally Posted by caked View Post
Can you give me an example of the variable.
It depends on what you are trying to do.
__________________
fysiks 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 10:08.


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