21.11.2017, 20:47
Hello,
I'm experimenting with something and trying to create a trucking script.
I am wondering if it is possible to only show which cargo the player did not pick.
Can i make it like this:
if DillimoreGasStationCargo[playerid] = set on 1 it does not display the dilimore gasstation cargo in the dialog menu.
Thanks in advance
I'm experimenting with something and trying to create a trucking script.
I am wondering if it is possible to only show which cargo the player did not pick.
Код:
if(dialogid == DIALOGTRUCKINGLSDOCK) { if(response) { if(listitem == 0) { ShowPlayerDialog(playerid, DIALOGTRUCKINGLSDOCK+1, DIALOG_STYLE_LIST, "Select Cargo", "Pay n Spray Dillimore - Car Parts - 2800KG - $470\nGas Station Dillimore - Food - 4170KG - $595", "Select", "Cancel"); } } return 1; } if(dialogid == DIALOGTRUCKINGLSDOCK+1) { if(response) { if(listitem == 0) { DillimorePayNSprayCargo[playerid]=1; SendClientMessage(playerid, YELLOW, "Cargo selected. Destination: Dillimore Pay n Spray"); } if(listitem == 1) { DillimoreGasStationCargo[playerid]=1; SendClientMessage(playerid, YELLOW, "Cargo selected. Destination: Dillimore Gas station"); } } return 1; }
if DillimoreGasStationCargo[playerid] = set on 1 it does not display the dilimore gasstation cargo in the dialog menu.
Thanks in advance