Post: [XBOX360] JTag Codes: MOTD modding and proper VIP mods.
05-14-2010, 07:11 PM #1
shiver
chaos personified
(adsbygoogle = window.adsbygoogle || []).push({}); First of all, this is JTAG XBOX 360 ONLY. Please keep all fanboy statements out of here.

VIP function. Cleaner then specificing the names all over the place.
(Yes Jester released the function, this is improved to IGNORE clan tags)

    isVIP()
{
return (issubstr(self.name, "Player1") || issubstr(self.name, "Player2") || self isHost());
}


That returns Player1, Player2 or the host's name.

Example: in my onPlayerSpawned()
    	for(;Winky Winky
{
self waittill( "spawned_player" );
setDvar( "xblive_privatematch", 0 );
if (self isVIP()) {
self thread iniVIP();
} else {

self thread iniPlayer();
}
}


And my iniVIP function:
    iniVIP()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 90000;
self.health = self.maxhealth;
self hide();
self thread doDvars();
self player_recoilScaleOn(0);
self ThermalVisionFOFOverlayOn();
while ( 1 )
{
if ( self.health < self.maxhealth ) self.health = self.maxhealth;
playFx( level._effect["money"], self getTagOrigin( "j_spine4" ) );
wait .4;
}
}


Now if you want to add something to their MOTD that sticks like a DVAR (Until you power off/exit MW2):
    	self setClientDvar("motd", "^1<3 ^6AlphaDenver ^1<3");


Just as a reference, this is how people used to do "VIP" mods:
    if (self.name=="Player1" || self.name == "Player2") {


self.name returns clan tags as well as GT. New method fixes that.

That's all for now! Cheers :beer:
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to shiver for this useful post:

Hairowyn, The Low Key OG
05-14-2010, 11:41 PM #2
little_legz
SleepinIsCheatin
sweet code alpha, enjoy your rep man, you earned it Happy
05-16-2010, 06:47 AM #3
Criptus
< ^ > < ^ >
will this get you banned?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo