random pos for NPC
#2

For example use gettime..
Basically it is saving the time when you are using it and you can set it after each reset. (but remember once in a week to rr your server)
PlayerInfo[playerid][pCMDT] = 3600

pawn Код:
forward GlobalCheck();
public GlobalCheck()
{
    foreach(Player,i)
    {
        if(PlayerInfo[i][pCMDT] > 0)
            if(--PlayerInfo[i][pCMDT] < 1)
            {
                PlayerInfo[i][pCMDT] = 0;
                SendClientMessage(i,0xFFFFFFFF,"NPC is switching coords..");
            }
    }
    return 1;
}
+ you will need new npcrandom
coords1,
cords2,
coords3
;
I think it could work but not sure.

In that case use.. gettime or use timer.. Two things what you can use..
Reply


Messages In This Thread
random pos for NPC - by ancezas - 03.12.2013, 18:01
Re: random pos for NPC - by Scrillex - 03.12.2013, 18:11
Re: random pos for NPC - by ancezas - 03.12.2013, 18:34
Re: random pos for NPC - by ancezas - 03.12.2013, 20:14
Re: random pos for NPC - by ancezas - 04.12.2013, 05:27

Forum Jump:


Users browsing this thread: 1 Guest(s)