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 #267235 is a reply to message #267232] Tue, 19 June 2007 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)
joe937465 wrote on Tue, 19 June 2007 06:11

how is this edit?

		}
        else if (stricmp(Msg2,"!boss") == 0)
                {
           else if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
                Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
   		        }  
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),"l"<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
			}
           else  if (stricmp(Get_Player_Name_By_ID(ID),""<nick>") == 0) {
                 Change_Character(obj,"Mutant_3Boss_Petrova");
                }
                }

	}
}




The first " else if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {
" you need to remove the else, other then that it looks fine to me.


joe937465 wrote on Tue, 19 June 2007 06:11


i tryed to make a script liek this but i dont know where to start can yuo drop me some hints?



You still havn't answered if it is something you want to do as part of a command like !spyme, or you want to make a player from the purchase terminal for all people to buy like this :/

joe937465 wrote on Tue, 19 June 2007 06:11



i looked and cant find it /;




Open crates.cpp, scroll to there you see the part that is recognisable as the beginning of the spy crate. After the code that should look something like "Change_Character(obj,"sbhpresetname"); there will be scripts attached to the player to make them ignored by base defence. This is what you are looking for.



[Updated on: Tue, 19 June 2007 04:01]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message icon12.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GB
Next Topic: SSGM, previously SSAOW, Version 2.0
Goto Forum:
  


Current Time: Sat Dec 21 18:23:53 MST 2024

Total time taken to generate the page: 0.01396 seconds