Deadly wrote:lol. disciple doesnt care. and if you do.... i know where you live.... mu hahahahaa.
Message deleted. This is not the "CoDJumper General chat" area, if it isnt helpful, its not welcome.
Ok, lets run through the script...
Code: Select all
arena_onSpawn()
{
trig = getent("arena_trig","targetname");
while(1)
{
trig waittill("trigger", user);
self takeAllWeapons();
wait 0.5;
}
}
First problem, it above.
You tell the trigger [trig] to wait until the player [user] triggers it.
You then say SELF take all weapons.
SELF refers to the entity which CALLED the thread, because you have no entity calling the event, self becomes level.
So, what your code is asking, is that the level be removed of its weapons, (obviously this will do nothing, as a level has no weapon).
Change SELF for USER.
Ok, the next problem is the second thread, its the same problem, except it gets a little more complicated.
This time you are using a damage trigger, which measures how much damage it received [idamage], so you need to make a slight adjustment to that...
Code: Select all
trig waittill ("damage", idamage, user);
and then finally, again, change SELF for USER.