Hapis icin SetTimer(Ex) kullandigin bölüme:
SetPVarInt(playerid, "pv_iStart", GetTickCount() + TIMER_INTERVAL_DEGERI);
Örnek komut:
if(!strcmp(cmdtext, "/kalanzaman", true)) {
new
szMsg[48],
iCurrent = GetPVarInt(playerid, "pv_iStart") - GetTickCount()
;
if(iCurrent > 0) {
iCurrent /= 1000;
format(szMsg, sizeof(szMsg), "Kalan zaman: %d dakika %02d saniye.", (iCurrent / 60), (iCurrent % 60));
SendClientMessage(playerid, 0xFFFFFFFF, szMsg);
} else {
// Zaman bitti!
}
return 1;
}