DIALOG problem!!!help
#7

yes.....thtat callback is from my FS

thats from GM:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	new sendername[MAX_PLAYER_NAME];
	new string[500];
	if(dialogid == 212) // Bus
	{
		if(response)
		{
		if(listitem == 0) // Ruta1

			if (BusrouteWest[playerid][0] == 12 || BusrouteEast[playerid][0] == 12)
			{
				BusrouteWest[playerid][0] = 0;
				BusrouteEast[playerid][0] = 0;
			}
		    if(BusrouteWest[playerid][0] == 0 && BusrouteEast[playerid][0] == 0)
		    {
				new playervehicleid = GetPlayerVehicleID(playerid);
				if(IsABus(playervehicleid))
				{
					TogglePlayerControllable(playerid, 1);
					GameTextForPlayer(playerid, "~g~Voznja zapoceta", 5000, 3);
					SendClientMessage(playerid, COLOR_GREEN, "Crveni marker oznacava stajaliste.");
					BusrouteEast[playerid][0] = 1;
					BusrouteEast[playerid][1] = playervehicleid;
					OnPlayerEnterCheckpoint(playerid);
					return 1;
				}
			    else
			    {
				    SendClientMessage(playerid, COLOR_GREY, "Nisi u busu !");
			    }
			}
			else
			{
				SendClientMessage(playerid, COLOR_GREY, "Vec si na voznji !");
			}

		   }
		if(listitem == 1) // Ruta 2
			{
			if (BusrouteWest[playerid][0] == 12 || BusrouteEast[playerid][0] == 12)
			{
				BusrouteWest[playerid][0] = 0;
				BusrouteEast[playerid][0] = 0;
			}
			if(BusrouteWest[playerid][0] == 0 && BusrouteEast[playerid][0] == 0)
			{
				new playervehicleid = GetPlayerVehicleID(playerid);
				if(IsABus(playervehicleid))
				{
					TogglePlayerControllable(playerid, 1);
					GameTextForPlayer(playerid, "~g~Voznja zapoceta", 5000, 3);
					SendClientMessage(playerid, COLOR_LIGHTRED, "---------Zapadne - Los Santos Bus stanice-----------");
					SendBusRoute(playerid, 1);
					SendClientMessage(playerid, COLOR_RED, " ");
					SendClientMessage(playerid, COLOR_GREEN, "Crveni marker oznacava stajaliste.");
					BusrouteWest[playerid][0] = 1;
					BusrouteWest[playerid][1] = playervehicleid;
					OnPlayerEnterCheckpoint(playerid);
					return 1;
				}
				else
				{
					SendClientMessage(playerid, COLOR_GREY, "Nisi u busu !");
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GREY, "Vec si na voznji !");
			}


		}
		return 1;
	}
Reply


Messages In This Thread
DIALOG problem!!!help - by SAMP Skripter NEwbie - 06.08.2011, 09:27
Re: DIALOG problem!!!help - by SAMP Skripter NEwbie - 06.08.2011, 09:37
Re: DIALOG problem!!!help - by MadeMan - 06.08.2011, 09:38
Re: DIALOG problem!!!help - by [MG]Dimi - 06.08.2011, 09:40
Re: DIALOG problem!!!help - by SAMP Skripter NEwbie - 06.08.2011, 09:41
Re: DIALOG problem!!!help - by MadeMan - 06.08.2011, 09:43
Re: DIALOG problem!!!help - by SAMP Skripter NEwbie - 06.08.2011, 09:48

Forum Jump:


Users browsing this thread: 1 Guest(s)