Home » Renegade Discussions » Mod Forum » Spectate yo
Re: Spectate yo [message #277576 is a reply to message #277573] |
Mon, 06 August 2007 12:28 |
|
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", == 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
|
|
|
|
|
Spectate yo
|
|
|
Re: Spectate yo
By: BlueThen on Mon, 06 August 2007 11:42
|
|
|
Re: Spectate yo
|
|
|
Re: Spectate yo
By: BlueThen on Mon, 06 August 2007 11:58
|
|
|
Re: Spectate yo
By: reborn on Mon, 06 August 2007 12:07
|
|
|
Re: Spectate yo
By: BlueThen on Mon, 06 August 2007 12:11
|
|
|
Re: Spectate yo
By: reborn on Mon, 06 August 2007 12:15
|
|
|
Re: Spectate yo
|
|
|
Re: Spectate yo
By: BlueThen on Mon, 06 August 2007 12:28
|
|
|
Re: Spectate yo
By: AoBfrost on Mon, 06 August 2007 12:41
|
|
|
Re: Spectate yo
By: Hex on Mon, 06 August 2007 12:56
|
|
|
Re: Spectate yo
|
|
|
Re: Spectate yo
By: reborn on Mon, 06 August 2007 13:12
|
|
|
Re: Spectate yo
|
|
|
Re: Spectate yo
By: reborn on Mon, 06 August 2007 13:26
|
|
|
Re: Spectate yo
By: Hex on Mon, 06 August 2007 15:14
|
|
|
Re: Spectate yo
|
|
|
Re: Spectate yo
By: AoBfrost on Mon, 06 August 2007 19:23
|
|
|
Re: Spectate yo
|
|
|
Re: Spectate yo
By: reborn on Tue, 07 August 2007 09:22
|
|
|
Re: Spectate yo
|
|
|
Re: Spectate yo
By: Hex on Tue, 07 August 2007 09:55
|
|
|
Re: Spectate yo
|
|
|
Re: Spectate yo
|
|
|
Re: Spectate yo
By: Hex on Tue, 07 August 2007 12:32
|
|
|
Re: Spectate yo
By: _SSnipe_ on Thu, 09 August 2007 20:08
|
Goto Forum:
Current Time: Sun Nov 10 17:15:32 MST 2024
Total time taken to generate the page: 0.01121 seconds
|