Raised This Month: $ Target: $400
 0% 

DoD Class 5/13/07 v0.9d


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
diamond-optic
Veteran Member
Join Date: May 2005
Old 02-14-2007 , 22:03   Re: DoD Class 2/13/07 v0.6a
Reply With Quote #1

Quote:
Originally Posted by allenwr View Post
and americans british and allies are all the same team... just different names... now if you have a better name to call each of the team, please tell me...
i mean something like this:

yours:
Code:
	new team[8]
	dod_get_pl_teamname(id, team,7)
	
	
	if(equali(team,"allies")) {
		dod_set_model(id, "us-inf")
	}

	else if(equali(team,"axis")) {
		dod_set_model(id, "axis-inf")
	}
could be:
Code:
	new team = get_user_team(id)
	
	switch(team)
		{
		//Allies
		case 1: {
			new is_brit = dod_get_map_info(MI_ALLIES_TEAM)
			
			switch(is_brit)
				{
				//American
				case 0: {
					new is_para = dod_get_map_info(MI_ALLIES_PARAS)
					
					switch(is_para)
						{
						//Not Para
						case 0: dod_set_model(id, "us-inf")
						//Is Para
						case 1: dod_set_model(id, "us-para")
						}
					}
				//british
				case 1: dod_set_model(id, "brit-inf")
				}
			}
		//Axis
		case 2: {
			new is_para = dod_get_map_info(MI_AXIS_PARAS)
					
			switch(is_para)
				{
				//Not Para
				case 0: dod_set_model(id, "axis-inf")
				//Is Para
				case 1: dod_set_model(id, "axis-para")
				}
			}
		
		
		
		}
which will detect if its axis, american, or british.. and if axis or american.. it checks for para.. so that the right models get set
__________________

Last edited by diamond-optic; 02-14-2007 at 22:10.
diamond-optic is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-15-2007 , 15:39   Re: DoD Class 2/13/07 v0.6a
Reply With Quote #2

You obviously aren't going to be able to maintain this. You also didn't name anything correctly, randomly switching between styles inside sections. I can't see the purpose as useful either, considering you have to think about what gun (and guess how you spell it out) in order to do anything, which can get very annoying.

Unapproved.

Edit: allenwr has since been banned for the comments below (which are deleted)
__________________

Last edited by Hawk552; 02-15-2007 at 21:35.
Hawk552 is offline
Send a message via AIM to Hawk552
Old 02-15-2007, 20:35
allenwr
This message has been deleted by Hawk552. Reason: crazy outburst or something
Old 02-15-2007, 20:37
Hawk552
This message has been deleted by Hawk552. Reason: crazy outburst or something
Old 02-15-2007, 20:40
Zenith77
This message has been deleted by Hawk552. Reason: crazy outburst or something
Old 02-15-2007, 20:41
allenwr
This message has been deleted by Hawk552. Reason: crazy outburst or something
Old 02-15-2007, 20:48
FormulaZero
This message has been deleted by Hawk552. Reason: crazy outburst or something
Old 02-15-2007, 20:51
Da_sk8rboy
This message has been deleted by Hawk552. Reason: crazy outburst or something
Old 02-15-2007, 20:53
allenwr
This message has been deleted by Hawk552. Reason: crazy outburst or something
Old 02-15-2007, 20:55
FormulaZero
This message has been deleted by Hawk552. Reason: crazy outburst or something
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 11:06.


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