but why OnTimeChange when we can use a timer? I guess doing same thing with a timer is same unless you hate "newtimer" word
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: UncleRus on May 26, 2020, 07:44 AMWho can give the base to this viceland_db.db on this forum? I found the script itself for this, but I need this file, whoever has a discardWho gave you viceland script?
if(stats[player.ID].warning = 1)
https://developer.electricimp.com/squirrel/squirrel-guide/operators
Quote from: MEGAMIND on May 04, 2020, 06:31 PMIf working on blank script then something is wrong with your script or you are doing something wrong.Quote from: habi on May 04, 2020, 05:06 PMon TDCS server, blank would obviously make no issues but what if people adapt this method on there server so there server will get crashed in an hour/after an hourQuote from: MEGAMIND on May 04, 2020, 04:20 PM.....but the thing is at alomost 3-4 npcs the server gets crashed after each bot has done its task, why does it happenon blank server?
public void heal(Player player) throws InterruptedException{
TimeUnit.SECONDS.sleep(5);
player.setHealth(100);
}
its better to use proper timer than using .sleep as timerpublic void heal(Player player) {
timerRegistry.register(false, 5000, new Runnable() {
@Override
public void run() {
player.setHealth(100);
}
});
}
Quote from: Gitobaloch on Mar 30, 2020, 03:17 PMyour replies didn't help me give me a code that i will get idea how to do that.
local counter = 0; //create a counter variable with default value 0
counter++; // increase the counter when a player joins duel
if(count >= 2) return MessagePlayer(player, "A fool is trying to limit players"); //Check when player tries to join duel
Quote from: Gitobaloch on Mar 29, 2020, 12:41 PMcan you guys tell me How to set Duel Player Limit i mean if two players join a duel so third player cannot join how to do this?No unless you share your duel code here.
Quote from: Gitobaloch on Mar 24, 2020, 10:56 AMSeby i cant find any wep pickup in wiki? u give me
CreatePickup(weaponID, world, ammo, player.pos, 255, true);
Also here is the link about which sseebbyy told you