08.10.2011, 22:20
@Saw: no need to report, your enhanced command have let us all assume that you dont really need help at coding your copy-n-pasted little shit, so Kush pointed you to the right direction. GetTickCount() returns a milliseconds value of the time the server is up already. so by assuming that i would type a command for my very first time, would lead me to the conclusion that
ActualTime-PreviouslyStoredTime = Difference in ms
so how to script that? make a check like
you will figure out how to indent, and how and where to insert it in your command?
or shall someone else explain/show you that? if you respond wisely, someone will.
ActualTime-PreviouslyStoredTime = Difference in ms
so how to script that? make a check like
Код:
if(GetTickCount()-GetPVarInt(playerid,"LastCommandUsedTime")>2*60*1000) { SetPVarInt(playerid,"LastCommandUsedTime",GetTickCount()); }
or shall someone else explain/show you that? if you respond wisely, someone will.