Sziasztok!
Írtam egy dialogus teleprot menüt annyi baj van vele hogy mikor kocsival akarok teleportálni akkor csak az embert teleportálja a kocsit pedig nem mit tegyek (ha az is megoldható lenne hogy mikor telézek kiírja hogy xy elteleportált sf-re)
#include <a_samp>
#include <zcmd>
#pragma tabsize 0
#define COLOR_YELLOW 0xFFFF00AA
new VehicleID;
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Teleport menü by [NST]Daniel\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
CMD:tele(playerid,params[])
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,\"Teleport menü\",\"Sf\\nLv\\nDrift1\\nDrift2\\nDrift3\\nAir-lv\\nAir-sf\\nAir-ls/Kezd\\nJizzy\\nChilliad\\nTengerpart\\nSivatag\\nTuningolo\\nMcdonald\\nGetto\",\"Kiválaszt\",\"Mégse\");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
SetVehiclePos(VehicleID,-1976.4326,288.0257,35.1719);
SetPlayerPos(playerid,-1967.9850,293.9560,35.1719);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál San Fierroba!\");
}
case 1:
{
SetVehiclePos(VehicleID,2187.5503,1675.6205,11.1074);
SetPlayerPos(playerid,2187.5503,1675.6205,11.1074);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál Las Venturasba!\");
}
case 2:
{
SetPlayerPos(playerid,-2408.0193,-598.2673,132.6484);
SetVehiclePos(VehicleID,-2408.0193,-598.2673,132.6484);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál Drift1-re!\");
}
case 3:
{
SetPlayerPos(playerid,-343.0818,1541.9465,75.5625);
SetVehiclePos(VehicleID,-343.0818,1541.9465,75.5625);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál Drift2-re!\");
}
case 4:
{
SetPlayerPos(playerid,2272.3330,1388.4868,42.8203);
SetVehiclePos(VehicleID,2272.3330,1388.4868,42.8203);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál Drift3-ra!\");
}
case 5:
{
SetPlayerPos(playerid,1412.2479,1844.7388,10.8287);
SetVehiclePos(VehicleID,1412.2479,1844.7388,10.8287);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál a Las Venturasi reptérre!\");
}
case 6:
{
SetPlayerPos(playerid,-1645.8783,-287.2897,14.1484);
SetVehiclePos(VehicleID,-1645.8783,-287.2897,14.1484);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál a San Fierroi reptérre!\");
}
case 7:
{
SetPlayerPos(playerid,1984.1838,-2659.3738,21.7390);
SetVehiclePos(VehicleID,1995.9027,-2638.5066,13.5469);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál a Los Santosi reptérre és egyben a kezdre!\");
}
case 8:
{
SetPlayerPos(playerid,-2620.5840,1403.6141,7.0938);
SetVehiclePos(VehicleID,-2630.2886,1355.5831,7.1028);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál Jizzy-re!\");
}
case 9:
{
SetPlayerPos(playerid,-2241.4741,-1732.2726,480.3542);
SetVehiclePos(VehicleID,-2241.4741,-1732.2726,480.3542);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál a Chilliad hegyre!\");
}
case 10:
{
SetPlayerPos(playerid,317.6685,-1784.0103,4.6933);
SetVehiclePos(VehicleID,317.6685,-1784.0103,4.6933);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál a Tengerpartra!\");
}
case 11:
{
SetPlayerPos(playerid,405.8245,2483.0779,16.4844);
SetVehiclePos(VehicleID,405.8245,2483.0779,16.4844);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál a sivatagba!\");
}
case 12:
{
SetPlayerPos(playerid,-2691.6287,217.4170,4.1797);
SetVehiclePos(VehicleID,-2691.6287,217.4170,4.1797);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál A Tuningolóba!\");
}
case 13:
{
SetPlayerPos(playerid,1030.8206,-455.0317,51.4649);
SetVehiclePos(VehicleID,1030.8206,-455.0317,51.4649);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál Mcdonald farmjára ugratni!\");
}
case 14:
{
SetPlayerPos(playerid,2499.9438,-1683.9733,13.4124);
SetVehiclePos(VehicleID,2499.9438,-1683.9733,13.4124);
SendClientMessage(playerid,0xFFFF00AA,\"Elteleportáltál a gettoba!\");
}
}
}
return 1;
}
return 0;
}