2 More Codes Needed [message #269701] |
Fri, 29 June 2007 17:50 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
i have 2 codes one to buy a weapon and one to buy turrents and guard towers just like in the kam serv but if someone can just give me the last 2 codes i need one is the one to buy vechs then they come out of wf or air and the other is a code to buy a char and turn into it please anyone?
|
|
|
Re: 2 More Codes Needed [message #269730 is a reply to message #269701] |
Sat, 30 June 2007 00:04 |
Rev
Messages: 51 Registered: November 2004
Karma: 0
|
Recruit |
|
|
To make a vehicle come from the wf/air:
Create_Vehicle(preset,0.0f,object,1);
preset = the vehicle.
0.0f = how long to wait.
object = who bought the vehicle.
1 = which team the person is on.
To change a person into another char:
Change_Character(object,preset)
object = who bought it.
preset = what they will be turned into.
There might be other ways of doing this but i don't know them. If this is not what you are looking for then sorry for taking your time.
...
[Updated on: Sat, 30 June 2007 00:05] Report message to a moderator
|
|
|
Re: 2 More Codes Needed [message #269734 is a reply to message #269701] |
Sat, 30 June 2007 00:16 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
thanks and ok i understand now if someone can maybe help me make it like my other codes where u do stuf flike
!weapon sniper
!buy havoc
then gives u message when u buy it and a message if u dont have enough money to match the rest then ill be done
[Updated on: Sat, 30 June 2007 00:16] Report message to a moderator
|
|
|
Re: 2 More Codes Needed [message #269743 is a reply to message #269701] |
Sat, 30 June 2007 02:00 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
heres what i got for buying vechs heres the sample for nod and gdi
else if (stricmp(Msg2,"!Buy Stank") == 0) {
if (Get_Object_Type(obj) == 1) {
int Cost = 900;
char message[256];
Create_Vehicle(CnC_Nod_Stealth_Tank,0.0f,object,1);
sprintf(message,"msg Player %s has Purchase A Stank",Get_Player_Name_By_ID(ID));
Console_Input(message);
else {
sprintf(message,"ppage %d Sorry, a Stank costs $900",ID);
Console_Input(message);
}
}
}
else if (stricmp(Msg2,"!Buy mammy") == 0) {
if (Get_Object_Type(obj) == 1) {
int Cost = 1500;
char message[256];
Create_Vehicle(CnC_GDI_Mammoth_Tank,0.0f,object,1);
sprintf(message,"msg Player %s has Purchase A mammy",Get_Player_Name_By_ID(ID));
Console_Input(message);
else {
sprintf(message,"ppage %d Sorry, a mammy costs $1500",ID);
Console_Input(message);
}
}
}
and heres what i got for buying a char
else if (stricmp(Msg2,"!havoc") == 0) {
if (Get_Object_Type(obj) == 1) {
int Cost = 1000;
char message[256];
Change_Character(object,CnC_GDI_MiniGunner_3Boss)
sprintf(message,"msg Player %s has Purchase A havoc",Get_Player_Name_By_ID(ID));
Console_Input(message);
else {
sprintf(message,"ppage %d Sorry, a havoc costs $1000",ID);
Console_Input(message);
}
}
}
some parts i had trouble filiing out can anyone tell me what parts to fill out,fix and if it will work?
|
|
|
Re: 2 More Codes Needed [message #269752 is a reply to message #269701] |
Sat, 30 June 2007 03:10 |
|
Hex
Messages: 858 Registered: March 2004
Karma: 0
|
Colonel |
|
|
The code I gave you to buy weapons works fine, also you should take in to account when the PP is dead and double the cost
goztow wrote on Tue, 11 May 2010 08:00 | If we had to ban all who ever cheated or ever created a cheat (obj3cts and such) then I don't think there would be many members left here (sad fact).
|
reborn wrote on Fri, 29 January 2010 23:37 | std is for pro's.
|
[Updated on: Sat, 30 June 2007 03:11] Report message to a moderator
|
|
|
Re: 2 More Codes Needed [message #269755 is a reply to message #269752] |
Sat, 30 June 2007 03:18 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
Hex wrote on Sat, 30 June 2007 05:10 | The code I gave you to buy weapons works fine, also you should take in to account when the PP is dead and double the cost
|
i know the wep code u gave me works and i have one to build guard towers and turrenst thats why im asking for the one to buy vechs in a command that comes out of wf and air and buy a char and those are the oens i tryed to make myself by looking at the one u made and hopfully it works and ya i know when pp is dead price doubles they are going to be new chars and ty
|
|
|