Home » Renegade Discussions » Mod Forum » Purchase Vehicles
Re: Purchase Vehicles [message #318018 is a reply to message #317947] |
Tue, 19 February 2008 14:10 |
|
SODPaddy
Messages: 233 Registered: August 2005 Location: Germany
Karma:
|
Recruit |
|
|
My code at the moment:
if (Type == 0 || Type == 1) {
if (wcsicmp(Msg2, L"!buy recon") == 0) {
int Cost = 500;
GameObject *obj = Get_GameObj(ID);
if (Purchase_Item(obj,Cost)) {
if (Get_GameObj(ID) || Settings->GameMode != 2 || Settings->CrateVehSpawnPos[0].X == 0.0f || Settings->CrateVehSpawnPos[0].Y == 0.0f || Settings->CrateVehSpawnPos[0].Z == 0.0f || Settings->CrateVehSpawnPos[1].X == 0.0f || Settings->CrateVehSpawnPos[1].Y == 0.0f || Settings->CrateVehSpawnPos[1].Z == 0.0f) {
}
Vector3 Pos = Commands->Get_Position(Get_GameObj(ID));
Damage_All_Vehicles_Area(999999.0f,"Laser_NoBuilding",Pos,2.0f,obj,0);
Commands->Set_Position((obj), Pos);
GameObject *Temp = Commands->Create_Object("Invisible_Object",Pos);
int Rnd = Commands->Get_Random_Int(1,201);
int Index = 0;
if (Rnd <= 25) Index = 0;
else if (Rnd <= 50) Index = 1;
else if (Rnd <= 70) Index = 2;
else if (Rnd <= 90) Index = 3;
else if (Rnd <= 110) Index = 4;
else if (Rnd <= 130) Index = 5;
else if (Rnd <= 145) Index = 6;
else if (Rnd <= 160) Index = 7;
else if (Rnd <= 170) Index = 8;
else if (Rnd <= 180) Index = 9;
else if (Rnd <= 190) Index = 10;
else Index = 11;
Commands->Attach_Script(Temp,"Test_Cinematic",StrFormat("%sRVC_recon.txt",Commands->Get_Player_Type(Get_GameObj(ID)) == 0?"Nod":"GDI") .c_str());
char Message[100];
sprintf(Message,"ppage %d [PB] You Purchased a Recon Bike.", ID, Get_Player_Name_By_ID(ID));
Console_Input(Message);
}
}
}
I think the teams are very important because NodRVC_recon.txt and GDIRVC_recon.txt
Can somebody help me :-/ ?
Website: www.Area54.eu
Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
[Updated on: Tue, 19 February 2008 14:50] Report message to a moderator
|
|
|
|
|
Purchase Vehicles
By: SODPaddy on Tue, 19 February 2008 09:22
|
|
|
Re: Purchase Vehicles
By: SODPaddy on Tue, 19 February 2008 09:44
|
|
|
Re: Purchase Vehicles
|
|
|
Re: Purchase Vehicles
By: reborn on Tue, 19 February 2008 09:56
|
|
|
Re: Purchase Vehicles
By: SODPaddy on Tue, 19 February 2008 09:58
|
|
|
Re: Purchase Vehicles
By: jnz on Tue, 19 February 2008 10:28
|
|
|
Re: Purchase Vehicles
By: SODPaddy on Tue, 19 February 2008 10:44
|
|
|
Re: Purchase Vehicles
By: jnz on Tue, 19 February 2008 13:06
|
|
|
Re: Purchase Vehicles
By: SODPaddy on Tue, 19 February 2008 12:01
|
|
|
Re: Purchase Vehicles
By: Hex on Tue, 19 February 2008 12:38
|
|
|
Re: Purchase Vehicles
By: SODPaddy on Tue, 19 February 2008 13:45
|
|
|
Re: Purchase Vehicles
By: SODPaddy on Tue, 19 February 2008 12:42
|
|
|
Re: Purchase Vehicles
|
|
|
Re: Purchase Vehicles
By: jnz on Tue, 19 February 2008 13:12
|
|
|
Re: Purchase Vehicles
|
|
|
Re: Purchase Vehicles
By: SODPaddy on Tue, 19 February 2008 13:20
|
|
|
Re: Purchase Vehicles
|
|
|
Re: Purchase Vehicles
By: Hex on Tue, 19 February 2008 13:58
|
|
|
Re: Purchase Vehicles
By: Hex on Tue, 19 February 2008 17:16
|
|
|
Re: Purchase Vehicles
By: SODPaddy on Tue, 19 February 2008 14:10
|
|
|
Re: Purchase Vehicles
|
|
|
Re: Purchase Vehicles
By: SODPaddy on Wed, 20 February 2008 06:38
|
|
|
Re: Purchase Vehicles
By: ExEric3 on Wed, 20 February 2008 10:18
|
|
|
Re: Purchase Vehicles
By: SODPaddy on Wed, 20 February 2008 11:33
|
|
|
Re: Purchase Vehicles
By: SODPaddy on Wed, 20 February 2008 11:57
|
|
|
Re: Purchase Vehicles
|
|
|
Re: Purchase Vehicles
By: SODPaddy on Wed, 20 February 2008 13:08
|
|
|
Re: Purchase Vehicles
|
|
|
Re: Purchase Vehicles
By: SODPaddy on Thu, 21 February 2008 05:32
|
|
|
Re: Purchase Vehicles
|
Goto Forum:
Current Time: Wed Dec 04 20:43:25 MST 2024
Total time taken to generate the page: 0.00947 seconds
|