How to remove refund package at the start
#1

Код HTML:
		}
		}
	}
	if(dialogid == DIALOG_REFUND1)
	{
	    if(response)
		{
			ShowPlayerDialogEx(playerid, DIALOG_REFUND2, DIALOG_STYLE_LIST,"Express RolePlay - \ages","Refund Package 1\nRefund Package 2","Read", "");
		}
	}
	if(dialogid == DIALOG_REFUND2)
	{
	    if(response)
	    {
			if(listitem == 0)
			{
			    ShowPlayerDialogEx(playerid, DIALOG_REFUND3, DIALOG_STYLE_MSGBOX,"Express RolePlay","-Level 3\n-70k Cash\nPearl VIP\nPot 30\nVehicle Refund","Okay","Return");
			}
			else if(listitem == 1)
			{
			    ShowPlayerDialogEx(playerid, DIALOG_REFUND4, DIALOG_STYLE_MSGBOX,"Express RolePlay","-Level 3\n-70k Cash\nRuby VIP\nCrack 20\nVehicle Refund","Okay","Return");
			}
		}
	}
	if(dialogid == DIALOG_REFUND3)
	{
	    if(!response)
	    {
	        ShowPlayerDialogEx(playerid, DIALOG_REFUND2, DIALOG_STYLE_LIST,"Express RolePlay - Refund Packages","Refund Package 1\nRefund Package 2","Read", "");
		}
	    if(response)
	    {
	        PlayerInfo[playerid][pLevel] = 3;
	        PlayerInfo[playerid][pCash] = 50000;
	        PlayerInfo[playerid][pBank] = 20000; PlayerInfo[playerid][pPot] = 30;
   	        PlayerInfo[playerid][pConnectTime] = 2;
   	        PlayerInfo[playerid][pDonatorExpire] = gettime()+2592000;
			PlayerInfo[playerid][pDonator] = 1;
   	        ShowPlayerDialogEx(playerid, DIALOG_VEHICLE_REFUND, DIALOG_STYLE_INPUT, "{00FF00}Express RolePlay - Vehicle Refund", "{FFFFFF}Please put the specific Vehicle ID to get free car(Not the restricted ones)", "Ok", "");
		}
	}
	if(dialogid == DIALOG_REFUND4)
	{
	    if(!response)
	    {
	        ShowPlayerDialogEx(playerid, DIALOG_REFUND2, DIALOG_STYLE_LIST,"Express RolePlay - Refund Packages","Refund Package 1\nRefund Package 2","Read", "");
		}
		if(response)
		{
			PlayerInfo[playerid][pLevel] = 3;
   			PlayerInfo[playerid][pCash] = 50000;
   			PlayerInfo[playerid][pBank] = 20000; PlayerInfo[playerid][pCrack] = 30;
   			PlayerInfo[playerid][pConnectTime] = 2;
   			PlayerInfo[playerid][pDonatorExpire] = gettime()+2592000;
			PlayerInfo[playerid][pDonator] = 1;
			ShowPlayerDialogEx(playerid, DIALOG_VEHICLE_REFUND, DIALOG_STYLE_INPUT, "{00FF00}Express RolePlay - Vehicle Refund", "{FFFFFF}Please put the specific Vehicle ID to get free car(Not the restricted ones)", "Ok", "");
		}
	}
	if(dialogid == DIALOG_VEHICLE_REFUND)
	{
		if(!IsNumeric(inputtext))
		{
			ShowPlayerDialogEx(playerid, DIALOG_VEHICLE_REFUND, DIALOG_STYLE_INPUT, "{00FF00}Express RolePlay - Vehicle Refund", "{FFFFFF}ENTRY DECLINED: You must enter a number!\n\nWhat Vehicle do you want? Please put especific Vehicle ID\n\nNote:You cannot put a vehicle ID that is restricted vehicles.", "Done", "");
			return 1;
		}
		new modelid;
		modelid = strval(inputtext);
	 	if(IsARestricted(modelid))
		{
			ShowPlayerDialogEx(playerid, DIALOG_VEHICLE_REFUND, DIALOG_STYLE_INPUT, "{00FF00}Express RolePlay - Vehicle Refund", "{FFFFFF}ENTRY DECLINED: I Told you, you cannot put vehicle id that are Restricted Vehicles", "Done", "");
			return 1;
		}
        if(modelid < 400 || modelid > 611)
        {
            ShowPlayerDialogEx(playerid, DIALOG_VEHICLE_REFUND, DIALOG_STYLE_INPUT, "{00FF00}Express RolePlay - Vehicle Refund", "{FFFFFF}ENTRY DECLINED: Vehicle id must not be lower than 400 or higher than 611!", "Done", "");
			return 1;
I don't really know if it helps, but if no tell me what to copy i will show you, im just new in this stuff,
when i tried just to delete that the game mode didnt work anymore lol, but i did that on a copy of the game mode.
Reply
#2

Find the code that shows the player the actual dialog, and comment it out.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)