Rescue Dialog Help 3rd time no1 can help
#3

doesnt look too complicated..
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(response == 1)
	{
		switch(dialogid)
		{
			case PoliceRescueDialog:
			{
				switch(listitem)
				{
					case 0: //Add another 'case' but with +1 id and change the cords/name
					{
						SetPlayerPos(playerid,2296.7986,2450.9976,10.8203);
						SetPlayerFacingAngle(playerid,94.1423);
						SendClientMessage(playerid,0xFFFF00FF,"You have been rescued to LVPD HQ");
						SendClientMessage(playerid,0xFFFF00FF,"Rescue fee: $200");
						GivePlayerMoney(playerid, -200);
					}
					case 1: 
					{
						SetPlayerPos(playerid,2296.7988,2450.9976,10.8203);
						SetPlayerFacingAngle(playerid,94.1423);
						SendClientMessage(playerid,0xFFFF00FF,"You have been rescued to SFPD HQ");
						SendClientMessage(playerid,0xFFFF00FF,"Rescue fee: $200");
						GivePlayerMoney(playerid, -200);
					}
				}
			}
			case TruckersRescueDialog:
			{
				switch(listitem)
				{
					case 0:
					{
						SetPlayerPos(playerid,2810.7017,934.2364,10.9766);
						SetPlayerFacingAngle(playerid,96.8919);
						SendClientMessage(playerid,0xFFFF00FF,"You have been rescued to LV truckdepot");
						SendClientMessage(playerid,0xFFFF00FF,"Rescue fee: $200");
						GivePlayerMoney(playerid, -200);
					}
					case 1:
					{
						SetPlayerPos(playerid,1752.7346,-2054.6328,14.0441);
						SetPlayerFacingAngle(playerid,96.8919);
						SendClientMessage(playerid,0xFFFF00FF,"You have been rescued to Willowfield Truck depot");
						SendClientMessage(playerid,0xFFFF00FF,"Rescue fee: $200");
						GivePlayerMoney(playerid, -200);
					}
					case 2:
					{
						SetPlayerPos(playerid,2817.3284,972.9627,10.7500,208);
						SetPlayerFacingAngle(playerid,96.8919);
						SendClientMessage(playerid,0x00B82EFF,"You have been rescued to Rock Shore Depot");
						SendClientMessage(playerid,0x00B82EFF,"Rescue fee: $200");
						GivePlayerMoney(playerid, -200);
					 }
				}
			}
			case BusRescueDialog:
			{
				switch(listitem)
				{
					case 0:
					{
						SetPlayerPos(playerid,1046.0646,1305.6222,11.0412);
						SetPlayerFacingAngle(playerid,96.8919);
						SendClientMessage(playerid,0xFFFF00FF,"You have been rescued to LV Bus Terminal");
						SendClientMessage(playerid,0xFFFF00FF,"Rescue fee: $200");
						GivePlayerMoney(playerid, -200);
					}
					case 1:
					{
						SetPlayerPos(playerid,1957.7957,-2214.2544,16.1250);
						SetPlayerFacingAngle(playerid,96.8919);
						SendClientMessage(playerid,0xFFFF00FF,"You have been rescued to LS Bus Depot");
						SendClientMessage(playerid,0xFFFF00FF,"Rescue fee: $200");
						GivePlayerMoney(playerid, -200);
					}
				}
			}
			case AssistanceRescueDialog:
			{
				switch(listitem)
				{
					case 0:
					{
						SetPlayerPos(playerid,56.0339,-186.9275,1.8145);
						SetPlayerFacingAngle(playerid,96.8919);
						SendClientMessage(playerid,0x00B82EFF,"You have been rescued to BlueBerry Garage");
						SendClientMessage(playerid,0x00B82EFF,"Rescue fee: $200");
						GivePlayerMoney(playerid, -200);
					}
					case 1:
					{
						SetPlayerPos(playerid,2817.3284,972.9627,10.7500,208);
						SetPlayerFacingAngle(playerid,96.8919);
						SendClientMessage(playerid,0x00B82EFF,"You have been rescued to Rock Shore Depot");
						SendClientMessage(playerid,0x00B82EFF,"Rescue fee: $200");
						GivePlayerMoney(playerid, -200);
					}
				}
			}
		}
		return 1;
	}
	return 0;
}
edit @AeroBlast: i really should get used to refresh before posting lol
Reply


Messages In This Thread
Rescue Dialog Help 3rd time no1 can help - by [LHT]Bally - 11.09.2011, 12:45
Re: Rescue Dialog Help 3rd time no1 can help - by AeroBlast - 11.09.2011, 12:51
Re: Rescue Dialog Help 3rd time no1 can help - by Babul - 11.09.2011, 12:55
Re: Rescue Dialog Help 3rd time no1 can help - by [LHT]Bally - 11.09.2011, 12:57

Forum Jump:


Users browsing this thread: 1 Guest(s)