06.08.2011, 09:48
yes.....thtat callback is from my FS
thats from GM:
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; }