Főoldal
Fórum
Bejelentkezés
Regisztráció
Friss hírek
Információ
GTA Közösség – Megszokott arculattal.
Keresés a fórumon
GTA Közösség - A magyar GTA fórum
»
San Andreas Multiplayer (SA-MP)
»
SA-MP: Szerverfejlesztés
»
Segítségkérés
»
Teleport help
« előző
következő »
Nyomtatás
Oldalak: [
1
]
Le
Szerző
Téma: Teleport help (Megtekintve 1059 alkalommal)
ninjo98
390
Teleport help
«
Dátum:
2011. december 02. - 15:05:55 »
0
Voters list:
Sziastok letöltöttem egy telemenüt átalakítottam és csak adminok használhatják át tudjátok álakítani hogy mindenki tudja használni?
[pawn]
/*
--------------------LV, SF, LS teleports----------------
Island teleports ver 1.0
Thanks to Jasen for helping me throught this
By Benne
*/
#include <a_samp>
#define FILTERSCRIPT
#define DIALOGID 3300
#define VehicleID 3300
public OnFilterScriptInit()
{
print(\"\\n Go to LS, SF or LV.\\n\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(IsPlayerAdmin(playerid))
{
if (strcmp(\"/tele\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
return 1;
}
if (strcmp(\"/kar\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID+10, DIALOG_STYLE_MSGBOX, \"Created By\", \"Teleport to LV/SF/LS was created by Benne\\nThanks to Jasen\\n Type /teleport to open up the teleport dialog.\", \"OK\", \"\");
return 2;
}
return 1;
}
else
{
SendClientMessage(playerid,0x33AA33AA, \"You have not logged in as reconned admin, do that before you can use the teleports\");
return 1;
}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID) // Teleport Dialog
{
if(response)
{
if(listitem == 0) // Általános teleportok
{
ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"Általános teleportok\", \"Sf\\nLv\\nAir-lv\\nAir-sf\\nJizzy\\nChilliad\\nTengerpart\\nSivatag\\nKezd\\nGetto\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
if(listitem == 1) // Driftek
{
ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, \"Driftek\", \"Drift1\\nDrift2\\nDrift3\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
if(listitem == 2) // Stuntok
{
ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, \"Stuntok\", \"Mcdonald\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
if(listitem == 3) // Egyéb
{
ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, \"Egyéb\", \"Tuningolo\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
}
if(dialogid == DIALOGID+0) // Általános teleportok
{
if(response)
{
if(listitem == 0) // SF
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-1967.9850,293.9560,35.1719);
SetVehiclePos(VehicleID,-1976.4326,288.0257,35.1719);
}
if(listitem == 1) // LV
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,2187.5503,1675.6205,11.1074);
SetPlayerPos(playerid,2187.5503,1675.6205,11.1074);
}
if(listitem == 2) // Air-lv
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,1412.2479,1844.7388,10.8287);
SetPlayerPos(playerid,1412.2479,1844.7388,10.8287);
}
if(listitem == 3) // Air-sf
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-1645.8783,-287.2897,14.1484);
SetPlayerPos(playerid,-1645.8783,-287.2897,14.1484);
}
if(listitem == 4) // Jizzy
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2630.2886,1355.5831,7.1028);
SetPlayerPos(playerid,-2620.5840,1403.6141,7.0938);
}
if(listitem == 5) // Chilliad
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2241.4741,-1732.2726,480.3542);
SetPlayerPos(playerid,-2241.4741,-1732.2726,480.3542);
}
if(listitem == 6) // Tengerpart
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,317.6685,-1784.0103,4.6933);
SetPlayerPos(playerid,317.6685,-1784.0103,4.6933);
}
if(listitem == 7) // Sivarag
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,405.8245,2483.0779,16.4844);
SetPlayerPos(playerid,405.8245,2483.0779,16.4844);
}
if(listitem ==
// Kezd
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,1995.9027,-2638.5066,13.5469);
SetPlayerPos(playerid,1984.1838,-2659.3738,21.7390);
}
if(listitem == 9) // Getto
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,2499.9438,-1683.9733,13.4124);
SetPlayerPos(playerid,2499.9438,-1683.9733,13.4124);
}
if(listitem == 10) // Vissza
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
}
if(dialogid == DIALOGID+1) // Driftek
{
if(response)
{
if(listitem == 0) // Drift1
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2408.0193,-598.2673,132.6484);
SetPlayerPos(playerid,-2408.0193,-598.2673,132.6484);
}
if(listitem == 1) // Drift2
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-343.0818,1541.9465,75.5625);
SetPlayerPos(playerid,-343.0818,1541.9465,75.5625);
}
if(listitem == 2) // Drift3
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,2272.3330,1388.4868,42.8203);
SetPlayerPos(playerid,2272.3330,1388.4868,42.8203);
}
if(listitem == 3) // Back
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
}
if(dialogid == DIALOGID+3) // Stuntok
{
if(response)
{
if(listitem == 0) // Mcdonald
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,1030.8206,-455.0317,51.4649);
SetPlayerPos(playerid,1030.8206,-455.0317,51.4649);
}
if(listitem == 1) // Back
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
if(dialogid == DIALOGID+4) // Egyéb
{
if(response)
{
if(listitem == 0) // Tuningolo
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2691.6287,217.4170,4.1797);
SetPlayerPos(playerid,-2691.6287,217.4170,4.1797);
}
if(listitem == 1) // Back
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
}
return 1;
}
return 0;
}
[/pawn]
[gmod]Témád neve ne csak \"segítség\" legyen.[/gmod]
«
Utoljára szerkesztve: 2011. december 02. - 15:09:49 írta ɐʞzssǝlosz
»
Naplózva
atyo16
83
Teleport help
«
Válasz #1 Dátum:
2011. december 02. - 15:07:47 »
0
Voters list:
Szia.... Vedd ki belõle ezt a sort és jó lesz
[pawn]if(IsPlayerAdmin(playerid))[/pawn]
Naplózva
ninjo98
390
Teleport help
«
Válasz #2 Dátum:
2011. december 02. - 15:15:30 »
0
Voters list:
kivettem ezt írja erroros
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(39) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(42) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(45) : error 054: unmatched closing brace (\"}\")
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(193) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Naplózva
kadaradam
2573
Teleport help
«
Válasz #3 Dátum:
2011. december 02. - 15:29:37 »
0
Voters list:
..
[pawn]/*
--------------------LV, SF, LS teleports----------------
Island teleports ver 1.0
Thanks to Jasen for helping me throught this
By Benne
*/
#include <a_samp>
#define FILTERSCRIPT
#define DIALOGID 3300
#define VehicleID 3300
public OnFilterScriptInit()
{
print(\"\\n Go to LS, SF or LV.\\n\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/tele\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
return 1;
}
if (strcmp(\"/kar\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID+10, DIALOG_STYLE_MSGBOX, \"Created By\", \"Teleport to LV/SF/LS was created by Benne\\nThanks to Jasen\\n Type /teleport to open up the teleport dialog.\", \"OK\", \"\");
return 2;
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID) // Teleport Dialog
{
if(response)
{
if(listitem == 0) // Általános teleportok
{
ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"Általános teleportok\", \"Sf\\nLv\\nAir-lv\\nAir-sf\\nJizzy\\nChilliad\\nTengerpart\\nSivatag\\nKezd\\nGetto\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
if(listitem == 1) // Driftek
{
ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, \"Driftek\", \"Drift1\\nDrift2\\nDrift3\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
if(listitem == 2) // Stuntok
{
ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, \"Stuntok\", \"Mcdonald\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
if(listitem == 3) // Egyéb
{
ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, \"Egyéb\", \"Tuningolo\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
}
if(dialogid == DIALOGID+0) // Általános teleportok
{
if(response)
{
if(listitem == 0) // SF
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-1967.9850,293.9560,35.1719);
SetVehiclePos(VehicleID,-1976.4326,288.0257,35.1719);
}
if(listitem == 1) // LV
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,2187.5503,1675.6205,11.1074);
SetPlayerPos(playerid,2187.5503,1675.6205,11.1074);
}
if(listitem == 2) // Air-lv
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,1412.2479,1844.7388,10.8287);
SetPlayerPos(playerid,1412.2479,1844.7388,10.8287);
}
if(listitem == 3) // Air-sf
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-1645.8783,-287.2897,14.1484);
SetPlayerPos(playerid,-1645.8783,-287.2897,14.1484);
}
if(listitem == 4) // Jizzy
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2630.2886,1355.5831,7.1028);
SetPlayerPos(playerid,-2620.5840,1403.6141,7.0938);
}
if(listitem == 5) // Chilliad
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2241.4741,-1732.2726,480.3542);
SetPlayerPos(playerid,-2241.4741,-1732.2726,480.3542);
}
if(listitem == 6) // Tengerpart
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,317.6685,-1784.0103,4.6933);
SetPlayerPos(playerid,317.6685,-1784.0103,4.6933);
}
if(listitem == 7) // Sivarag
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,405.8245,2483.0779,16.4844);
SetPlayerPos(playerid,405.8245,2483.0779,16.4844);
}
if(listitem ==
// Kezd
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,1995.9027,-2638.5066,13.5469);
SetPlayerPos(playerid,1984.1838,-2659.3738,21.7390);
}
if(listitem == 9) // Getto
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,2499.9438,-1683.9733,13.4124);
SetPlayerPos(playerid,2499.9438,-1683.9733,13.4124);
}
if(listitem == 10) // Vissza
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
}
if(dialogid == DIALOGID+1) // Driftek
{
if(response)
{
if(listitem == 0) // Drift1
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2408.0193,-598.2673,132.6484);
SetPlayerPos(playerid,-2408.0193,-598.2673,132.6484);
}
if(listitem == 1) // Drift2
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-343.0818,1541.9465,75.5625);
SetPlayerPos(playerid,-343.0818,1541.9465,75.5625);
}
if(listitem == 2) // Drift3
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,2272.3330,1388.4868,42.8203);
SetPlayerPos(playerid,2272.3330,1388.4868,42.8203);
}
if(listitem == 3) // Back
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
}
if(dialogid == DIALOGID+3) // Stuntok
{
if(response)
{
if(listitem == 0) // Mcdonald
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,1030.8206,-455.0317,51.4649);
SetPlayerPos(playerid,1030.8206,-455.0317,51.4649);
}
if(listitem == 1) // Back
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
if(dialogid == DIALOGID+4) // Egyéb
{
if(response)
{
if(listitem == 0) // Tuningolo
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2691.6287,217.4170,4.1797);
SetPlayerPos(playerid,-2691.6287,217.4170,4.1797);
}
if(listitem == 1) // Back
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
}
return 1;
}
return 0;
}
[/pawn]
Naplózva
ninjo98
390
Teleport help
«
Válasz #4 Dátum:
2011. december 02. - 15:37:14 »
0
Voters list:
Szia az elõzõt amit kijavítottál rosszul másoltam ki ezt kittod javítani?
[pawn]
/*
--------------------LV, SF, LS teleports----------------
Island teleports ver 1.0
Thanks to Jasen for helping me throught this
By Benne
*/
#include <a_samp>
#define FILTERSCRIPT
#define DIALOGID 3300
#define VehicleID 3300
public OnFilterScriptInit()
{
print(\"\\n Go to LS, SF or LV.\\n\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(IsPlayerAdmin(playerid))
{
if (strcmp(\"/tele\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
return 1;
}
if (strcmp(\"/kar\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID+10, DIALOG_STYLE_MSGBOX, \"Created By\", \"Teleport to LV/SF/LS was created by Benne\\nThanks to Jasen\\n Type /teleport to open up the teleport dialog.\", \"OK\", \"\");
return 2;
}
return 1;
}
else
{
SendClientMessage(playerid,0x33AA33AA, \"You have not logged in as reconned admin, do that before you can use the teleports\");
return 1;
}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID) // Teleport Dialog
{
if(response)
{
if(listitem == 0) // Általános teleportok
{
ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"Általános teleportok\", \"Sf\\nLv\\nAir-lv\\nAir-sf\\nJizzy\\nChilliad\\nTengerpart\\nSivatag\\nKezd\\nGetto\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
if(listitem == 1) // Driftek
{
ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, \"Driftek\", \"Drift1\\nDrift2\\nDrift3\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
if(listitem == 2) // Stuntok
{
ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, \"Stuntok\", \"Mcdonald\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
if(listitem == 3) // Egyéb
{
ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, \"Egyéb\", \"Tuningolo\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
}
if(dialogid == DIALOGID+0) // Általános teleportok
{
if(response)
{
if(listitem == 0) // SF
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-1967.9850,293.9560,35.1719);
SetVehiclePos(VehicleID,-1976.4326,288.0257,35.1719);
}
if(listitem == 1) // LV
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,2187.5503,1675.6205,11.1074);
SetPlayerPos(playerid,2187.5503,1675.6205,11.1074);
}
if(listitem == 2) // Air-lv
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,1412.2479,1844.7388,10.8287);
SetPlayerPos(playerid,1412.2479,1844.7388,10.8287);
}
if(listitem == 3) // Air-sf
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-1645.8783,-287.2897,14.1484);
SetPlayerPos(playerid,-1645.8783,-287.2897,14.1484);
}
if(listitem == 4) // Jizzy
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2630.2886,1355.5831,7.1028);
SetPlayerPos(playerid,-2620.5840,1403.6141,7.0938);
}
if(listitem == 5) // Chilliad
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2241.4741,-1732.2726,480.3542);
SetPlayerPos(playerid,-2241.4741,-1732.2726,480.3542);
}
if(listitem == 6) // Tengerpart
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,317.6685,-1784.0103,4.6933);
SetPlayerPos(playerid,317.6685,-1784.0103,4.6933);
}
if(listitem == 7) // Sivarag
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,405.8245,2483.0779,16.4844);
SetPlayerPos(playerid,405.8245,2483.0779,16.4844);
}
if(listitem ==
// Kezd
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,1995.9027,-2638.5066,13.5469);
SetPlayerPos(playerid,1984.1838,-2659.3738,21.7390);
}
if(listitem == 9) // Getto
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,2499.9438,-1683.9733,13.4124);
SetPlayerPos(playerid,2499.9438,-1683.9733,13.4124);
}
if(listitem == 10) // Vissza
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
}
if(dialogid == DIALOGID+1) // Driftek
{
if(response)
{
if(listitem == 0) // Drift1
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2408.0193,-598.2673,132.6484);
SetPlayerPos(playerid,-2408.0193,-598.2673,132.6484);
}
if(listitem == 1) // Drift2
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-343.0818,1541.9465,75.5625);
SetPlayerPos(playerid,-343.0818,1541.9465,75.5625);
}
if(listitem == 2) // Drift3
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,2272.3330,1388.4868,42.8203);
SetPlayerPos(playerid,2272.3330,1388.4868,42.8203);
}
if(listitem == 3) // Back
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
}
if(dialogid == DIALOGID+3) // Stuntok
{
if(response)
{
if(listitem == 0) // Mcdonald
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,1030.8206,-455.0317,51.4649);
SetPlayerPos(playerid,1030.8206,-455.0317,51.4649);
}
if(listitem == 1) // Back
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
if(dialogid == DIALOGID+4) // Egyéb
{
if(response)
{
if(listitem == 0) // Tuningolo
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2691.6287,217.4170,4.1797);
SetPlayerPos(playerid,-2691.6287,217.4170,4.1797);
}
if(listitem == 1) // Back
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
}
return 1;
}
return 0;
}[/pawn]
«
Utoljára szerkesztve: 2011. december 02. - 15:40:34 írta Sheet
»
Naplózva
kadaradam
2573
Teleport help
«
Válasz #5 Dátum:
2011. december 02. - 16:50:35 »
0
Voters list:
[pawn]/*
--------------------LV, SF, LS teleports----------------
Island teleports ver 1.0
Thanks to Jasen for helping me throught this
By Benne
*/
#include <a_samp>
#define FILTERSCRIPT
#define DIALOGID 3300
#define VehicleID 3300
public OnFilterScriptInit()
{
print(\"\\n Go to LS, SF or LV.\\n\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/tele\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
return 1;
}
if (strcmp(\"/kar\", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOGID+10, DIALOG_STYLE_MSGBOX, \"Created By\", \"Teleport to LV/SF/LS was created by Benne\\nThanks to Jasen\\n Type /teleport to open up the teleport dialog.\", \"OK\", \"\");
return 2;
}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID) // Teleport Dialog
{
if(response)
{
if(listitem == 0) // Általános teleportok
{
ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, \"Általános teleportok\", \"Sf\\nLv\\nAir-lv\\nAir-sf\\nJizzy\\nChilliad\\nTengerpart\\nSivatag\\nKezd\\nGetto\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
if(listitem == 1) // Driftek
{
ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, \"Driftek\", \"Drift1\\nDrift2\\nDrift3\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
if(listitem == 2) // Stuntok
{
ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, \"Stuntok\", \"Mcdonald\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
if(listitem == 3) // Egyéb
{
ShowPlayerDialog(playerid, DIALOGID+4, DIALOG_STYLE_LIST, \"Egyéb\", \"Tuningolo\\nVissza\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
}
if(dialogid == DIALOGID+0) // Általános teleportok
{
if(response)
{
if(listitem == 0) // SF
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-1967.9850,293.9560,35.1719);
SetVehiclePos(VehicleID,-1976.4326,288.0257,35.1719);
}
if(listitem == 1) // LV
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,2187.5503,1675.6205,11.1074);
SetPlayerPos(playerid,2187.5503,1675.6205,11.1074);
}
if(listitem == 2) // Air-lv
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,1412.2479,1844.7388,10.8287);
SetPlayerPos(playerid,1412.2479,1844.7388,10.8287);
}
if(listitem == 3) // Air-sf
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-1645.8783,-287.2897,14.1484);
SetPlayerPos(playerid,-1645.8783,-287.2897,14.1484);
}
if(listitem == 4) // Jizzy
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2630.2886,1355.5831,7.1028);
SetPlayerPos(playerid,-2620.5840,1403.6141,7.0938);
}
if(listitem == 5) // Chilliad
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2241.4741,-1732.2726,480.3542);
SetPlayerPos(playerid,-2241.4741,-1732.2726,480.3542);
}
if(listitem == 6) // Tengerpart
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,317.6685,-1784.0103,4.6933);
SetPlayerPos(playerid,317.6685,-1784.0103,4.6933);
}
if(listitem == 7) // Sivarag
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,405.8245,2483.0779,16.4844);
SetPlayerPos(playerid,405.8245,2483.0779,16.4844);
}
if(listitem ==
// Kezd
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,1995.9027,-2638.5066,13.5469);
SetPlayerPos(playerid,1984.1838,-2659.3738,21.7390);
}
if(listitem == 9) // Getto
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,2499.9438,-1683.9733,13.4124);
SetPlayerPos(playerid,2499.9438,-1683.9733,13.4124);
}
if(listitem == 10) // Vissza
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
}
if(dialogid == DIALOGID+1) // Driftek
{
if(response)
{
if(listitem == 0) // Drift1
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2408.0193,-598.2673,132.6484);
SetPlayerPos(playerid,-2408.0193,-598.2673,132.6484);
}
if(listitem == 1) // Drift2
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-343.0818,1541.9465,75.5625);
SetPlayerPos(playerid,-343.0818,1541.9465,75.5625);
}
if(listitem == 2) // Drift3
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,2272.3330,1388.4868,42.8203);
SetPlayerPos(playerid,2272.3330,1388.4868,42.8203);
}
if(listitem == 3) // Back
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
}
if(dialogid == DIALOGID+3) // Stuntok
{
if(response)
{
if(listitem == 0) // Mcdonald
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,1030.8206,-455.0317,51.4649);
SetPlayerPos(playerid,1030.8206,-455.0317,51.4649);
}
if(listitem == 1) // Back
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
return 1;
if(dialogid == DIALOGID+4) // Egyéb
{
if(response)
{
if(listitem == 0) // Tuningolo
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(VehicleID,-2691.6287,217.4170,4.1797);
SetPlayerPos(playerid,-2691.6287,217.4170,4.1797);
}
if(listitem == 1) // Back
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, \"Teleportok\", \"Általános teleportok\\nDriftek\\nStuntok\\nDm\\nEgyéb\", \"Kiválaszt\", \"Mégse\");
}
}
}
return 1;
}
return 0;
}[/pawn]
Naplózva
ninjo98
390
Teleport help
«
Válasz #6 Dátum:
2011. december 03. - 17:12:41 »
0
Voters list:
Amit írtál 26 erroros
Naplózva
Benceee
4785
Teleport help
«
Válasz #7 Dátum:
2011. december 03. - 17:15:00 »
0
Voters list:
Hibák?
Naplózva
ninjo98
390
Teleport help
«
Válasz #8 Dátum:
2011. december 03. - 17:54:36 »
0
Voters list:
[pawn]
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(24) : error 025: function heading differs from prototype
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(24) : error 029: invalid expression, assumed zero
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(26) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(29) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(31) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(34) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(38) : error 025: function heading differs from prototype
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(38) : error 029: invalid expression, assumed zero
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(40) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(42) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(44) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(48) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(52) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(56) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(61) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(64) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(66) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(68) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(74) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(80) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(86) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(92) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(98) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(104) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(110) : error 010: invalid function or declaration
C:\\Program Files\\LEGNAGYOBB\\SERVER\\filterscripts\\Portmenü.pwn(117) : error 010: invalid function or declaration
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
[/pawn]
26 Errors
«
Utoljára szerkesztve: 2011. december 03. - 20:28:19 írta ɐʞzssǝlosz
»
Naplózva
Benceee
4785
Teleport help
«
Válasz #9 Dátum:
2011. december 05. - 20:19:44 »
0
Voters list:
[mod]Másik témában már másikat kérdezel. Valószínûleg megoldva, ha mégsem, nyisd újra. zárom.[/mod]
Naplózva
Nyomtatás
Oldalak: [
1
]
Fel
« előző
következő »
GTA Közösség - A magyar GTA fórum
»
San Andreas Multiplayer (SA-MP)
»
SA-MP: Szerverfejlesztés
»
Segítségkérés
»
Teleport help
ePrivacy and GPDR Cookie Consent by CookieConsent.com
SimplePortal 2.3.7 © 2008-2024, SimplePortal