Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » created bots
Re: created bots [message #322970 is a reply to message #322921] Wed, 19 March 2008 11:34 Go to previous messageGo to previous message
SODPaddy is currently offline  SODPaddy
Messages: 233
Registered: August 2005
Location: Germany
Karma:
Recruit

i created this bot via c++

like:

			if (Type == 0 || Type == 1) {
		if (wcsicmp(Msg2, L"!bothavoc") == 0) {
			if (Commands->Get_Money(Get_GameObj(ID)) >= 2000) {
				GameObject *obj = Get_GameObj(ID);
				Vector3 position = Commands->Get_Position(obj);
				position.Z += 5;
				position.X -= 5;
				Commands->Create_Object("CnC_GDI_MiniGunner_3Boss_Skirmish",position);
				Commands->Give_Money(Get_GameObj(ID),(float)-2000,false);
				char Message[100];
				sprintf(Message,"ppage %d [PB] %s your item created.", ID, Get_Player_Name_By_ID(ID));
				Console_Input(Message);
				} 
				else { 
				Commands->Give_Money(Get_GameObj(ID),0,false);
				char Message[100];
				sprintf(Message,"ppage %d [PB] Sorry, this item cost $2000", ID, Get_Player_Name_By_ID(ID));
			    Console_Input(Message);

			} 
		} 
	}


Look -> http://ehserv.netgamezone.de/forum/viewthread.php?forum_id=9&thread_id=1


Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu

[Updated on: Wed, 19 March 2008 11:36]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: creating skins
Next Topic: How to change walk animation?
Goto Forum:
  


Current Time: Wed Jan 08 14:01:13 MST 2025

Total time taken to generate the page: 0.01604 seconds