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

[REQ] CVARs changed before map change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mattisbogus
Senior Member
Join Date: Jun 2009
Location: North Carolina, USA
Old 02-08-2010 , 16:09   [REQ] CVARs changed before map change
Reply With Quote #1

I have been working on a plugin for my server that I haven't been able to get right. I have been trying to learn how to understand code from looking at others work, but I still need lots & lots of time to understand all functions, and just so much I don't know right now, so to no surprise why I can't figure this out on my own.

I just need some code that can execute 2 server commands to change 2 CVARs 1 minute before each map changes. In addidtion though, I need the plugin to retrieve which team is human and which team is bot, and make the changes to CVARs accordingly:

If Human team is CT before map change, send server commands: "ajc_team 1" & "pb_bot_join_team CT" else

If Human team is T before map change, send server commands: "ajc_team 2" & "pb_bot_join_team T"

I hope this is possible, would greatly appreciate it .
mattisbogus 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 22:06.


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