switch players team each round
I need to know how to make all the players switch teams every round. Example: Round ends. Terrorists become CT's and CT's become T's. Teams switch every round.
I really really need to know how, and can you please tell me what Module i'd need for this? Thanks in advance. |
Re: switch players team each round
oh, and I also need to know how you can check to see if a player is T or CT.
for example (this isn't what I'm coding): Let's say I wanted T's to all have 200 HP. I know about making the cvar, and having the HP set to the cvar, and how to do that. But how would I make it so that it only happens for T's / CT's ? Hope someone can help with these questions. EDIT: Alrighty here, through searching a bit more, I found: Code:
register_logevent("logevent_round_end", 2, "1=Round_End") If so, I know just need to know how to switch the players to the other teams at this round end. If anybody would be willing to make a little tiny script for me, like a whole plugin, but just really basic and simple, using these features, I'd be sure to give you ++karma and many credits in my new plugin :D oh and also, what module is required for this: Code:
register_logevent("logevent_round_end", 2, "1=Round_End") |
Re: switch players team each round
Code:
The Function Reference will come in handy in future. |
Re: switch players team each round
I'm sorry but that whole code looks like a foreign language to me because I'm really new. I don't understand what that code does :\
Do you think you might be able to whip up a simple plugin that changes every players team on round end? oh, and without killing them ;) comments on teh code explaining what the codes do would REALLY pwn :D |
Re: switch players team each round
um.. thats how its done
T0t4lly! |
Re: switch players team each round
:)
|
Re: switch players team each round
Okay thank you VERY much!
I can't wait to finish my new plugin! argh! +karma |
Re: switch players team each round
Sorry for double post but i needed you to see this..
I need to know how to check if a user is on T or CT.. because this plugin im creating involves terrorists and CT's having different weapons and stuff.. |
Re: switch players team each round
see get_user_team() or cs_get_user_function() function.
http://www.amxmodx.org/funcwiki.php?go=func&id=159 http://www.amxmodx.org/funcwiki.php?go=func&id=199 |
Re: switch players team each round
Code:
|
| All times are GMT -4. The time now is 21:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.