Giftbox Range points - 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: Giftbox Range points (
/showthread.php?tid=529437)
Giftbox Range points -
LarryTiger - 02.08.2014
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
Re: Giftbox Range points -
IceBilizard - 02.08.2014
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;
}