Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Spectate yo
Re: Spectate yo [message #277576 is a reply to message #277573] Mon, 06 August 2007 12:28 Go to previous messageGo to previous message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma:
General (2 Stars)
Sn1per74* wrote on Mon, 06 August 2007 14:23

I'm still not invisible.
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);
}
}
}



Edit:nvm

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

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: Sun Nov 10 17:15:32 MST 2024

Total time taken to generate the page: 0.01121 seconds