Help Press [ESC] to close TextDraw
#11

public OnPlayerClickPlayerTextDraw(playerid, PlayerTextlayertextid)
{

if(playertextid == PlayerText:65535)
{
TextDrawHideForPlayer(playerid, DLTextDraws[12]);
TextDrawHideForPlayer(playerid, DLTextDraws[13]);
TextDrawHideForPlayer(playerid, DLTextDraws[14]);
TextDrawHideForPlayer(playerid, DLTextDraws[2]);
}
// Phan thuong hang ngay
if(_layertextid != INVALID_TEXT_DRAW)
{
if(playertextid == DLTextDraws[12][playerid])
{
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
if(PlayerInfo[playerid][DLRewardBox][0] == 1) return SendClientMessage(playerid,-1,"{FF0000}[!] {FFFFFF}Ban da nhan qua trong ngay hom nay roi !");
PlayerInfo[playerid][DLRewardBox][0] = 1;
DLCheck(playerid);
DLRandomRewards(playerid, 1);
CancelSelectTextDraw(playerid);
}
else if(playertextid == DLTextDraws[13][playerid])
{
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
if(PlayerInfo[playerid][DLRewardBox][1] == 1) return SendClientMessage(playerid,-1,"{FF0000}[!] {FFFFFF}Ban da nhan qua trong ngay hom nay roi !");
if(PlayerInfo[playerid][pDonateRank] <= 0) return SendClientMessage(playerid,-1,"{FF0000}[!] {FFFFFF}Ban can co VIP Bronze tro len de co the nhan goi qua nay !");
PlayerInfo[playerid][DLRewardBox][1] = 1;
DLCheck(playerid);
DLRandomRewards(playerid, 2);
CancelSelectTextDraw(playerid);
}
else if(playertextid == DLTextDraws[14][playerid])
{
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
if(PlayerInfo[playerid][DLRewardBox][2] == 1) return SendClientMessage(playerid,-1,"{FF0000}[!] {FFFFFF}Ban da nhan qua trong ngay hom nay roi !");
if(PlayerInfo[playerid][pDonateRank] <= 1) return SendClientMessage(playerid,-1,"{FF0000}[!] {FFFFFF}Ban can co VIP Silver tro len de co the nhan goi qua nay !");
PlayerInfo[playerid][DLRewardBox][2] = 1;
DLCheck(playerid);
DLRandomRewards(playerid, 2);
CancelSelectTextDraw(playerid);
}
else if(playertextid == DLTextDraws[2][playerid])
{
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
new d, m, y;
GetDate_V(d, m, y);
PlayerInfo[playerid][DLDate] = d;
DLTextDraw(playerid, 2);
CancelSelectTextDraw(playerid);
}
}
Reply


Messages In This Thread
Help Press [ESC] to close TextDraw - by khoinewghost - 05.09.2018, 08:12
Re: Help Press [ESC] to close TextDraw - by khoinewghost - 05.09.2018, 12:18
Re: Help Press [ESC] to close TextDraw - by v1k1nG - 05.09.2018, 12:34
Re: Help Press [ESC] to close TextDraw - by khoinewghost - 05.09.2018, 13:10
Re: Help Press [ESC] to close TextDraw - by v1k1nG - 05.09.2018, 13:10
Re: Help Press [ESC] to close TextDraw - by khoinewghost - 05.09.2018, 13:12
Re: Help Press [ESC] to close TextDraw - by v1k1nG - 05.09.2018, 13:15
Re: Help Press [ESC] to close TextDraw - by khoinewghost - 05.09.2018, 13:29
Re: Help Press [ESC] to close TextDraw - by solstice_ - 05.09.2018, 13:31
Re: Help Press [ESC] to close TextDraw - by v1k1nG - 05.09.2018, 13:33
Re: Help Press [ESC] to close TextDraw - by khoinewghost - 05.09.2018, 13:37
Re: Help Press [ESC] to close TextDraw - by v1k1nG - 05.09.2018, 13:40
Re: Help Press [ESC] to close TextDraw - by khoinewghost - 05.09.2018, 13:52
Re: Help Press [ESC] to close TextDraw - by v1k1nG - 05.09.2018, 13:53
Re: Help Press [ESC] to close TextDraw - by Lokii - 05.09.2018, 14:03
Re: Help Press [ESC] to close TextDraw - by v1k1nG - 05.09.2018, 14:08
Re: Help Press [ESC] to close TextDraw - by khoinewghost - 05.09.2018, 14:41
Re: Help Press [ESC] to close TextDraw - by v1k1nG - 05.09.2018, 15:13
Re: Help Press [ESC] to close TextDraw - by khoinewghost - 05.09.2018, 15:37
Re: Help Press [ESC] to close TextDraw - by ShihabSoft - 05.09.2018, 15:50
Re: Help Press [ESC] to close TextDraw - by v1k1nG - 05.09.2018, 16:28
Re: Help Press [ESC] to close TextDraw - by Mobtiesgangsa - 05.09.2018, 22:33
Re: Help Press [ESC] to close TextDraw - by khoinewghost - 06.09.2018, 03:44
Re: Help Press [ESC] to close TextDraw - by Sew_Sumi - 06.09.2018, 04:30
Re: Help Press [ESC] to close TextDraw - by sonn51280 - 06.09.2018, 05:41
Re: Help Press [ESC] to close TextDraw - by NaS - 06.09.2018, 05:51

Forum Jump:


Users browsing this thread: 1 Guest(s)