Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Spectate yo
Re: Spectate yo [message #277573 is a reply to message #277551] Mon, 06 August 2007 12:23 Go to previous messageGo to previous message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma:
Colonel
I'm still not invisible. Here is my code.
Quote:

else if (strncmp(Msg3,"!spectate",9) == 0) { // change 12 to how many letters command + ! is change !yourcommand to what you want
if (obj){ // LEAVE THIS VERY IMPORTANT
const char *name = Get_Player_Name(obj);
if ((strncmp(name,"Sn1per74",Cool == 0) || (strncmp(name,"Sniperhid",9) == 0)) {
char message[500];
sprintf(message,"team2 %d -2",ID);
Console_Input(message);
Change_Character(obj,"CnC_Nod_MiniGunner_0");
Commands->Set_Model(obj,"null");
Commands->Set_Is_Visible(obj,false);
Commands->Clear_Weapons(obj);
Commands->Set_Shield_Type(obj,"blamo");
Commands->Attach_Script(obj,"jfw_flying_infantry","");
Commands->Disable_All_Collisions(obj);
Commands->Give_Powerup(obj,"POW_AutoRifle_Player",false);
Commands->Give_Powerup(obj,"POW_Chaingun_Player",false);
Commands->Give_Powerup(obj,"POW_ChemSprayer_Player",false);
Commands->Give_Powerup(obj,"POW_Flamethrower_Player",false);
Commands->Give_Powerup(obj,"POW_GrenadeLauncher_Player",false);
Commands->Give_Powerup(obj,"POW_LaserChaingun_Player",false);
Commands->Give_Powerup(obj,"POW_MineProximity_Player",false);
Commands->Give_Powerup(obj,"POW_LaserRifle_Player",false);
Commands->Give_Powerup(obj,"POW_MineRemote_Player",false);
Commands->Give_Powerup(obj,"POW_MineTimed_Player",false);
Commands->Give_Powerup(obj,"POW_PersonalIonCannon_Player",false);
Commands->Give_Powerup(obj,"POW_Railgun_Player",false);
Commands->Give_Powerup(obj,"POW_RamjetRifle_Player",false);
Commands->Give_Powerup(obj,"POW_RepairGun_ai",false);
Commands->Give_Powerup(obj,"POW_RocketLauncher_Player",false);
Commands->Give_Powerup(obj,"POW_Shotgun_Player",false);
Commands->Give_Powerup(obj,"POW_SniperRifle_Player",false);
Commands->Give_Powerup(obj,"POW_TiberiumAutoRifle_Player",false);
Commands->Give_Powerup(obj,"POW_TiberiumFlechetteGun_Player",false);
Commands->Give_Powerup(obj,"POW_VoltAutoRifle_Player",false);
sprintf(message,"ppage %d You are now a spectator.",ID);
Console_Input(message);
}
else {
// gets here if second word was not a valid player
char message[256];
sprintf(message,"ppage %d You aren't Sn1per74!",ID);
Console_Input(message);
}
}
}



http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost

[Updated on: Mon, 06 August 2007 12:36]

Report message to a moderator

 
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: need name of dds file
Next Topic: 3 new guns
Goto Forum:
  


Current Time: Tue Sep 03 22:07:20 MST 2024

Total time taken to generate the page: 0.01042 seconds