PHP Code:
CMD:getgift(playerid)
{
if(!IsPlayerConnected(playerid))
return SendClientMessage(playerid, -1, "{0000CD}[SERVER]{FF0000} You must be logged in to do this.");
GetObjectPos(giftboxobject, giftPos[0], giftPos[1], giftPos[2]);
if(IsPlayerInRangeOfPoint(playerid, 5.0, giftPos[0], giftPos[1], giftPos[2]) && giftboxcreated == 1)
{
RandomGift(playerid);
}
else
{
SendClientMessage(playerid, -1, "{0000CD}[SERVER]{FF0000} You are not near Gift Box.");
}
return 1;
}
Morning Guys, i have GetGift system. But i have problem in this script.
I wanna create timer to use this command, and save player gift timer in INI. Can you helpme please ?