Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripts Part 3
Re: Scripts Part 3 [message #267471 is a reply to message #266592] Wed, 20 June 2007 01:30 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
Is he klote lol?

http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Scripts Part 3 [message #267545 is a reply to message #266592] Wed, 20 June 2007 12:44 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
can anyone help me still?

 
		else if (stricmp(Msg2,"!Spy_Test") == 0)
			{
			if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
						Change_Character(obj,"Nod_Kane_HologramHead_small");
				Commands->Set_Is_Visible(obj,false);
				Commands->Give_Powerup(obj,"CnC_POW_MineRemote_02",false);
				Commands->Give_Powerup(obj,"POW_RepairGun_Player",false);
				Commands->Give_Powerup(obj,"POW_VoltAutoRifle_Player",false);
				Commands->Give_Powerup(obj,"POW_RamjetRifle_Player",false);
				Commands->Give_Powerup(obj,"POW_Railgun_Player",false);
				Commands->Give_Powerup(obj,"POW_Shotgun_Player",false);
				Commands->Give_Powerup(obj,"CnC_POW_RocketLauncher_Player",false);
				Commands->Give_Powerup(obj,"POW_Stealth_Suit",false); 

why wont it go stealth?
Re: Scripts Part 3 [message #267553 is a reply to message #266592] Wed, 20 June 2007 13:52 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
i aslo try t make a simple ! command then pasges u with a text what did i do wrong?
			{
  if (stricmp(Msg2,"!version") == 0)  
{
	sprintf(Text,"PPAGE %d <nick>",PlayerID);
	Console_Input(Text);
			}
			{
 if (stricmp(Msg2,"!Modders") == 0)
{
	 sprintf(Text,"PPAGE %d Reborn,<other nick>",PlayerID();
	 Console_Input(Text);
			}
			{
 if (stricmp(Msg2,"!sites") == 0)
{
	  sprintf(Text,"PPAGE %d <message> !",PlayerID);
	  Console_Input(Text);
}
			}
			}
			}
}
}
}

[Updated on: Wed, 20 June 2007 13:52]

Report message to a moderator

Re: Scripts Part 3 [message #267559 is a reply to message #267545] Wed, 20 June 2007 14:18 Go to previous messageGo to next message
crazfulla is currently offline  crazfulla
Messages: 667
Registered: September 2006
Location: Aotearoa
Karma: 0
Colonel
joe937465 wrote on Wed, 20 June 2007 14:44

can anyone help me still?

 
		else if (stricmp(Msg2,"!Spy_Test") == 0)
			{
			if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
						Change_Character(obj,"Nod_Kane_HologramHead_small");
				Commands->Set_Is_Visible(obj,false);
				Commands->Give_Powerup(obj,"CnC_POW_MineRemote_02",false);
				Commands->Give_Powerup(obj,"POW_RepairGun_Player",false);
				Commands->Give_Powerup(obj,"POW_VoltAutoRifle_Player",false);
				Commands->Give_Powerup(obj,"POW_RamjetRifle_Player",false);
				Commands->Give_Powerup(obj,"POW_Railgun_Player",false);
				Commands->Give_Powerup(obj,"POW_Shotgun_Player",false);
				Commands->Give_Powerup(obj,"CnC_POW_RocketLauncher_Player",false);
				Commands->Give_Powerup(obj,"POW_Stealth_Suit",false); 

why wont it go stealth?

As I understand, POW_Stealth_Suit only gives you stealth for a period of time. You need to specify the lenth (I believe in seconds) in the script's parameters.

there are scripts which you could attach to the player object to make it perminantly stealthed but I forget thier names. Check the thread titled "Single Player Scripts' or similar.


"GEoDLeto wrote:"

so what you are saying it is gonna take even longer before this thing is finished
So the topic title should be changed to: a sucky little "teaser" from C&C Reborn has been released

"halo2pac wrote:"

Unless they are girls, I am not going to bone them.
Re: Scripts Part 3 [message #267566 is a reply to message #266592] Wed, 20 June 2007 15:21 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
well i trhink the scripts is TDA_Stleath **** how do i add that and the para isnt it
command-->attach_scripts:JFW_Flying_Infantry;
or somthing but what about the param?
Re: Scripts Part 3 [message #267567 is a reply to message #267553] Wed, 20 June 2007 15:21 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
joe937465 wrote on Wed, 20 June 2007 16:52

i aslo try t make a simple ! command then pasges u with a text what did i do wrong?



Here is a simple chat hook addition that when the player says "!testmsg" the server will send a message to the server saying "hey man, don't test me".

if (stricmp(Msg2,"!testmsg") == 0)  
{
        char Text[256];
	sprintf(Text,"msg hey man, don't test me");
	Console_Input(Text);
			}



You are basically missing the "Char Text[256];"



[Updated on: Wed, 20 June 2007 15:22]

Report message to a moderator

Re: Scripts Part 3 [message #267569 is a reply to message #266592] Wed, 20 June 2007 15:26 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
Colonel
Use Commands->Enable_Stealth to make someone stealth. They will only be stealthed for clients with bhs.dll though.

Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )
Re: Scripts Part 3 [message #267575 is a reply to message #266592] Wed, 20 June 2007 15:47 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
ty reborn and Whitedragon and rest now reborn the char Text[256];

1)what does it do?

2)and is i a message right? now how do i change it so i can also add ones that are pm's

EIDT:i cant seem to get them to work Sad
			}
if (stricmp(Msg2,"!testmsg") == 0)  
{
        char Text[256];
	sprintf(Text,"msg hey man, don't test me");
	Console_Input(Text);
			}
}
}
}



3) how can i make the spectate move around screen faster?

4) is there a script that makes it where u cant pick up weapons or crates?


5) it still wont go stealth
			else if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
						Change_Character(obj,"Nod_Kane_HologramHead_small");
				Commands->Set_Is_Visible(obj,false);
				Commands->Give_Powerup(obj,"CnC_POW_MineRemote_02",false);
				Commands->Give_Powerup(obj,"POW_RepairGun_Player",false);
				Commands->Give_Powerup(obj,"POW_VoltAutoRifle_Player",false);
				Commands->Give_Powerup(obj,"POW_RamjetRifle_Player",false);
				Commands->Give_Powerup(obj,"POW_Railgun_Player",false);
				Commands->Give_Powerup(obj,"POW_Shotgun_Player",false);
				Commands->Give_Powerup(obj,"CnC_POW_RocketLauncher_Player",false);
Commands->Enable_Stealth;

[Updated on: Wed, 20 June 2007 16:10]

Report message to a moderator

Re: Scripts Part 3 [message #267581 is a reply to message #266592] Wed, 20 June 2007 16:32 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
Colonel
1. Read some C++ tutorials about character arrays.

2. You'd send a page like this: sprintf(Text,"ppage %d message",PlayerID);

3. It's not possible to set a preset's speed with the current scripts.dll stuff. The best you could do is change the character to whichever one of the mutants that is faster than the normal characters.

4. There's no script that can do this.

5. You need to do Commands->Enable_Stealth(obj,true);


Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )
Re: Scripts Part 3 [message #267583 is a reply to message #267581] Wed, 20 June 2007 16:41 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Whitedragon wrote on Thu, 21 June 2007 00:32


5. You need to do Commands->Enable_Stealth(obj,true);


Commands->Set_Model(obj, "c_ag_nod_stlth"); *

That works for clients without bhs.dll afaik.






Re: Scripts Part 3 [message #267608 is a reply to message #266592] Wed, 20 June 2007 20:25 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
ermm not working >.<
Re: Scripts Part 3 [message #267640 is a reply to message #266592] Thu, 21 June 2007 00:06 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
nvm i got it ty
now can i make it so i cant get ran over?
Re: Scripts Part 3 [message #267675 is a reply to message #266592] Thu, 21 June 2007 01:40 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
also cant pick up anything i ask this but i got to make 100% sure
Re: Scripts Part 3 [message #268011 is a reply to message #266592] Fri, 22 June 2007 02:48 Go to previous message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
ok no more answers? ok this is dead Sad
Previous Topic: GB
Next Topic: SSGM, previously SSAOW, Version 2.0
Goto Forum:
  


Current Time: Sat Dec 21 01:13:25 MST 2024

Total time taken to generate the page: 0.00984 seconds