10.02.2016, 23:31
Quote:
How does one make such a timer I'm pretty new to this and it would help me out alot if I can receive some help with this.
|
pawn Код:
new name[MAX_PLAYER_NAME];
for(new npcid = 0; npcid < MAX_ZOMBIES; npcid++)
{
format(name, sizeof(name), "%s", ZOMBIE_NAME, npcid + 1);
SetTimerEx("CreateZombie", i*1000, false, "i", npcid);
count++;
}
forward CreateZombie(npcid, name[]);
public CreateZombie(npcid, name[]) return ConnectRNPC(npcid, name[]);
I guess you can probably find further information about timers throughout the forums, sorry if this didn't really help you.