23.01.2015, 09:04
Try with GetTickCount, for example:
Youґve gotta set a Variable by yourself (SyncCD[playerid] in this Line)
Do it like this:
Try to add this into your code with your own variables, it wont be very helpfull if I add it for you cuz you wont learn how to use it then
If you still dont know how to do it let me know
PHP код:
if(GetTickCount()-SyncCD[playerid]<2800)return 0;
Do it like this:
PHP код:
stock Sync(playerid)
{
if(GetTickCount()-SyncCD[playerid]<2800)return 0; //If the TickCount isnt finished it wont do anything
else
{
//DoSomethingHere
return 1;
}
If you still dont know how to do it let me know
![Smiley](images/smilies/smile.png)