Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Editing Existing Code
Editing Existing Code [message #268581] Sun, 24 June 2007 19:09 Go to previous message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma:
General (4 Stars)
heres the code i got
		else if ((stricmp(Msg2, "!!turrent") == 0))
Pos = Commands->Get_Position(obj);
  Vector3 Pos.Z += 0;
GameObject *turret = Commands->Create_Object(team==0?"<preset>":"<name of object>",Pos);
			   Commands->Disable_Physical_Collisions(turret);
if (team == 1)
			   Commands->Set_Player_Type(turret,1);
                     Commands->Give_Money(obj,2500*-1.0f,false);
	}
}


dont mine the parts that are blank the only thing i need someone to help me is make it say a message when you buy it like this

"You Have Just Purchased <name>"

and if u dont have enough money make it says

"you dont have enough creds to purchase this"

please someone help

[Updated on: Sun, 24 June 2007 19:22]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: My First Code
Next Topic: Serverside
Goto Forum:
  


Current Time: Mon Dec 23 18:20:23 MST 2024

Total time taken to generate the page: 0.00737 seconds