06.04.2013, 10:27
(
Последний раз редактировалось MagedXp; 05.09.2013 в 20:37.
)
..................
CMD:world(playerid, params[])
{
if(World24 == 24) // If the World24 = 24 Full day.
{
//code
World24 = 0;
}
return 1;
}
CMD:heal(playerid, params[])
{
if(World24 == 24) // If the World24 = 24 Full day.
{
SetPlayerHealth(playerid, 100);
World24 = 0;
}
return 1;
}
new lastday = // retrieve the last day from the account information here
new currentday = getdate();
if (lastday == currentday)
{
return SendClientMessage(playerid, -1, "You can use this command only once a day!");
}
else
{
lastday = currentday;
// Don't forget to save the lastday variable in the account files.
// Do your command stuff here..
return 1;
}
new day = getdate();
