Bad Syntax - What is wrong with this code?
Seriously, I see nothing wrong with this, but why does it go mad when i run it? This is what came from _rank. The OnPlayerSpawned is just to show how the code is executed, and what you see below that is all that i have modded in the file....
Code:
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
self thread stufflol();
}
}
stufflol()
{
self endon ( "disconnect" );
self endon ( "death" );
while(1)
{
self iPrintlnBold("^1HACKING IS ALLOWED HERE! Do not report anyone for hacking in this server.");
self VisionSetNakedForPlayer( "wetwork", 0.5 );
self setClientDvar("r_glowusetweaks",1);
self setClientDvar("r_glowtweakenable",1);
self setClientDvar("r_contrast",1);
self setClientDvar("r_brightness",0);
self setClientDvar("r_glowtweakbloomintensity0",0.3);
self setClientDvar("r_desaturation",0);
wait 0.5;
}
}
Take that
wait 0.5;
away,
It may help
Take away
self endon ( "disconnect" );
self endon ( "death" );
Then shall work. cause i did works fine.