I have my .gsc, and while there are no errors, there are some problems. I tested my map on CJ #13 and for some of the scripts, they only work once, for one player. For example, a player walks into a trigger, it prints out "Hello", then the next play walk into the trigger, and nothing happens. This happens for a fair few of my scripts.. Here are a just a few of them.
Code: Select all
msg1()
{
message1 = getEnt("msg1", "targetname");
message1 waittill ("trigger", player);
iprintlnbold ("^7www.^1CoD^8Jumper^7.com - For all your CoDJumping needs!");
}
Code: Select all
nosprint()
{
trig = getEnt("nosprint","targetname");
trig waittill ("trigger", user);
user iprintln ("You cannot sprint in this room^6!");
for(;;)
{
if (user isTouching(trig))
{
user allowSprint(false);
wait 0.1;
}
else
{
user allowSprint(true);
wait 0.1;
}
}
}
Also, the Dvar's that I set in the main(), don't have any affect while playing on the server, but do when I play on my own.
Can anyone point out what I'm doing wrong?
Thanks alot
