How to make a dialog
#1

Hi, I want to make /search and /stats into a dialog how could i make that as a dialog
Reply
#2

ShowPlayerDialog

Need more help? Care to post those commands.
Reply
#3

Код:
CMD:search(playerid, params[])
{
   	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
	if(sscanf(params, "s[32]", params))
	{
	    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /search  [location]");
	    SendClientMessage(playerid, COLOR_GREY, "LOCATIONS: Off | Bank | TruckerJob | DMV | DrugsHouse | CrackLab | DrugsPickup");
	    SendClientMessage(playerid, COLOR_GREY, "LOCATIONS: Dealership | MaterialsPickup | MaterialsDropoff | TelecomCompany ");
	    SendClientMessage(playerid, COLOR_GREY, "LOCATIONS: DrugDealerJob | DrugSmugglerJob | BodyguardJob | LawyerJob ");
	    SendClientMessage(playerid, COLOR_GREY, "LOCATIONS: WeaponDealerJob | WeaponSmugglerJob | MechanicJob ");

	    return 1;
	}
	if(!strcmp(params, "off", true))
	{
	     DisablePlayerCheckpoint(playerid);
	     SendClientMessage(playerid, COLOR_YELLOW, "You have cleared the marker on your map.");
	}
	else if(!strcmp(params, "bank", true))
	{
	     SetPlayerCheckpoint(playerid, 2302.6716,-16.0793,26.4844, 3);
	     SendClientMessage(playerid, COLOR_YELLOW, "The bank is now marked on your map.");
	}
	else if(!strcmp(params,"truckerjob", true))
	{
	    SetPlayerCheckpoint(playerid, 1677.3772,2340.2471,9.8980, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The trucker job is now marked on your map.");
	}
	else if(!strcmp(params,"dmv", true))
	{
	    SetPlayerCheckpoint(playerid, 2260.3311,50.2858,26.4844, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The dmv is now marked on your map.");
	}
	else if(!strcmp(params,"drugshouse", true))
	{
	    SetPlayerCheckpoint(playerid, 2322.8003,30.8272,26.4766, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The drugs house is now marked on your map.");
	}
	else if(!strcmp(params,"cracklab", true))
	{
	    SetPlayerCheckpoint(playerid, 2314.0686,56.4271,26.4807, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The crack lab is now marked on your map.");
	}
	else if(!strcmp(params,"drugspickup", true))
	{
	    SetPlayerCheckpoint(playerid, 1393.9479,302.6410,19.5547, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The drugs pickup is now marked on your map.");
	}
	else if(!strcmp(params,"materialsdropoff", true))
	{
	    SetPlayerCheckpoint(playerid, 2315.5769,2.1003,26.4844, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The materials dropoff is now marked on your map.");
	}
	else if(!strcmp(params,"materialspickup", true))
	{
	    SetPlayerCheckpoint(playerid, 1281.2454,304.9117,19.5547, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The materials pickup is now marked on your map.");
	}
	else if(!strcmp(params, "TelecomCompany", true))
	{
	    SetPlayerCheckpoint(playerid, 2131.0198,-38.9413,4.8118, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The telecom company is now marked on your map.");
	}
	else if(!strcmp(params, "Dealership", true))
	{
	    SetPlayerCheckpoint(playerid, 2334.9617,51.8500,26.4834, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The Vehicles Dealership is now marked on your map.");
	}
	else if(!strcmp(params, "DrugDealerJob", true))
	{
	    SetPlayerCheckpoint(playerid, 2315.6616,33.6435,27.4740, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The Vehicles Dealership is now marked on your map.");
	}
	else if(!strcmp(params, "DrugSmugglerJob", true))
	{
	    SetPlayerCheckpoint(playerid, 2323.9536,76.1547,26.4836, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The Vehicles Dealership is now marked on your map.");
	}
	else if(!strcmp(params, "BodyguardJob", true))
	{
	    SetPlayerCheckpoint(playerid, 2330.2383,-18.9738,26.4844, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The Vehicles Dealership is now marked on your map.");
	}
	else if(!strcmp(params, "LawyerJob", true))
	{
	    SetPlayerCheckpoint(playerid, 2272.3472,-70.3094,26.5936, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The Vehicles Dealership is now marked on your map.");
	}
	else if(!strcmp(params, "WeaponDealerJob", true))
	{
	    SetPlayerCheckpoint(playerid, 1266.2700,234.1153,25.0487, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The Vehicles Dealership is now marked on your map.");
	}
	else if(!strcmp(params, "WeaponSmugglerJob", true))
	{
	    SetPlayerCheckpoint(playerid, 1206.4009,175.0209,20.4723, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The Vehicles Dealership is now marked on your map.");
	}
	else if(!strcmp(params, "MechanicJob", true))
	{
	    SetPlayerCheckpoint(playerid, 2309.6807,-77.6575,26.4844, 3);
	    SendClientMessage(playerid, COLOR_WHITE, "The Vehicles Dealership is now marked on your map.");
	}
	return 1;
}
]
[/CODE]
Reply
#4

http://lmgtfy.com/?q=samp+wiki+how+to+make+a+dialog
Reply
#5

Dident ask you to be smart
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)