Help me with dialog
#9

Quote:
Originally Posted by RedCode
Посмотреть сообщение
Hi guys , one guy helped me to create cmd with timer but i have a problem

Here the code :
Код:
new VipLockerTimer[MAX_PLAYERS],  
               bool:CanUseLocker[MAX_PLAYERS];

OnPlayerConnect(playerid)
CanUseLocker[playerid] = true;
Код:
CMD:viplocker(playerid, params[])
{
        if(CanUseLocker[playerid]==false) return SendClientMessage(playerid, COLOR_WHITE, "You have to wait before using locker again.");
	if(PlayerInfo[playerid][pDonator] >= 1)
	{
		if(IsPlayerInRangeOfPoint(playerid,3,-2653.1226, 1410.2570 ,906.2734))
		{
			ShowPlayerDialogEx(playerid, viplocker, DIALOG_STYLE_LIST, "VIP Locker", "Health\nArmour\nDeagle", "Select", "Cancel");
                         VipLockerTimer[playerid] = SetTimerEx("VipLockerTime", 3600*1000, false, "i", playerid);
                         CanUseLocker[playerid] = false;
		}
		else
		{
			SendClientMessage(playerid, COLOR_WHITE, "You arent in correct place.");
		}
	}
	return 1;
}

forward VipLockerTime(playerid);
public VipLockerTime(playerid)
{
       CanUseLocker[playerid] = true;
       return 1;
}
Who can make for me OnDialogResponse to buy 1.Health , 2.Armour . 3.Deagle ?

#define VIPWEPSMENU 1990

+REP
Tested it?
Reply


Messages In This Thread
Delete this - by RedCode - 08.03.2015, 15:41
Re: Help me with dialog - by biker122 - 08.03.2015, 15:49
Re: Help me with dialog - by MrCallum - 08.03.2015, 15:54
Re: Help me with dialog - by biker122 - 08.03.2015, 16:08
Re: Help me with dialog - by Ryan25 - 08.03.2015, 16:14
Re: Help me with dialog - by MrCallum - 08.03.2015, 16:16
Re: Help me with dialog - by biker122 - 08.03.2015, 16:17
Re: Help me with dialog - by MrCallum - 08.03.2015, 16:19
Re: Help me with dialog - by Ryan25 - 08.03.2015, 17:03
Re: Help me with dialog - by RedCode - 08.03.2015, 17:25

Forum Jump:


Users browsing this thread: 1 Guest(s)