SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 15/05/2017, 04:19 AM   #1
Imbalo
Big Clucker
 
Join Date: Mar 2017
Location: Indonesia
Posts: 66
Reputation: 0
Default Get Gift system

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 ?
Imbalo is offline   Reply With Quote
Old 16/05/2017, 12:47 AM   #2
Imbalo
Big Clucker
 
Join Date: Mar 2017
Location: Indonesia
Posts: 66
Reputation: 0
Default Re: Get Gift system

Please Help me guys
Imbalo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gift Box system GTLS Scripting Help 6 04/03/2017 07:10 AM
please give me a Christmas gift system gogo45 Scripting Help 12 19/12/2016 01:27 PM
Gift system with christmas tree fuem1907 Scripting Help 5 16/06/2013 01:43 AM


All times are GMT. The time now is 11:35 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.