Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » coding
coding [message #271501] Sat, 07 July 2007 14:43 Go to previous message
HORQWER is currently offline  HORQWER
Messages: 667
Registered: September 2006
Location: Under my bed (lolz)
Karma:
Colonel
guys if i made a code

like here i found this code and i want to use it on my server how do i make it work on my server
here is the code
--Written by RoShambo
--Remove credits and you will die!
--VB style language, very easy to learn!

function printf(...) 
   io.write(string.format(unpack(arg))) 
end
function InputConsole(...)
   Console_Input(string.format(unpack(arg)))
end

function OnChat(pID, Type, Message)
   if Message == "!buy arty" then
      if Purchase_Item(Get_GameObj(pID), 450) == 1 then
         local pos = Get_Position(Get_GameObj(pID))
         pos:AssignZ(pos:GetZ()+5)
         pos:AssignX(pos:GetX()+5)
         Create_Object("Nod_Mobile_Artillery_Player", pos)
      else
         InputConsole("ppage %d You don't have enough money", pID)
      end
   end

   if Message == "!fly" then
      Toggle_Fly_Mode(Get_GameObj(pID))
   end

end

function OnPlayerJoin(pID, Nick)

end

function OnPlayerLeave(pID)

end

function OnHostMessage(ID, Type, Message)

end

function OnLevelLoaded()
   
end

function OnLevelEnded()

end

function OnConsoleOutput(Message)

end

function OnDDERecived(Message)

end

function OnObjectCreate(Object)

end


http://www.roleplay2.com/downloads/siggy.jpg
 
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: Another SSGM Question
Next Topic: Need help finding a script
Goto Forum:
  


Current Time: Mon Nov 25 02:52:08 MST 2024

Total time taken to generate the page: 0.00907 seconds