Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Help Chat command.
Re: Help Chat command. [message #438119 is a reply to message #438060] Tue, 19 October 2010 08:56 Go to previous messageGo to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma:
General (1 Star)
To enable stealth on a vehicle just call
Commands->Enable_Stealth(<VEHICLE_OBJECT_HERE>, 1);


To make it cost 900 do this
int cost = 900;
int curMoney = Commands->Get_Money(obj);

if(curMoney >= cost)
{
    Commands->Give_Money(obj, -cost, 0);
}


To read a (int) value from an INI do this
INIClass *myINI = Get_INI("mydir\\myini.ini");

int cost = myINI->Get_Int("CATEGORY", //In the ini this looks like [CATEGORY]
                          "ENTRYNAME", //In the INI this looks like ENTRYNAME=1234
                          900); //Default value


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Need help (tank modeling)
Next Topic: Good Huds
Goto Forum:
  


Current Time: Thu Jan 09 15:32:07 MST 2025

Total time taken to generate the page: 0.00723 seconds