Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripting Help
Re: Scripting Help [message #418341 is a reply to message #418187] Sun, 24 January 2010 03:38 Go to previous messageGo to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma:
General (1 Star)
Well idk if the setting Credit System is put on 'false' because if it is it will break off your whole code (return; Wink )

Why not do:
if(PluginSettings->CreditSystem && Commands->Is_A_Star(obj)){
        //Attach_Script_Once(obj,"Money","");
	int PlayerID;
	PlayerID = Get_Player_ID(obj);
	printf("Player Money Added\n");
	Set_Money(PlayerID,0);
	Commands->Give_Money(obj,1000,false);
}

Same for the others ofcource:
if(PluginSettings->NoFallingDamage && Commands->Is_A_Star(obj)){
			Attach_Script_Once(obj,"M00_No_Falling_Damage_DME","0");
	printf("No Damge Script Attached\n");
}

if(PluginSettings->DropItem && Commands->Is_A_Star(obj)){
				Attach_Script_Once(obj,"Player","");
		printf("Player Script Aattached\n");
}
if(PluginSettings->NoReload)
{
	Attach_Script_Once(obj,"NoReload","");
}


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Sun, 24 January 2010 03:42]

Report message to a moderator

 
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: how to add startup spawners and spawners etc!!! help!
Next Topic: Cables of the transport.
Goto Forum:
  


Current Time: Wed Dec 18 20:00:54 MST 2024

Total time taken to generate the page: 0.01262 seconds