08.12.2014, 14:16
hi, how can i make a timer for a cmd ?
INI script pls not mysql this is the cmd
if (strcmp(cmdtext, "/armura", true)==0)
{
if(PlayerInfo[playerid][pDonateRank] >= 4)
{
SetPlayerArmour(playerid, 100.0);
if(armuratime[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "Doar o data pe Cont.");
SendClientMessage(playerid, COLOR_GREY,"[PREMIUM]: Ai primit Armura mai poti folosi dupa 10 minute.");
SetTimerEx("armurat", 600000, 0, "%d", playerid);
return 1;
}
}
i have a timer but is not working
INI script pls not mysql this is the cmd
if (strcmp(cmdtext, "/armura", true)==0)
{
if(PlayerInfo[playerid][pDonateRank] >= 4)
{
SetPlayerArmour(playerid, 100.0);
if(armuratime[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "Doar o data pe Cont.");
SendClientMessage(playerid, COLOR_GREY,"[PREMIUM]: Ai primit Armura mai poti folosi dupa 10 minute.");
SetTimerEx("armurat", 600000, 0, "%d", playerid);
return 1;
}
}
i have a timer but is not working