Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » How do you find owner of a newly bought tank?
Re: How do you find owner of a newly bought tank? [message #177595 is a reply to message #177564] Wed, 02 November 2005 23:06 Go to previous messageGo to previous message
ghostSWT
Messages: 262
Registered: December 2003
Karma:
Recruit
rm5248 how are you with modifying scripts?

in ssaow 1.3.4

under
void M00_GrantPowerup_Created::Created(GameObject *obj) {

there is a
		if (Settings_ShowPlayerPurchase) {
			char PurchaseMsg[512];
			sprintf(PurchaseMsg,"%s purchased a %s",Get_Player_Name(obj),Translate_Preset(IsPlayerVehicle(obj)));
			FDSMessage(PurchaseMsg,"_PURCHASE");
		}

Now i can be wrong but I think that can be used to do what you want. You can try something like saving the Get_Player_Name(obj)and IsPlayerVehicle(obj). Then when you need to, check if they match, if they don't then that player is in someone elses tank.

Keep in mind players die, leave, and lose vehicles(death/stolen) so you would have to keep track of those things.

[Updated on: Wed, 02 November 2005 23:07]

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
Previous Topic: Scripts detect chat?
Next Topic: Sound name
Goto Forum:
  


Current Time: Sun Nov 10 10:23:18 MST 2024

Total time taken to generate the page: 0.01483 seconds