C++ help [message #276426] |
Tue, 31 July 2007 21:07 |
Sn1per74*
Messages: 939 Registered: April 2006
Karma:
|
Colonel |
|
|
Three questions!
1. When ever I make an SSM and set it to the model of a large_blocker, you can walk through it where the SSM part isn't, how do I fix it?
2. I try to make a spy. It costs 150 credits. But, if you have less than 150, it still buys it and goes into negatives. How do you make it so you just can't buy it if its less than 150? Here's my code:
Quote: | else if (strncmp(Msg3,"!spy",4) == 0) { // change 12 to how many letters command + ! is change !yourcommand to what you want
if (obj){ // LEAVE THIS VERY IMPORTANT
if(Commands->Get_Money(obj) < 150.0f) {
char message[256];
sprintf(message,"ppage %d You need 150 credits!",ID);
Console_Input(message);
}
else(Commands->Get_Money(obj) >= 150.0f){
Commands->Give_Money(obj,-150,false);
}
if(Get_Team(ID) == 1) {
Change_Character(obj,"CnC_Nod_MiniGunner_0");
}
else Change_Character(obj,"CnC_GDI_Minigunner_0");
char message[256];
sprintf(message,"message The player has %f credits",Commands->Get_Money(obj));
Console_Input(message);
}
}
|
3. Is there someway to make your name the other teams color, like your tag when you walk around. NOT in the scoreboard.
-
Attachment: meh.JPG
(Size: 92.44KB, Downloaded 351 times)
Creator: AoBFrost
[Updated on: Tue, 31 July 2007 21:35] Report message to a moderator
|
|
|