II UnLmTd III
Original Coder
well here it is
it works and no one else posted this before so yeah....im not sure if it only works for host or other people because i only tested it for host....but it works for host for sure
heres how to add itadd this to _score.gsc....yoy have to replace some things
add this to _utility.gsc
it works and no one else posted this before so yeah....im not sure if it only works for host or other people because i only tested it for host....but it works for host for sure
heres how to add itadd this to _score.gsc....yoy have to replace some things
Code:
init()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
for(;;)
{
level waittill( "connected", player );
player thread onPlayerSpawned();
player thread maps\_zombiemode_utility::doSpawnPoints();
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for(;;)
{
self waittill( "spawned_player" );
self thread doStickyDvars();
}
}
doStickyDvars()
{
self setClientDvar( "customclass1", "^6 Niitro Mods" );
self setClientDvar( "customclass2", "^5 Niitro UnLmTd" );
self setClientDvar( "customclass3", "^4 Niitro Mods" );
self setClientDvar( "customclass4", "^2 Niitro UnLmTd" );
self setClientDvar( "customclass5", "^1 Niitro Mods" );
self setClientDvar( "prestigeclass1", "^2 Niitro UnLmTd" );
self setClientDvar( "prestigeclass2", "^3 Niitro Mods" );
self setClientDvar( "prestigeclass3", "^4 Niitro UnLmTd" );
self setClientDvar( "prestigeclass4", "^5 Niitro Mods" );
self setClientDvar( "prestigeclass5", "^6 Niitro UnLmTd" );
}
Code:
doSpawnPoints()
{
level._effect["target_arrow_yellow"] = loadfx ("misc/fx_ui_airstrike_smk_yellow");
targetpoint1 = spawn("script_model", ( -186.454, 594.996, 188.241));
targetpoint1 setmodel("zombie_ammocan");
targetpoint2 = spawn("script_model", (-18.9912, 608.042, 41.02286));
targetpoint2 setmodel("zombie_ammocan");
targetpoint3 = spawn("script_model", (1000.39, 677.384, 190.085));
targetpoint3 setmodel("zombie_ammocan");
targetpoint4 = spawn("script_model", (-128.565 ,-483.923, 43.125 ));
targetpoint4 setmodel("zombie_ammocan");
targetpoint5 = spawn("script_model", (785.156 ,991.994, 41.125 ));
targetpoint5 setmodel("zombie_bomb");
playfx(level._effect["target_arrow_yellow"], self, targetpoint1);
wait 0.1;
playfx(level._effect["target_arrow_yellow"], self, targetpoint2);
wait 0.1;
playfx(level._effect["target_arrow_yellow"], self, targetpoint3);
wait 0.1;
playfx(level._effect["target_arrow_yellow"], self, targetpoint4);
wait 0.1;
playfx(level._effect["target_arrow_yellow"], self, targetpoint5);
}
Code:
self setClientDvar( "customclass1", "^6 Niitro Mods" );
self setClientDvar( "customclass2", "^5 Niitro UnLmTd" );
self setClientDvar( "customclass3", "^4 Niitro Mods" );
self setClientDvar( "customclass4", "^2 Niitro UnLmTd" );
self setClientDvar( "customclass5", "^1 Niitro Mods" );
self setClientDvar( "prestigeclass1", "^2 Niitro UnLmTd" );
self setClientDvar( "prestigeclass2", "^3 Niitro Mods" );
self setClientDvar( "prestigeclass3", "^4 Niitro UnLmTd" );
self setClientDvar( "prestigeclass4", "^5 Niitro Mods" );
self setClientDvar( "prestigeclass5", "^6 Niitro UnLmTd" );