Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » 2 More Codes Needed
Re: 2 More Codes Needed [message #269743 is a reply to message #269701] Sat, 30 June 2007 02:00 Go to previous messageGo to previous message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma:
General (4 Stars)

heres what i got for buying vechs heres the sample for nod and gdi

else if (stricmp(Msg2,"!Buy Stank") == 0) {
	if (Get_Object_Type(obj) == 1) {
	        int Cost = 900;
	        char message[256];
          Create_Vehicle(CnC_Nod_Stealth_Tank,0.0f,object,1);
			sprintf(message,"msg Player %s has Purchase A Stank",Get_Player_Name_By_ID(ID));
			Console_Input(message);
		else {
			sprintf(message,"ppage %d Sorry, a Stank costs $900",ID);
			Console_Input(message);
		}
	}
}



else if (stricmp(Msg2,"!Buy mammy") == 0) {
	if (Get_Object_Type(obj) == 1) {
	        int Cost = 1500;
	        char message[256];
          Create_Vehicle(CnC_GDI_Mammoth_Tank,0.0f,object,1);
			sprintf(message,"msg Player %s has Purchase A mammy",Get_Player_Name_By_ID(ID));
			Console_Input(message);
		else {
			sprintf(message,"ppage %d Sorry, a mammy costs $1500",ID);
			Console_Input(message);
		}
	}
}



and heres what i got for buying a char
else if (stricmp(Msg2,"!havoc") == 0) {
	if (Get_Object_Type(obj) == 1) {
	        int Cost = 1000;
	        char message[256];
                Change_Character(object,CnC_GDI_MiniGunner_3Boss)
			sprintf(message,"msg Player %s has Purchase A havoc",Get_Player_Name_By_ID(ID));
			Console_Input(message);
		else {
			sprintf(message,"ppage %d Sorry, a havoc costs $1000",ID);
			Console_Input(message);
		}
	}
}

some parts i had trouble filiing out can anyone tell me what parts to fill out,fix and if it will work?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Roadkill script?
Next Topic: ren modeling
Goto Forum:
  


Current Time: Sat Dec 21 23:01:46 MST 2024

Total time taken to generate the page: 0.00713 seconds