Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripting Help
Re: Scripting Help [message #418326 is a reply to message #418187] Sat, 23 January 2010 22:18 Go to previous messageGo to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma:
General (3 Stars)
Im making a plugin and im trying to attach no falling damage script to players but its not working. Am I attaching the script to the player obj correctly.

void ObjectHookCall(void *data,GameObject *obj) {
	if(!PluginSettings->CreditSystem){return;}
		if(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);
		}
	if(!PluginSettings->NoFallingDamage){return;}
		if(Commands->Is_A_Star(obj)){
			Attach_Script_Once(obj,"M00_No_Falling_Damage_DME","0");
			printf("No Damge Script Attached\n");
		}
	if(!PluginSettings->DropItem){return;}
		if(Commands->Is_A_Star(obj)){
				Attach_Script_Once(obj,"Player","");
				printf("Player Script Aattached\n");
		}
	if(!PluginSettings->NoReload){return;}
		Attach_Script_Once(obj,"NoReload","");
}




http://s18.postimage.org/jc6qbn4k9/bricks3.png
 
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 Nov 27 08:38:05 MST 2024

Total time taken to generate the page: 0.01556 seconds