Home » Renegade Discussions » Mod Forum » Scripts Part 3
|
Re: Scripts Part 3 [message #267545 is a reply to message #266592] |
Wed, 20 June 2007 12:44 |
_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 |
_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 |
|
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 |
_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 |
|
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 |
|
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 |
_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
}
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 |
|
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 - )
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Dec 21 00:53:19 MST 2024
Total time taken to generate the page: 0.00995 seconds
|