Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » !spy command help
Re: !spy command help [message #412825 is a reply to message #412770] Tue, 01 December 2009 09:06 Go to previous messageGo to previous message
Hubba is currently offline  Hubba
Messages: 40
Registered: October 2009
Karma:
Recruit
Here:
function OnChat(PlayerId, Type, Message, Target)
	if Message == "!spy" then
		if Get_Money(PlayerId) >= 1200 then
			Set_Money(PlayerId, Get_Money(PlayerId)-1200)
			Change_Character(Get_GameObj(PlayerId),"CnC_Nod_FlameThrower_2SF")
			Attach_Script_Once(Get_GameObj(PlayerId), "RA_Infantry_Spy", "")
			InputConsole("msg %s has bought a Spy.", Get_Player_Name_By_ID(PlayerId))
		else
			InputConsole("ppage %d You have not enough money! You need 1200 credits to buy this!", PlayerId)
		end
	end
return 1
end

[Updated on: Tue, 01 December 2009 09:08]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: !afk command for lua
Next Topic: FTP Uploader script
Goto Forum:
  


Current Time: Wed Jul 31 02:18:02 MST 2024

Total time taken to generate the page: 0.01241 seconds