SA-MP Forums Archive
Get Gift system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Get Gift system (/showthread.php?tid=634209)



Get Gift system - Imbalo - 15.05.2017

PHP Code:
CMD:getgift(playerid)
{
    if(!
IsPlayerConnected(playerid))
        return 
SendClientMessage(playerid, -1"{0000CD}[SERVER]{FF0000} You must be logged in to do this.");
    
GetObjectPos(giftboxobjectgiftPos[0], giftPos[1], giftPos[2]);
    if(
IsPlayerInRangeOfPoint(playerid5.0giftPos[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 ?


Re: Get Gift system - Imbalo - 16.05.2017

Please Help me guys