Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » teleport on poke
Re: teleport on poke [message #203802 is a reply to message #203652] Wed, 14 June 2006 04:00 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
buffymaniack wrote on Tue, 13 June 2006 12:37

cheers mate, worked perfectly! any ideas about the PM on poke thingy? Cheers buffymaniack


I had 4 minutes before I had to go to work, so don't blame me if this is crap... but i think it should be fine for what you want...


//script
void reb_msg_poke::Poked(GameObject *obj,GameObject *poker)
{
	int x;
	x = Get_Int_Parameter("Player_Type");
	if (CheckPlayerType(poker,x))
	{
		return;
	}
	if (!Commands->Is_A_Star(poker))
	{
		return;
	}
	char message[1000];
	sprintf(message,"msg %d %s",Get_Player_ID(poker),Get_Parameter("Message"));
	Console_Input(message);
}


//registrant
ScriptRegistrant<reb_msg_poke> reb_msg_poke_Registrant("reb_msg_poke","Player_Type:int,Message:string");


//for the .h file
class reb_msg_poke : public ScriptImpClass {
	void Poked(GameObject *obj,GameObject *poker);
};



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SSAOW 1.5/Scripts.dll Problem
Next Topic: Renegade Destroyed Buildings
Goto Forum:
  


Current Time: Sat Sep 28 15:12:58 MST 2024

Total time taken to generate the page: 0.00700 seconds