10-15-2012, 18:02
Hi. is there any code to make start threads if playes staying in predifined area?
i mean for example if player staying near to the point (X,Y,Z) after 10 sec. he will get something. (just like on domination with flags A B C but instead of capturing area it gives you a gun)
ifselfposition (x y z +- 100)
{
self thread doRayGun
}
my mod gives to players different super weapon and im using this atm:
and i added randome weapon box. so players have to click on it to take berreta then they have to shot to activate supergun.
and my code is so stupid
i mean for example if player staying near to the point (X,Y,Z) after 10 sec. he will get something. (just like on domination with flags A B C but instead of capturing area it gives you a gun)
ifselfposition (x y z +- 100)
{
self thread doRayGun
}
my mod gives to players different super weapon and im using this atm:
Code:
TeleportGun()
{
self endon("death");
while (1){
self waittill( "weapon_fired" );
if ( self getCurrentWeapon() == "beretta_akimbo_mp" )
{
self iPrintlnBold("^31st gate ^12nd gate");
self.TeleportCooling = 0;
self thread GivePortalGun();
}
}
}
and i added randome weapon box. so players have to click on it to take berreta then they have to shot to activate supergun.
and my code is so stupid