Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » !spy command help
!spy command help [message #412770] Mon, 30 November 2009 21:25 Go to previous message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma:
Colonel

function OnChat(PlayerId, Type, Message, Target)

if FirstW == "!spy" then

      local iCredits = 1000


      -- |||||||||||||||||||||||||||||||||||||||||||||||||||

      sName = Get_Player_Name_By_ID(pID)

      if Get_Money(pID) > iCredits then
         Attach_Script_Once(Get_GameObj(pID), "RA_Infantry_Spy", "")
         Set_Money(pID, Get_Money(pID) - iCredits)
         InputConsole("page %s You have been made a spy.", sName)
      else
         InputConsole("page %s You need %d credits to buy a spy.", sName, iCredits)
      end

	return 1
end


What perset does this use? a sbh with the script above?


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
 
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: Sun Dec 15 10:13:52 MST 2024

Total time taken to generate the page: 0.01129 seconds