AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How do you make it the class you picked stays to next round. (https://forums.alliedmods.net/showthread.php?t=232377)

caked 12-29-2013 17:12

How do you make it the class you picked stays to next round.
 
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.

akcaliberg 12-29-2013 17:16

Re: How do you make it the class you picked stays to next round.
 
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.

caked 12-29-2013 17:39

Re: How do you make it the class you picked stays to next round.
 
My mod has auto respawn once they die they respawn again but with no previous weapons.

fysiks 12-29-2013 18:45

Re: How do you make it the class you picked stays to next round.
 
You need to store them in some sort of variable and then re-give them when they spawn.

Blizzard_87 12-29-2013 19:45

Re: How do you make it the class you picked stays to next round.
 
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.

caked 12-29-2013 19:54

Re: How do you make it the class you picked stays to next round.
 
Can you give me an example of the variable.

Blizzard_87 12-29-2013 20:27

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

Originally Posted by caked (Post 2078239)
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.

fysiks 12-29-2013 21:14

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

Originally Posted by caked (Post 2078239)
Can you give me an example of the variable.

It depends on what you are trying to do.


All times are GMT -4. The time now is 10:08.

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