03.12.2013, 18:11
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
+ 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..
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;
}
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..