LightbulbVIP Mod Code

Posts 16–24 of 24 · Page 2 of 2
sorry to be out topic but anyone seen this error in mw2
set player data error at argument 3, given int is too large to fit in a byte
Quote Originally Posted by JACKBAUER2030 View Post
sorry to be out topic but anyone seen this error in mw2
set player data error at argument 3, given int is too large to fit in a byte
Google, or you can make a new topic in the Modern warfare 2 help section
Quote Originally Posted by Josephlittle View Post
maybe

Code:
doEndGame()
{
if ( self <something here that relates to VIP>() )
self endon("death");
level thread maps\mp\gametypes\_gamelogic::forceEnd();
}
would that work?
or sumthin like when health reaches 0 then
level thread maps\mp\gametypes\_gamelogic::forceEnd();
Self endon("death"); means the function above stops when you are dead...
Quote Originally Posted by PP_CrazyApple View Post
Self endon("death"); means the function above stops when you are dead...


ye i figured that out...but what abt that when HP reaches 0 round ends?
add 'self thread doEndgame();' in your vip thread

doEndgame() {
self endon ( "disconnect" );
self.maxhealth = 100;
self.health = self.maxhealth;

while ( 1 )
{
wait .4;
self endon ( "disconnect" );
if ( self.health < 0 )
{
level thread maps\mp\gametypes\_gamelogic::forceEnd();
}
}
}
this is for ending the game.. dont know command for ending round in snd
Quote Originally Posted by schiz View Post
add 'self thread doEndgame();' in your vip thread



this is for ending the game.. dont know command for ending round in snd


Thanks, this is really useful, im gonna do end game then...who cares?


2 down...1 more to go ^^
actually try this

doEndgame() {
self endon ( "disconnect" );
self.maxhealth = 100;
self.health = self.maxhealth;

while ( 1 )
{
wait .4;
self endon ( "disconnect" );
if ( self.health < 0 )
{
scr_sd_timelimit 0.01
}
}
}
shuld end the round
Quote Originally Posted by schiz View Post
actually try this



shuld end the round

but should be timelimit=0.01??? or just timelimit 0.01???
ehh idk for sure... never tried that command in gsc modding just in console.. should work like this scr_sd_timelimit "0.01"
i think
Posts 16–24 of 24 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?