| 
		
 | 
	
		
		
			| Re: 100 credits after dead [message #208069 is a reply to message #208046] | 
			Fri, 14 July 2006 11:01    | 
		 
		
			
				
				
				  | 
					
						
						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  )
		
		
  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    | 
		 
		
			
				
				
				  | 
					
						  
						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
		
		
 
   
		[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    | 
		 
		
			
				
				
				  | 
					
						  
						SODPaddy
						 Messages: 233 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    | 
		 
		
			
				
				
				  | 
					
						
						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 #208477 is a reply to message #208046] | 
			Sun, 16 July 2006 23:47    | 
		 
		
			
				
				
				  | 
					
						  
						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
		
		
 
   
		[Updated on: Sun, 16 July 2006 23:48] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	
		
		
			| Re: 100 credits after dead [message #208633 is a reply to message #208046] | 
			Tue, 18 July 2006 06:46    | 
		 
		
			
				
				
				  | 
					
						
						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    | 
		 
		
			
				
				
				
					
						  
						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);
		
		
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 |