Giftbox Range points
#1

Hello guys, I have /giftbox script but still dont have range point, I dont know how to put range point to /giftbox

Код:
CMD:giftbox(playerid, params[])
{
	if(PlayerInfo[playerid][pGiftbox] > 0)
	{
		if(GetPVarInt(playerid, "giftbox") == 0)
		{
			PlayerInfo[playerid][pGiftbox]--;
			ShowPlayerDialogEx(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Giftbox","Do you want to open your giftbox?","Yes","No");
		}
	}
	return 1;
}
There is a code, Can you put a range point on that script?
This is the Radius
|
|
|
V
1136.46, 172.76, 8999.28
Reply
#2

pawn Код:
CMD:giftbox(playerid, params[])
{
    if(!IsPlayerInRangeOfPoint(playerid,5,1136.46, 172.76, 8999.28 )) return SendClientMessage(playerid,0xFF0000AA,"Here your message");
    if(PlayerInfo[playerid][pGiftbox] > 0)
    {
        if(GetPVarInt(playerid, "giftbox") == 0)
        {
            PlayerInfo[playerid][pGiftbox]--;
            ShowPlayerDialogEx(playerid, DIALOG_GIFTBOX, DIALOG_STYLE_MSGBOX, "Giftbox","Do you want to open your giftbox?","Yes","No");
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)