Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » 100 credits after dead
100 credits after dead [message #208046] Fri, 14 July 2006 08:16 Go to next message
SODPaddy is currently offline  SODPaddy
Messages: 232
Registered: August 2005
Location: Germany
Karma: 0
Recruit

I need help:

I want to made a sniper mod, if im dead then i respawn and want to become 1000 credits? how to do ?


Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: 100 credits after dead [message #208069 is a reply to message #208046] Fri, 14 July 2006 11:01 Go to previous messageGo to next message
futura83
Messages: 1285
Registered: July 2006
Location: England
Karma: 0
General (1 Star)
Viva la Resistance!
instead of doing that, just make the snipers free.(on one server, you start with 1000, but snipers are free anyway Razz)

This is a signature. Reading this is wasting your time.
Re: 100 credits after dead [message #208113 is a reply to message #208046] Fri, 14 July 2006 17:00 Go to previous messageGo to next message
theplague is currently offline  theplague
Messages: 261
Registered: May 2004
Karma: 0
Recruit
if your using ssaow, look at the "Grant_Powerup_Creted", find somthing along the lines of:
if(strstr(get_preset(obj), "XXX_Pistal") {
and add after it this line:
Commands->Give_Money(obj, (Commands->Get_Money(obj)*-1)+1000);


but it's just easyer if you set your snipers as free. and starting cash as 1000


http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif

[Updated on: Fri, 14 July 2006 17:01]

Report message to a moderator

Re: 100 credits after dead [message #208158 is a reply to message #208069] Sat, 15 July 2006 01:44 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 232
Registered: August 2005
Location: Germany
Karma: 0
Recruit

if your using ssaow, look at the "Grant_Powerup_Creted", find somthing along the lines of:

if(strstr(get_preset(obj), "XXX_Pistal") {

and add after it this line:

Commands->Give_Money(obj, (Commands->Get_Money(obj)*-1)+1000);



but it's just easyer if you set your snipers as free. and starting cash as 1000

[Updated on: Sat, 15 July 2006 02:01]



Where must i insert that?


Website: www.Area54.eu

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

[Updated on: Sat, 15 July 2006 01:45]

Report message to a moderator

Re: 100 credits after dead [message #208183 is a reply to message #208046] Sat, 15 July 2006 07:48 Go to previous messageGo to next message
futura83
Messages: 1285
Registered: July 2006
Location: England
Karma: 0
General (1 Star)
Viva la Resistance!
like he said above; after this line:


if(strstr(get_preset(obj), "XXX_Pistal") {

so you'll have two lines of coding that look like this:


if(strstr(get_preset(obj), "XXX_Pistal") {
Commands->Give_Money(obj, (Commands->Get_Money(obj)*-1)+1000);


This is a signature. Reading this is wasting your time.

[Updated on: Sat, 15 July 2006 07:49]

Report message to a moderator

Re: 100 credits after dead [message #208201 is a reply to message #208046] Sat, 15 July 2006 09:25 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 232
Registered: August 2005
Location: Germany
Karma: 0
Recruit

but i havent visual studio Sad

Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: 100 credits after dead [message #208259 is a reply to message #208046] Sat, 15 July 2006 17:12 Go to previous messageGo to next message
theplague is currently offline  theplague
Messages: 261
Registered: May 2004
Karma: 0
Recruit
then you better do the free sniper thing or just get the refinery to grant 1000 per second or something... (both can be done with levelEdit)

http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif
Re: 100 credits after dead [message #208351 is a reply to message #208046] Sun, 16 July 2006 02:45 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 232
Registered: August 2005
Location: Germany
Karma: 0
Recruit

That i have done, but pupils become to much money, thats very lame

Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: 100 credits after dead [message #208357 is a reply to message #208046] Sun, 16 July 2006 04:20 Go to previous messageGo to next message
theplague is currently offline  theplague
Messages: 261
Registered: May 2004
Karma: 0
Recruit
:S then set credits per second to 0 and then set the sniper characters to 0 credits to buy.

also change the preset of the basic buys, just in case some nutt decides to suicide and then cry about having no money (eg: autorifle will give deadeye and the eng will give havic)


http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif
Re: 100 credits after dead [message #208358 is a reply to message #208046] Sun, 16 July 2006 04:22 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 232
Registered: August 2005
Location: Germany
Karma: 0
Recruit

If i killed some, i become money -.-

Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: 100 credits after dead [message #208368 is a reply to message #208046] Sun, 16 July 2006 07:02 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 232
Registered: August 2005
Location: Germany
Karma: 0
Recruit

I have installed Visual studio 2003.

In what source must i insert that


Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: 100 credits after dead [message #208380 is a reply to message #208046] Sun, 16 July 2006 08:06 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 232
Registered: August 2005
Location: Germany
Karma: 0
Recruit

help me please Smile Blush

Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: 100 credits after dead [message #208477 is a reply to message #208046] Sun, 16 July 2006 23:47 Go to previous messageGo to next message
theplague is currently offline  theplague
Messages: 261
Registered: May 2004
Karma: 0
Recruit
-open scripts.sln
-Ctrl+Alt+L (to bring up the project files list)
-double click aow.cpp
-follow above instructions

your looking for:
if (stricmp(Get_Parameter("WeaponDef"),"POW_Pistol_Player") == 0)
	{


-build the project (Ctrl+Shift+B)
-new scripts.dll should be in the same folder as scripts.sln


http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif

[Updated on: Sun, 16 July 2006 23:48]

Report message to a moderator

Re: 100 credits after dead [message #208521 is a reply to message #208046] Mon, 17 July 2006 08:53 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 232
Registered: August 2005
Location: Germany
Karma: 0
Recruit

I have found this line? And what must i made then

Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: 100 credits after dead [message #208587 is a reply to message #208046] Mon, 17 July 2006 19:31 Go to previous messageGo to next message
Blazer is currently offline  Blazer
Messages: 3322
Registered: February 2003
Location: Phoenix, AZ
Karma: 0
General (3 Stars)
Administrator/General

No offense, but, if you need to be told every keystroke, you really shouldn't be editing and compiling code. If you don't even know the syntax of the language, you can easily create errors that you will have to ask about, or even worse create a scripts.dll that crashes your server.
Re: 100 credits after dead [message #208618 is a reply to message #208046] Tue, 18 July 2006 01:17 Go to previous messageGo to next message
theplague is currently offline  theplague
Messages: 261
Registered: May 2004
Karma: 0
Recruit
:S kinda negative blaze...lol

anyways

this:
if (stricmp(Get_Parameter("WeaponDef"),"POW_Pistol_Player") == 0)
	{
becomes:
if (stricmp(Get_Parameter("WeaponDef"),"POW_Pistol_Player") == 0)
	{
	Commands->Give_Money(obj, (Commands->Get_Money(obj)*-1)+1000);


http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif
Re: 100 credits after dead [message #208631 is a reply to message #208046] Tue, 18 July 2006 06:32 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 232
Registered: August 2005
Location: Germany
Karma: 0
Recruit

c:\Dokumente und Einstellungen\Pascal\Desktop\SSAOW 1.s5 Source\SSAOW 1.5 Source\aow.cpp(1537): error C2198: '_Give_Money' : too few arguments for call through pointer-to-function
	/*
	if (FirstObject == true) {
		FirstObject = false;
		RecognizeMap(true);
	}*/

	if (stricmp(Get_Parameter("WeaponDef"),"POW_Pistol_Player") == 0)
	        {
            Commands->Give_Money(obj, (Commands->Get_Money(obj)*-1)+1000);
		int printable_nickname=1;
		int i;
		
		if (Commands->Get_ID(obj) == 0 || !obj)
		{
			return;
		}


Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: 100 credits after dead [message #208633 is a reply to message #208046] Tue, 18 July 2006 06:46 Go to previous messageGo to next message
futura83
Messages: 1285
Registered: July 2006
Location: England
Karma: 0
General (1 Star)
Viva la Resistance!
change:

	/*
	if (FirstObject == true) {
		FirstObject = false;
		RecognizeMap(true);
	}*/

	if (stricmp(Get_Parameter("WeaponDef"),"POW_Pistol_Player") == 0)
	        {
            Commands->Give_Money(obj, (Commands->Get_Money(obj)*-1)+1000);
		int printable_nickname=1;
		int i;
		
		if (Commands->Get_ID(obj) == 0 || !obj)
		{
			return;
		}


to

	/*
	if (FirstObject == true) {
		FirstObject = false;
		RecognizeMap(true);
	}*/

	if (stricmp(Get_Parameter("WeaponDef"),"POW_Pistol_Player") == 0)
	        {
                Commands->Give_Money(obj, (Commands->Get_Money(obj)*-1)+1000);
		int printable_nickname=1;
		int i;
		
		if (Commands->Get_ID(obj) == 0 || !obj)
		{
			return;
		}




in other words, tab the line:

Commands->Give_Money(obj, (Commands->Get_Money(obj)*-1)+1000);


once more


i think

p.s., i dont actually know c++ so this may be wrong


This is a signature. Reading this is wasting your time.

[Updated on: Tue, 18 July 2006 06:47]

Report message to a moderator

Re: 100 credits after dead [message #208649 is a reply to message #208631] Tue, 18 July 2006 10:02 Go to previous messageGo to next message
Adad is currently offline  Adad
Messages: 84
Registered: April 2003
Karma: 0
Recruit
TGPaddy wrote on Tue, 18 July 2006 21:32

Commands->Give_Money(obj, (Commands->Get_Money(obj)*-1)+1000);


Commands->Give_Money(obj,(Commands->Get_Money(obj)*-1)+1000,false);
Re: 100 credits after dead [message #208696 is a reply to message #208046] Tue, 18 July 2006 16:35 Go to previous message
theplague is currently offline  theplague
Messages: 261
Registered: May 2004
Karma: 0
Recruit
lmao... indeed, gotta add the false Razz i was doing it off the top of my head so i forgot Razz

http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif
Previous Topic: scope ?
Next Topic: Red Alert 2: Apocalypse Rising Update
Goto Forum:
  


Current Time: Wed May 15 10:38:05 MST 2024

Total time taken to generate the page: 0.01542 seconds