Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Purchase Vehicles
Re: Purchase Vehicles [message #317963 is a reply to message #317947] Tue, 19 February 2008 10:28 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma:
General (3 Stars)
if (wcsicmp(Msg2, L"!buy recon") == 0) 
{
     const int cost = 500;
     if(Purchase_Item(ID, cost))
     {
           Vector3 pos = Commands->Get_Position(Get_GameObj(ID));
           pos.X += 5;
           pos.Z += 3;
           Commands->Create_Object("RECON BIKE PRESET", pos);
     }
     else
     {
           char msg[128];
           sprintf(msg, "ppage %d You don't have enough credits to buy a recon bike.", ID);
           Console_Input(msg);
     }
}
      
 
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: CnC Reborn isn't Duke Nukem Forever...
Next Topic: Harvester controllers
Goto Forum:
  


Current Time: Fri Dec 13 09:07:23 MST 2024

Total time taken to generate the page: 0.00951 seconds