frbnet Posted December 25, 2010 Share Posted December 25, 2010 any one that can help me on some codes to select 2 games in 1 form example one 20 slots ffa and one 12 slots cw in one form. Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted December 25, 2010 Share Posted December 25, 2010 if($params["configoption3"] == 'some id for game1'){ /* Do the follwing task */ $id = 'TC12231212'; } else if($params["configoption3"] == 'some id for game2'){ /* Do the follwing task */ $id = 'TC12231213'; } $billing_api_values["game_id"] = $id; This is just a very small example of what you can do. If you want to have a game id with slots you can have a separator like '@' and use the php explode function to gather the information you need. for example for the drop down in WHMCS Admin you have the id@slots|client sees this. Link to comment Share on other sites More sharing options...
frbnet Posted December 25, 2010 Author Share Posted December 25, 2010 Sorry my bad english. I meant 2 games in 1 form, so you order 2 games This is because I want to make clan package with 1 FFA and 1 cw server in a single order with a little discount, if it even is posibel ?? Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted December 25, 2010 Share Posted December 25, 2010 This is possible just make the creation code run twice with different ids being sent Link to comment Share on other sites More sharing options...
frbnet Posted December 25, 2010 Author Share Posted December 25, 2010 This is possible just make the creation code run twice with different ids being sent How do i do that ?? Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted December 26, 2010 Share Posted December 26, 2010 Create a new module using tcadmin_advanced code and modifying it to repeat the creation function. Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted December 26, 2010 Share Posted December 26, 2010 Here is a PHP class I just built that you and everyone else may use free of charge. TCKSource 1 File CLASS The class can be used to contain several different server setups Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.