Na megcsináltam de nem nagyon akarja megcsinálni sorba írom hogy hogyan raktam be.
new berkocsi;
-----> mód elején
berkocsi = CreateVehicle(401,-539.0000000,2582.8999023,53.2999992,270.0000000,1,-1,15); //Bravura
berkocsi = CreateVehicle(401,-539.0999756,2578.0000000,53.2999992,270.0000000,1,-1,15); //Bravura
berkocsi = CreateVehicle(401,-539.2000122,2573.1000977,53.2999992,270.0000000,1,-1,15); //Bravura
berkocsi = CreateVehicle(401,-539.2999878,2568.3999023,53.2999992,270.0000000,1,-1,15); //Bravura
berkocsi = CreateVehicle(401,-539.4000244,2563.5000000,53.2999992,270.0000000,1,-1,15); //Bravura
berkocsi = CreateVehicle(401,-528.0999756,2581.6999512,53.2999992,89.9998779,1,-1,15); //Bravura
berkocsi = CreateVehicle(401,-528.2000122,2576.5000000,53.2999992,89.9945068,1,-1,15); //Bravura
berkocsi = CreateVehicle(401,-528.2000122,2571.3000488,53.2999992,89.9945068,1,-1,15); //Bravura
berkocsi = CreateVehicle(401,-528.2999878,2566.3999023,53.2999992,89.9945068,1,-1,15); //Bravura
berkocsi = CreateVehicle(401,-528.2999878,2561.3000488,53.2999992,89.9945068,1,-1,15); //Bravura
-----> ongamemodeinit alatt
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == berkocsi)
{
ShowPlayerDialog(playerid, DIALOG_BERKOCSI, DIALOG_STYLE_MSGBOX, \"Bérlés\",\" 1500Ft-ba kerül, 10 percre.\\nKi szeretnéd bérelni?\", \"Igen\", \"Nem\");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_BERKOCSI)
{
if(response)
{
if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid,PIROS,\"Nincs elég pénzed!\");
{
GivePlayerMoney(playerid,-1500);
SendClientMessage(playerid,ZOLD,\"Kifizetted a bérlés 15 percig használhatod!\");
}
}
return 1;
}
Ja és persze a dialogot definiáltam a mód legeslegelején.
Segítségeteket elõre is köszönöm!