10.01.2014, 17:47
Hello can you tell why is this not working with trailer and dialog I want if I attach some trailer to get dialog? Thanks
pawn Код:
CMD:prijevoz(playerid,params[])
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] != 16) return SendClientMessage(playerid,GRAD2,"{F81414}(Odbijeno!) {C3C3C3}Niste zaposleni kao Vozac Goriva!");
if(GetPlayerVehicleID(playerid) < Nafta[0] || GetPlayerVehicleID(playerid) > Nafta[6]) return SCM(playerid,GRAD2,"{F81414}(Odbijeno) {C3C3C3}Niste u vozilu za prijevoz goriva/mesa!");
if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) return SCM(playerid,GRAD2,"{F81414}[Greska!] {C3C3C3}Morate zakaciti prikolicu!");
if(!IsTrailerAttachedToVehicle(584)) ShowPlayerDialog(playerid,naftaprijevoz,DIALOG_STYLE_LIST,"Izaberite jednu od ponudenih ruta","1.LS Benzinske Crpke\n2.LS Rafinerija\3.LS Rafinerija 1\n4.LV Rafinerija 2\n5.SF Aero","Odaberi","Odustani");
if(!IsTrailerAttachedToVehicle(591)) ShowPlayerDialog(playerid,prikolicaprijevoz,DIALOG_STYLE_LIST,"Izaberite jednu od ponudenih ruta","1.LV Skladiste mesa\n2.Prijevoz mesa u skladiste\n3.Prijevoz mesa u SF Skladiste\n4.SF Aero\n5.LV Aero","Odaberi","Odustani");
}
return 1;
}