Üzenetek megjelenítése

Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.


Üzenetek - stamp

Oldalak: [1] 2
1
SA-MP: Szerverfejlesztés / Teleport
« Dátum: 2013. április 01. - 19:26:33 »
Igen!

2
SA-MP: Szerverfejlesztés / Teleport
« Dátum: 2013. április 01. - 17:54:06 »

Hali
Tudom ,hogy sok teleport szkript van de én készítettem egy egyedit!
Teleportok: /lv /ls /sf /sfair /lsair /pa /bb /lvair /fc /spawn   [10db]
 
//////////////////////////////
/////////By stampiii///////////
/////////////////////////////
#include <a_samp>
#include <zcmd>
#define FILTERSCRIPT
#define COLOR_LIGHTBLUED 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_GREEN 0x33AA33AA
////////////////////////////////Teleportok//////////////////////////////////////
CMD:lv(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),2326.9124,1395.6553,42.8203);
SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Las Venturas-ba\");
    SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,2326.9124,1395.6553,42.8203);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Las Venturas-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,2326.9124,1395.6553,42.8203);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Las Venturas-ba\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:ls(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),2304.1643,-1642.7743,14.5374);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Los Santos-ba\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,2304.1643,-1642.7743,14.5374);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Los Santos-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,2304.1643,-1642.7743,14.5374);
SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Los Santos-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:sf(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),-1988.2336,178.8083,27.5391);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál San Fiero-ba\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,-1988.2336,178.8083,27.5391);
SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál San Fiero-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,-1988.2336,178.8083,27.5391);
SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál San Fiero-ba\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:lvair(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),1315.9454,1303.0953,10.8203);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál a Las Venturas-i reptérre\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,1315.9454,1303.0953,10.8203);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál a Las Venturas-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,1315.9454,1303.0953,10.8203);
SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál a Las Venturas-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:lsair(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),1914.9293,-2251.8259,13.5469);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál a Los Santos-i reptérre\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,1914.9293,-2251.8259,13.5469);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál a Los Santos-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,1914.9293,-2251.8259,13.5469);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál a Los Santos-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:sfair(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),-1553.7771,-240.2939,14.1484);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál a San Fiero-i reptérre\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,-1553.7771,-240.2939,14.1484);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál a San Fiero-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,-1553.7771,-240.2939,14.1484);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál a San Fiero-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:pa(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),2408.2493,90.8666,26.4740);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Palomino-ba\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,2408.2493,90.8666,26.4740);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Palomino-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,2408.2493,90.8666,26.4740);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Palomino-ba\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:fc(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),-197.1303,1212.2777,19.7422);
SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Fort Carson-ba\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,-197.1303,1212.2777,19.7422);
SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Fort Carson-ba\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,-197.1303,1212.2777,19.7422);
    SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Fort Carson-ba\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:bb(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),214.1872,-146.6117,1.5859);
SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Blueberry-be\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Blueberry-be\");
SetPlayerPos(playerid,214.1872,-146.6117,1.5859);
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,214.1872,-146.6117,1.5859);
SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál Blueberry-be\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:spawn(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),-342.9536,1514.7717,75.3594);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Kezdõhely-re\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,-342.9536,1514.7717,75.3594);
SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál a Kezdõhely-re\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,-342.9536,1514.7717,75.3594);
SendClientMessage(playerid, COLOR_GREEN, \"Elteleportáltál a Kezdõhely-re\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
}

 

http://www.solidfiles.com/d/79394628b4/

3
Hivatalos fórumról áthozott szkriptek / Barát-rendszer[HUN]
« Dátum: 2013. április 01. - 12:12:57 »
Köszii :)

4
Hivatalos fórumról áthozott szkriptek / Barát-rendszer[HUN]
« Dátum: 2013. április 01. - 00:06:39 »

Tudom ,hogy már régebben felrakták ez a scriptet de én nem tudtam letölteni és hát ebbõl gondolom ,hogy az újoncok mint én is nem tudják letölteni ezért felrakom ide. Letöltöttem azt angol eredetit és nagyjából lefordítottam!Egészséggel használjátok!
Script telepítése:
-Kicsomagolod
-A \"Filterscript\" mappába bemásolod ami a .rar-ban van
-A \"Scriptfiles\" mappába nyitol egy olyan mappát ,hogy \"friendUsers\"
-A \"server.cfg\" fájlba a filterscripthez beirod , hogy \"friend\"
-Elmented és elindítod a szervert
 

http://www.solidfiles.com/d/a0c1e541ea/

 

/*               
         ********************************
            FRD.Friend script
         ********************************
Érteleme:
A szervereken lehetõvé teszi hogy ismerkedj a játékosokkal!
Verzió:
1.0
Fejlesztõ:
Nem találtam meg :/
Fordító:
      stampiii
Keletkezése:
17/09/2011:
Fordítás keletkezése:
    30/03/2013:
*/
#define FILTERSCRIPT
#define AMIGODIALOG 9876
#define MESGEDIALOG 9877
#include <a_samp>
#include <zcmd>
#include <DOF2>
#include <sscanf2>
#include <foreach>
new Text:BackGround;
new Text:TextString[MAX_PLAYERS] = {Text:INVALID_TEXT_DRAW, ...};
new Text:ListString[MAX_PLAYERS] = {Text:INVALID_TEXT_DRAW, ...};
new StringTimer[MAX_PLAYERS];
new FriendTimer[MAX_PLAYERS];
forward HideMessageBoxForPlayer(playerid);
forward HideFriendBoxForPlayer(playerid);
forward SetMessageBoxForPlayer(playerid, string[]);
forward SetFriendBoxForPlayer(playerid, string[]);
stock GetPlayerNameEx(playerid)
{
    new string[MAX_PLAYER_NAME];
    GetPlayerName(playerid, string, MAX_PLAYER_NAME);
    return string;
}
stock GetPlayerNameIns(playerid)
{
    new string[MAX_PLAYER_NAME];
    GetPlayerName(playerid, string, MAX_PLAYER_NAME);
new stringLength = strlen(string);
strins(string, \"~n~\", stringLength);
    return string;
}
public OnFilterScriptInit()
{
print(\"\\n-------------------------------------------\");
print(\"Egyszerû Ismerõs rendszer betöltése sikeres.\");
print(\"-------------------------------------------\\n\");
//
BackGround = TextDrawCreate(640.000000, 336.000000, \"_\");
TextDrawBackgroundColor(BackGround, 255);
TextDrawFont(BackGround, 1);
TextDrawLetterSize(BackGround, 0.600000, 12.000000);
TextDrawColor(BackGround, -1);
TextDrawSetOutline(BackGround, 0);
TextDrawSetProportional(BackGround, 1);
TextDrawSetShadow(BackGround, 1);
TextDrawUseBox(BackGround, 1);
TextDrawBoxColor(BackGround, 119);
TextDrawTextSize(BackGround, 480.000000, 0.000000);
return 1;
}
public OnFilterScriptExit()
{
DOF2_Exit();
return 1;
}
public SetMessageBoxForPlayer(playerid, string[])
{
KillTimer(StringTimer[playerid]);
TextDrawSetString(TextString[playerid], string);
TextDrawShowForPlayer(playerid, BackGround);
TextDrawShowForPlayer(playerid, TextString[playerid]);
return 1;
}
public SetFriendBoxForPlayer(playerid, string[])
{
KillTimer(FriendTimer[playerid]);
TextDrawSetString(ListString[playerid], string);
TextDrawShowForPlayer(playerid, ListString[playerid]);
return 1;
}
public HideFriendBoxForPlayer(playerid)
{
KillTimer(FriendTimer[playerid]);
TextDrawHideForPlayer(playerid, ListString[playerid]);
return 1;
}
public HideMessageBoxForPlayer(playerid)
{
KillTimer(StringTimer[playerid]);
TextDrawHideForPlayer(playerid, BackGround);
TextDrawHideForPlayer(playerid, TextString[playerid]);
return 1;
}
public OnPlayerConnect(playerid)
{
TextString[playerid] = TextDrawCreate(483.000000, 337.000000, \"Üdvözöllek:\");
TextDrawBackgroundColor(TextString[playerid], 255);
TextDrawFont(TextString[playerid], 1);
TextDrawLetterSize(TextString[playerid], 0.210000, 1.400000);
TextDrawColor(TextString[playerid], -1);
TextDrawSetOutline(TextString[playerid], 0);
TextDrawSetProportional(TextString[playerid], 1);
TextDrawSetShadow(TextString[playerid], 1);
TextDrawUseBox(TextString[playerid], 1);
TextDrawBoxColor(TextString[playerid], 0xFFFFFF00);
TextDrawTextSize(TextString[playerid], 638.000000, 0.000000);
//
ListString[playerid] = TextDrawCreate(156.000000, 165.000000, \"Elérhetõ Barátok:\");
TextDrawBackgroundColor(ListString[playerid], 255);
TextDrawFont(ListString[playerid], 1);
TextDrawLetterSize(ListString[playerid], 0.410000, 0.799999);
TextDrawColor(ListString[playerid], -1);
TextDrawSetOutline(ListString[playerid], 0);
TextDrawSetProportional(ListString[playerid], 1);
TextDrawSetShadow(ListString[playerid], 1);
TextDrawUseBox(ListString[playerid], 1);
TextDrawBoxColor(ListString[playerid], 119);
TextDrawTextSize(ListString[playerid], 390.000000, 20.000000);
//
new USER_FILE[64], AmigosOnline;
format(USER_FILE, sizeof(USER_FILE), \"SFSUsers/%s.ini\", GetPlayerNameEx(playerid));
if(!DOF2_FileExists(USER_FILE)) DOF2_CreateFile(USER_FILE);
foreach(Player, i)
{
if(DOF2_GetInt(USER_FILE, GetPlayerNameEx(i)) == 1)
{
   AmigosOnline++;
   new iStr[50];
   format(iStr, sizeof(iStr), \"~n~~n~%s csatlakozott.\", GetPlayerNameEx(playerid));
   SetMessageBoxForPlayer(i, iStr);
   StringTimer = SetTimerEx(\"HideMessageBoxForPlayer\", 6000, false, \"i\", i);
}
}
//
new iStr[128];
format(iStr, sizeof(iStr), \"Üdvözöllek %s,~n~~n~Sikeresen kapcsolódott.~n~~n~Elérhetõ Barátok: %i\", GetPlayerNameEx(playerid), AmigosOnline);
TextDrawSetString(TextString[playerid], iStr);
TextDrawShowForPlayer(playerid, BackGround);
TextDrawShowForPlayer(playerid, TextString[playerid]);
StringTimer[playerid] = SetTimerEx(\"HideMessageBoxForPlayer\", 6000, false, \"i\", playerid);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
TextDrawDestroy(Text:TextString[playerid]);
TextDrawDestroy(Text:ListString[playerid]);
TextString[playerid] = Text:INVALID_TEXT_DRAW;
ListString[playerid] = Text:INVALID_TEXT_DRAW;
new USER_FILE[64];
format(USER_FILE, sizeof(USER_FILE), \"SFSUsers/%s.ini\", GetPlayerNameEx(playerid));
foreach(Player, i)
{
if(DOF2_GetInt(USER_FILE, GetPlayerNameEx(i)) == 1)
{
   new iStr[50];
   format(iStr, sizeof(iStr), \"~n~~n~%s has lecsatlakozott.\", GetPlayerNameEx(playerid));
   SetMessageBoxForPlayer(i, iStr);
   StringTimer = SetTimerEx(\"HideMessageBoxForPlayer\", 6000, false, \"i\", i);
}
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case AMIGODIALOG:
{
   if(!response)
   {
      SendClientMessage(GetPVarInt(playerid, \"AmigoRequest\"), 0x33AA33AA, \"(*) A meghívást elutasították.\");
      DeletePVar(playerid, \"AmigoRequest\");
      SendClientMessage(playerid, 0x33AA33AA, \"(*) Ön elutasította a meghívást.\");
      return 1;
   }
   new USER_FILE[64], FRIEND_FILE[64];
   new giveplayerid = GetPVarInt(playerid, \"AmigoRequest\");
   format(USER_FILE, sizeof(USER_FILE), \"SFSUsers/%s.ini\", GetPlayerNameEx(playerid));
   DOF2_SetInt(USER_FILE, GetPlayerNameEx(giveplayerid), 1);
   format(FRIEND_FILE, sizeof(FRIEND_FILE), \"SFSUsers/%s.ini\", GetPlayerNameEx(giveplayerid));
   DOF2_SetInt(FRIEND_FILE, GetPlayerNameEx(playerid), 1);
   DOF2_SaveFile();
   SendClientMessage(giveplayerid, 0x33AA33AA, \"(*) A meghívást elfogadták.\");
   SendClientMessage(playerid, 0x33AA33AA, \"(*) Te már elfogadtad a meghívást.\");
   DeletePVar(playerid, \"AmigoRequest\");
}
case MESGEDIALOG:
{
   if(!response) return 1;
   new command[128];
   format(command, sizeof(command), \"%i %s\", GetPVarInt(playerid, \"ClickedPlayer\"), inputtext);
   cmd_msg(playerid, command);
}
}   
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new USER_FILE[64];
format(USER_FILE, sizeof(USER_FILE), \"SFSUsers/%s.ini\", GetPlayerNameEx(playerid));
if(DOF2_GetInt(USER_FILE, GetPlayerNameEx(clickedplayerid)) == 0) return SendClientMessage(playerid, 0x33AA33AA, \"(*) Õ nem a barátod.\");
SetPVarInt(playerid, \"ClickedPlayer\", clickedplayerid);
ShowPlayerDialog(playerid, MESGEDIALOG, DIALOG_STYLE_INPUT, \"Üzenet küldése a barátnak.\", \"Üzenet írása.\", \"Küld\", \"Mégse\");
return 1;
}
CMD:friend(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0x33AA33AA, \"(*) /friend [playerid]\");
if(playerid == giveplayerid) return SendClientMessage(playerid, 0x33AA33AA, \"(*) Nem lehetsz saját magad barátja.\");
new USER_FILE[64];
format(USER_FILE, sizeof(USER_FILE), \"SFSUsers/%s.ini\", GetPlayerNameEx(playerid));
if(DOF2_GetInt(USER_FILE, GetPlayerNameEx(giveplayerid)) == 1) return SendClientMessage(playerid, 0x33AA33AA, \"(*) Már barátja vagy a játékosnak.\");
new iStr[70];
format(iStr, sizeof(iStr), \"(*) You sent an invitation to %s for a friendship.\", GetPlayerNameEx(giveplayerid));
SendClientMessage(playerid, 0x33AA33AA, iStr);
format(iStr, sizeof(iStr), \"%s Barátod akarok lenni.\\nElfogadod?\", GetPlayerNameEx(playerid));
ShowPlayerDialog(giveplayerid, AMIGODIALOG, DIALOG_STYLE_MSGBOX, \"Ön elfogadja?\", iStr, \"Igen\", \"Nem\");
SetPVarInt(giveplayerid, \"AmigoRequest\", playerid);
return 1;
}
CMD:deletefriend(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0x33AA33AA, \"(*) /deletefriend [playerid]\");
if(playerid == giveplayerid) return SendClientMessage(playerid, 0x33AA33AA, \"(*) Magadat nem törölheted.\");
new USER_FILE[64];
format(USER_FILE, sizeof(USER_FILE), \"SFSUsers/%s.ini\", GetPlayerNameEx(playerid));
if(DOF2_GetInt(USER_FILE, GetPlayerNameEx(giveplayerid)) != 1) return SendClientMessage(playerid, 0x33AA33AA, \"(*) Te nem vagy barátja a játékosnak.\");
new iStr[70];
format(iStr, sizeof(iStr), \"(*) Te törölted %s a barátod.\", GetPlayerNameEx(giveplayerid));
SendClientMessage(playerid, 0x33AA33AA, iStr);
format(iStr, sizeof(iStr), \"(*) %s deleted you as friend.\", GetPlayerNameEx(playerid));
SendClientMessage(giveplayerid, 0x33AA33AA, iStr);
DOF2_SetInt(USER_FILE, GetPlayerNameEx(giveplayerid), 0);
//
new FRIEND_FILE[64];
format(FRIEND_FILE, sizeof(FRIEND_FILE), \"SFSUsers/%s.ini\", GetPlayerNameEx(giveplayerid));
DOF2_SetInt(FRIEND_FILE, GetPlayerNameEx(playerid), 0);
DOF2_SaveFile();
return 1;
}
CMD:myfriends(playerid, params[])
{
new count = 0;
new iStr[1024] = \"Friends Online:~n~\";
foreach(Player, i)
{
new USER_FILE[64];
format(USER_FILE, sizeof(USER_FILE), \"SFSUsers/%s.ini\", GetPlayerNameEx(playerid));
if(DOF2_GetInt(USER_FILE, GetPlayerNameEx(i)) == 1)
{
   strins(iStr, GetPlayerNameIns(i), strlen(iStr));
   count++;
}
}
if(count == 0)
{
SetFriendBoxForPlayer(playerid, \"Elérhetõ Barátok:~n~Nincs fennt online ismerõsöd.\");
FriendTimer[playerid] = SetTimerEx(\"HideFriendBoxForPlayer\", 6000, false, \"i\", playerid);
}
else
{
SetFriendBoxForPlayer(playerid, iStr);
FriendTimer[playerid] = SetTimerEx(\"HideFriendBoxForPlayer\", 6000, false, \"i\", playerid);
}
return 1;
}
CMD:creditsfs(playerid, params[])
{
SendClientMessage(playerid, 0xA9C4E4FF, \"Simple Friend System - Credits\");
SendClientMessage(playerid, 0xA9C4E4FF, \"Delevelopers:\");
SendClientMessage(playerid, 0x33AA33AA, \"Luke \\\"Larceny\\\" Godoy.\");
SendClientMessage(playerid, 0x33AA33AA, \"Los.\");
return 1;
}
CMD:helpfs(playerid, params[])
{
SendClientMessage(playerid, 0xA9C4E4FF, \"Parancsok:\");
SendClientMessage(playerid, 0xA9C4E4FF, \"/friend(barát) - /deletefriend - /msg(üzenet küldése[katt a fülre]) - /creditsfs - /helpfs - /myfriends(Elérhetõ barátok)\");
return 1;
}
CMD:msg(playerid, params[])
{
new giveplayerid, gMsg[128];
if(sscanf(params, \"us[128]\", giveplayerid, gMsg)) return SendClientMessage(playerid, 0x33AA33AA, \"(*) /msg [playerid] [üzenet]\");
if(playerid == giveplayerid) return SendClientMessage(playerid, 0x33AA33AA, \"(*) Magadnak nem küldhetsz üzenetet.\");
if(strcmp(gMsg,\"^\",true) == 0) return SendClientMessage(playerid, 0x33AA33AA, \"(*) \'\'^\'\' Karakter nem megengedett.\");
if(strcmp(gMsg,\"~\",true) == 0) return SendClientMessage(playerid, 0x33AA33AA, \"(*) \'\'~\'\' Karakter nem megengedett.\");
new iStr[256], gStr[164];
format(iStr, sizeof(iStr), \"%s Says: ~n~%s\", GetPlayerNameEx(playerid), gMsg);
format(gStr, sizeof(gStr), \"%s Says: %s\", GetPlayerNameEx(playerid), gMsg);
SetMessageBoxForPlayer(giveplayerid, iStr);
StringTimer[giveplayerid] = SetTimerEx(\"HideMessageBoxForPlayer\", 6000, false, \"i\", giveplayerid);
SendClientMessage(giveplayerid, -1, gStr);
//
format(iStr, sizeof(iStr), \"To %s: ~n~%s\", GetPlayerNameEx(giveplayerid), gMsg);
format(gStr, sizeof(gStr), \"To %s: %s\", GetPlayerNameEx(giveplayerid), gMsg);
SetMessageBoxForPlayer(playerid, iStr);
SetMessageBoxForPlayer(playerid, iStr);
StringTimer[playerid] = SetTimerEx(\"HideMessageBoxForPlayer\", 6000, false, \"i\", playerid);
SendClientMessage(playerid, -1, gStr);
return 1;
}

5
Segítségkérés / Script
« Dátum: 2013. március 31. - 16:34:39 »
Valaki ebbe a scriptbe tudna nekem feladatot írni? Hogy hova menjen meg h pl elmegy a ponthoz kap érte 15$-árt kb egy munkának vagy 7feladatja legyen aki megcsinálja adminnal jutalmazom a szerveremen :)
Ezt kéne átírni:http://sampforum.hu/index.php?topic=20715.0

6
Segítségkérés / Házrendszer "telepítése"
« Dátum: 2013. március 29. - 11:49:14 »
Hali
Azt szeretném megtudni hogy melyik a legjobb házrendszer és hogy kell azt felrakni ? Valaki leírná?

7
Segítségkérés / Kód átírás
« Dátum: 2013. március 28. - 18:03:03 »
Hali valaki ezt át tudja írni h ne /jarmu kelljen beírni hanem /v-t
 
/*
Jármû Lekérõ By: SpeAroX V1.1
A filterscript /jarmu parancsal használható!
Ha a szervereden kavarodás lenne dialogok között akkor a dialog id-t cseréld egy nem használt id-re! (11. Sor)
A Megadott dialog id tõl számítva a script még +13 dialogot foglal el. Tehát összesen 14 dialog lesz foglalt
Példa: ha a jarmudialog 1 akkor a foglalt dialogok 1-13
*/
#include <a_samp>
#define jarmudialog 1
new jarmu[MAX_PLAYERS];
public OnFilterScriptInit()
{
print(\"\\n----------------------------------\");
print(\"      Jármû Lekérõ By: SpeAroX      \");
print(\"----------------------------------\\n\");
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(vehicleid == jarmu[playerid])
{
       DestroyVehicle(jarmu[playerid]);
}
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp(\"/jarmu\", cmdtext, true, 10) == 0)
   {
              ShowPlayerDialog(playerid, jarmudialog, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Légi Jármûvek\\nVízi Jármûvek\\nSzárazföldi Jármûvek\\nEgyéb Jármûvek\",\"Választ\", \"Kilép\");
               return 1;
   }
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == jarmudialog)
{
if(!response)
{
   return 1;
}
if(listitem == 0)
   {
          ShowPlayerDialog(playerid, jarmudialog+1, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Andromada\\nAT-400\\nBeagle\\nCropduster\\nDodo\\nHydra\\nNevada\\nRustler\\nShamal\\nSkimmer\\nStuntplane\\nCargobob\\nHunter\\nLeviathan\\nMaverick\\nNews Maverick\\nPolice Maverick\\nRaindance\\nSeasparrow\\nSparrow\",\"Választ\", \"Kilép\");
   }
if(listitem == 1)
           {
                  ShowPlayerDialog(playerid, jarmudialog+2, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Coastguard\\nDinghy\\nJetmax\\nLaunch\\nMarquis\\nPredator\\nReefer\\nSpeeder\\nSquallo\\nTropic\",\"Választ\", \"Kilép\");
           }
if(listitem == 2)
            {
                    ShowPlayerDialog(playerid, jarmudialog+3, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Motorok\\nCabrio\\nIpari\\nLowriders\\nOff Road\\nSzolgálati\\nSzalon\\nSport\\nKombik\",\"Választ\", \"Kilép\");
            }
if(listitem == 3)
            {
                    ShowPlayerDialog(playerid, jarmudialog+13, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Dumper\\nStretch\\nMr Whoopee\\nSecuricar\\nHotknife\\nRC Bandit\\nRomero\\nTram\\nCaddy\\nRC Baron\\nRC Raider\\nCamper\\nBaggage\\nDozer\\nRC Goblin\\nJourney\\nTowtruck\\nForklift\\nCombine Harvester\\nBrownstreak (Train)\\nFreight (Train)\\nVortex\\nHustler\\nRC Tiger\\nKart\\nMower\\nSweeper\\nTug\\nHotdog\",\"Választ\", \"Kilép\");
            }
}
if(dialogid == jarmudialog+1)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(592, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(577, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(511, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(512, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(593, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(520, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(553, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(476, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(519, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(460, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(513, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(548, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(425, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(417, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 14)
   {
         jarmu[playerid] = CreateVehicle(487, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 15)
   {
         jarmu[playerid] = CreateVehicle(488, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 16)
   {
         jarmu[playerid] = CreateVehicle(497, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 17)
   {
         jarmu[playerid] = CreateVehicle(563, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 18)
   {
         jarmu[playerid] = CreateVehicle(447, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 19)
   {
         jarmu[playerid] = CreateVehicle(469, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+2)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(472, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(473, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(493, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(595, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(484, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(430, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(453, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(452, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(446, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(454, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+3)
{
if(!response)
{
   return 1;
}
if(listitem == 0)
   {
                    ShowPlayerDialog(playerid, jarmudialog+4, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Bike\\nBMX\\nMountain Bike\\nFaggio\\nPizzaboy\\nBF-400\\nNRG-500\\nPCJ-600\\nFCR-900\\nCop Bike (HPV-1000)\\nFreeway\\nWayfarer\\nSanchez\\nQuad\",\"Választ\", \"Kilép\");
   }
if(listitem == 1)
           {
                    ShowPlayerDialog(playerid, jarmudialog+5, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Comet\\nFeltzer\\nStallion\\nWindsor\",\"Választ\", \"Kilép\");
           }
if(listitem == 2)
            {
                    ShowPlayerDialog(playerid, jarmudialog+6, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Benson\\nBobcat\\nBurrito\\nBoxville\\nBoxburg\\nCement Truck\\nDFT-30\\nFlatbed\\nLinerunner\\nMule\\nNewsvan\\nPacker\\nPetrol Tanker\\nPicador\\nPony\\nRoadtrain\\nRumpo\\nSadler\\nSadler Shit\\nTopfun\\nTractor\\nTrashmaster\\nUtility Van\\nWalton\\nYankee\\nYosemite\",\"Választ\", \"Kilép\");
            }
if(listitem == 3)
            {
                    ShowPlayerDialog(playerid, jarmudialog+7, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Blade\\nBroadway\\nRemington\\nSavanna\\nSlamvan\\nTahoma\\nTornado\\nVoodoo\",\"Választ\", \"Kilép\");
            }
if(listitem == 4)
            {
                    ShowPlayerDialog(playerid, jarmudialog+8, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Bandito\\nBF Injection\\nDune\\nHuntley\\nLandstalker\\nMesa\\nMonster\\nMonster A\\nMonster B\\nPatriot\\nRancher\\nSandking\",\"Választ\", \"Kilép\");
            }
if(listitem == 5)
            {
                    ShowPlayerDialog(playerid, jarmudialog+9, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Ambulance\\nBarracks\\nBus\\nCabbie\\nCoach\\nCop Bike (HPV-1000)\\nEnforcer\\nFBI Rancher\\nFBI Truck\\nFiretruck\\nFiretruck LA\\nPolice Car (LSPD)\\nPolice Car (LVPD)\\nPolice Car (SFPD)\\nRanger\\nRhino\\nS.W.A.T.\\nTaxi\",\"Választ\", \"Kilép\");
            }
if(listitem == 6)
            {
                    ShowPlayerDialog(playerid, jarmudialog+10, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Admiral\\nBloodring Banger\\nBravura\\nBuccaneer\\nCadrona\\nClover\\nElegant\\nElegy\\nEmperor\\nEsperanto\\nFortune\\nGlendale Shit\\nGlendale\\nGreenwood\\nHermes\\nIntruder\\nMajestic\\nManana\\nMerit\\nNebula\\nOceanic\\nPremier\\nPrevion\\nPrimo\\nSentinel\\nStafford\\nSultan\\nSunrise\\nTampa\\nVincent\\nVirgo\\nWillard\\nWashington\",\"Választ\", \"Kilép\");
            }
if(listitem == 7)
            {
                    ShowPlayerDialog(playerid, jarmudialog+11, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Alpha\\nBanshee\\nBlista Compact\\nBuffalo\\nBullet\\nCheetah\\nClub\\nEuros\\nFlash\\nHotring Racer 1\\nHotring Racer 2\\nHotring Racer 3\\nInfernus\\nJester\\nPhoenix\\nSabre\\nSuper GT\\nTurismo\\nUranus\\nZR-350\",\"Választ\", \"Kilép\");
            }
if(listitem == 8)
            {
                    ShowPlayerDialog(playerid, jarmudialog+12, DIALOG_STYLE_LIST, \"Jármû Lekérõ By: SpeAroX\",\"Moonbeam\\nPerenniel\\nRegina\\nSolair\\nStratum\",\"Választ\", \"Kilép\");
            }
}
if(dialogid == jarmudialog+4)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(509, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(481, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(510, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(462, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(448, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(581, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(522, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(461, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(521, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(523, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(463, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(586, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(468, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(471, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+5)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(480, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(533, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(439, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(555, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+6)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(499, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(422, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(482, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(498, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(609, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(524, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(578, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(455, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(403, X,Y,Z, 0.0, 1, 1, 6000);
            }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(414, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(582, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(443, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(514, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(600, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 14)
   {
         jarmu[playerid] = CreateVehicle(413, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 15)
   {
         jarmu[playerid] = CreateVehicle(515, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 16)
   {
         jarmu[playerid] = CreateVehicle(440, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 17)
   {
         jarmu[playerid] = CreateVehicle(543, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 18)
   {
         jarmu[playerid] = CreateVehicle(605, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 19)
   {
         jarmu[playerid] = CreateVehicle(459, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 20)
   {
         jarmu[playerid] = CreateVehicle(531, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 21)
   {
         jarmu[playerid] = CreateVehicle(408, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 22)
   {
         jarmu[playerid] = CreateVehicle(552, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 23)
   {
         jarmu[playerid] = CreateVehicle(478, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 24)
   {
         jarmu[playerid] = CreateVehicle(456, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 25)
   {
         jarmu[playerid] = CreateVehicle(554, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+7)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(536, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(575, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(534, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(567, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(535, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(566, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(576, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(412, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+8)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(568, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(424, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(573, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(579, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(400, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(500, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(444, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(556, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(557, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(470, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(489, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(495, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+9)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(416, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(433, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(431, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(438, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(437, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(523, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(427, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(490, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(528, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(407, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(544, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(596, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(598, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(597, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 14)
   {
         jarmu[playerid] = CreateVehicle(599, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 15)
   {
         jarmu[playerid] = CreateVehicle(432, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 16)
   {
         jarmu[playerid] = CreateVehicle(601, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 17)
   {
         jarmu[playerid] = CreateVehicle(420, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+10)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(445, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(504, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(401, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(518, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(527, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(542, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(507, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(562, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(585, X,Y,Z, 0.0, 1, 1, 6000);
            }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(419, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(526, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(604, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(466, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(492, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 14)
   {
         jarmu[playerid] = CreateVehicle(474, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 15)
   {
         jarmu[playerid] = CreateVehicle(546, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 16)
   {
         jarmu[playerid] = CreateVehicle(517, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 17)
   {
         jarmu[playerid] = CreateVehicle(410, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 18)
   {
         jarmu[playerid] = CreateVehicle(551, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 19)
   {
         jarmu[playerid] = CreateVehicle(516, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 20)
   {
         jarmu[playerid] = CreateVehicle(467, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 21)
   {
         jarmu[playerid] = CreateVehicle(426, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 22)
   {
         jarmu[playerid] = CreateVehicle(436, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 23)
   {
         jarmu[playerid] = CreateVehicle(547, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 24)
   {
         jarmu[playerid] = CreateVehicle(405, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 25)
   {
         jarmu[playerid] = CreateVehicle(580, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 26)
   {
         jarmu[playerid] = CreateVehicle(560, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 27)
   {
         jarmu[playerid] = CreateVehicle(550, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 28)
   {
         jarmu[playerid] = CreateVehicle(549, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 29)
   {
         jarmu[playerid] = CreateVehicle(540, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 30)
   {
         jarmu[playerid] = CreateVehicle(491, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 31)
   {
         jarmu[playerid] = CreateVehicle(529, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 32)
   {
         jarmu[playerid] = CreateVehicle(421, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+11)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
    {
         jarmu[playerid] = CreateVehicle(602, X,Y,Z, 0.0, 1, 1, 6000);
    }
if(listitem == 1)
    {
         jarmu[playerid] = CreateVehicle(429, X,Y,Z, 0.0, 1, 1, 6000);
    }
if(listitem == 2)
    {
         jarmu[playerid] = CreateVehicle(496, X,Y,Z, 0.0, 1, 1, 6000);
    }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(402, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(541, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(415, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(589, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(587, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(565, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(494, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(502, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(503, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(411, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(559, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 14)
   {
         jarmu[playerid] = CreateVehicle(603, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 15)
   {
         jarmu[playerid] = CreateVehicle(475, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 16)
   {
         jarmu[playerid] = CreateVehicle(506, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 17)
   {
         jarmu[playerid] = CreateVehicle(451, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 18)
   {
         jarmu[playerid] = CreateVehicle(558, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 19)
   {
         jarmu[playerid] = CreateVehicle(477, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+12)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(418, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(404, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(479, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(458, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(561, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
if(dialogid == jarmudialog+13)
{
if(!response)
{
   return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
if(listitem == 0)
   {
         jarmu[playerid] = CreateVehicle(406, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 1)
   {
         jarmu[playerid] = CreateVehicle(409, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 2)
   {
         jarmu[playerid] = CreateVehicle(423, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 3)
   {
         jarmu[playerid] = CreateVehicle(428, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 4)
   {
         jarmu[playerid] = CreateVehicle(434, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 5)
   {
         jarmu[playerid] = CreateVehicle(441, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 6)
   {
         jarmu[playerid] = CreateVehicle(442, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 7)
   {
         jarmu[playerid] = CreateVehicle(449, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 8)
   {
         jarmu[playerid] = CreateVehicle(457, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 9)
   {
         jarmu[playerid] = CreateVehicle(464, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 10)
   {
         jarmu[playerid] = CreateVehicle(465, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 11)
   {
         jarmu[playerid] = CreateVehicle(483, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 12)
   {
         jarmu[playerid] = CreateVehicle(485, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 13)
   {
         jarmu[playerid] = CreateVehicle(486, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 14)
   {
         jarmu[playerid] = CreateVehicle(501, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 15)
   {
         jarmu[playerid] = CreateVehicle(508, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 16)
   {
         jarmu[playerid] = CreateVehicle(525, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 17)
   {
         jarmu[playerid] = CreateVehicle(530, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 18)
   {
         jarmu[playerid] = CreateVehicle(532, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 19)
   {
         jarmu[playerid] = CreateVehicle(537, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 20)
   {
         jarmu[playerid] = CreateVehicle(538, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 21)
   {
         jarmu[playerid] = CreateVehicle(539, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 22)
   {
         jarmu[playerid] = CreateVehicle(545, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 23)
   {
         jarmu[playerid] = CreateVehicle(564, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 24)
   {
         jarmu[playerid] = CreateVehicle(571, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 25)
   {
         jarmu[playerid] = CreateVehicle(572, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 26)
   {
         jarmu[playerid] = CreateVehicle(574, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 27)
   {
         jarmu[playerid] = CreateVehicle(583, X,Y,Z, 0.0, 1, 1, 6000);
   }
if(listitem == 28)
   {
         jarmu[playerid] = CreateVehicle(588, X,Y,Z, 0.0, 1, 1, 6000);
   }
PutPlayerInVehicle(playerid,jarmu[playerid],0);
SetCameraBehindPlayer(playerid);
}
    return 0;
}

8
Fórum Archívum (Témák/Fórumok) / Kód átírás
« Dátum: 2013. március 28. - 13:16:35 »
Valaki ezt a Jármû lehívót áttudja írni hogy ha kiszállok másik kocsit hívok elõ akkor eltûnjön amit elõsszõr hívtam elõ
 
Valaki ezt a Jármû lehívót áttudja írni hogy ha kiszállok másik kocsit hívok elõ akkor eltûnjön amit elõsszõr hívtam elõ
/*
Simple Vehicle Spawner by Jochemd. Feel free to modify it to your wishes as long you don\'t claim it as your own.
Questions? Send me a PM via the SA:MP forum or contact me at www.blueshadows.co.cc --> forum.
Regards, Jochemd */
#include <a_samp>
#define DIALOG_VEHICLE 2
#define DIALOG_VEHICLE_FASTCARS 3
#define DIALOG_VEHICLE_BOATS 4
#define DIALOG_VEHICLE_BIKES 5
#define DIALOG_VEHICLE_PLANES 6
#define DIALOG_VEHICLE_HELICOPTERS 7
#define DIALOG_VEHICLE_SPECIAL 8
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, \"\")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
public OnFilterScriptInit()
{
print(\"\\n---------------------------\");
print(\" Vehicle spawner by HardStyle\");
print(\"---------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
    print(\"\\n---------------------------\");
print(\" Vehicle spawner by HardStyle\");
print(\"---------------------------\\n\");
return 1;
}
main()
{
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(v,1,cmdtext);
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new Float:vX, Float:vY, Float:vZ;
    if(dialogid == DIALOG_VEHICLE && response)
    {
        switch(listitem)
        {
            case 0:
            {
      ShowPlayerDialog(playerid,DIALOG_VEHICLE_FASTCARS,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Gyors jármûvek\",\"Alpha\\nBanshee\\nBlista Compact\\nBuffalo\\nBullet\\nCheetah\\nClub\\nEuros\\nHotring Racer\\nInfernus\\nJester\\nPhoenix\\nSabre\\nSuper-GT\\nTurismo\\nUranus\\nZR-350\",\"Ez kell!\",\"Vissza\");
            }
            case 1:
            {
                ShowPlayerDialog(playerid,DIALOG_VEHICLE_BOATS,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Hajók\",\"Coastguard\\nDinghy\\nJetmax\\nLaunch\\nMarquis\\nPredator\\nReefer\\nSpeedo\\nSquallo\\nTropic\",\"Ez kell!\",\"Vissza\");
            }
            case 2:
            {
                ShowPlayerDialog(playerid,DIALOG_VEHICLE_BIKES,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Motorok\",\"Bike\\nBMX\\nMountain Bike\\nFaggio\\nPizza-boy\\nBF-400\\nNRG-500\\nPCJ-600\\nHPV-1000\\nFreeway\\nWayfarer\\nSanchez\\nQuad\\nFCR-900\",\"Ez kell!\",\"Vissza\");
            }
   case 3:
   {
       ShowPlayerDialog(playerid,DIALOG_VEHICLE_PLANES,DIALOG_STYLE_LIST,\".:: Jármû spawn menü Repülõk\",\"Andromada\\nAT-400\\nBeagle\\nCropduster\\nDodo\\nHydra\\nNevada\\nRustler\\nShamal\\nSkimmer\\nStuntplane\",\"Ez kell!\",\"Vissza\");
            }
            case 4:
   {
       ShowPlayerDialog(playerid,DIALOG_VEHICLE_HELICOPTERS,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Helikopterek\",\"Cargobob\\nHunter\\nLeviathan\\nMaverick\\nNews Maverick\\nPolice Maverick\\nRaindance\\nSeasparrow\\nSparrow\",\"Ez kell!\",\"Visssza\");
   }
   case 5:
   {
       ShowPlayerDialog(playerid,DIALOG_VEHICLE_SPECIAL,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Különleges\",\"Dumper\\nRhino\\nStretch\\nHotknife\\nBaggage\\nDozer\\nTow Truck\\nVortex Hovercraft\\nMower\\nKart\",\"Ez kell!\",\"vissza\");
   }
}
return 1;
 }
    if(dialogid == DIALOG_VEHICLE_FASTCARS && response)
    {
        GetPlayerPos(playerid,vX,vY,vZ);
        switch(listitem)
        {
            case 0:
   {
      CreateVehicle(602,vX,vY,vZ,0,-1,-1,0);
      SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Alpha\'!\");
            }
            case 1:
            {
      CreateVehicle(429,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Banshee\'!\");
   }
            case 2:
            {
      CreateVehicle(496,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Blista Compact\'!\");
            }
            case 3:
            {
      CreateVehicle(402,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Buffalo\'!\");
            }
            case 4:
            {
      CreateVehicle(541,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Bullet\'!\");
            }
            case 5:
            {
      CreateVehicle(415,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Cheetah\'!\");
            }
   case 6:
            {
      CreateVehicle(589,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Club\'!\");
            }
            case 7:
            {
      CreateVehicle(587,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Euros\'!\");
            }
            case 8:
            {
      CreateVehicle(494,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Hotring Racer\'!\");
            }
            case 9:
            {
      CreateVehicle(411,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Infernus\'!\");
            }
            case 10:
            {
      CreateVehicle(559,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Jester\'!\");
            }
            case 11:
            {
      CreateVehicle(603,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Phoenix\'!\");
            }
            case 12:
            {
      CreateVehicle(475,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Sabre\'!\");
            }
            case 13:
            {
      CreateVehicle(506,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Super-GT\'!\");
            }
            case 14:
            {
      CreateVehicle(451,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Turismo\'!\");
            }
            case 15:
            {
      CreateVehicle(558,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Uranus\'!\");
            }
            case 16:
            {
      CreateVehicle(477,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'ZR-350\'!\");
            }
            case 17:
            {
               ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
   }
        }
         return 1;
    }
    if(dialogid == DIALOG_VEHICLE_BOATS && response)
    {
        GetPlayerPos(playerid,vX,vY,vZ);
        switch(listitem)
        {
            case 0:
   {
      CreateVehicle(472,vX,vY,vZ,0,-1,-1,0);
      SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Coastguard\'!\");
            }
            case 1:
            {
      CreateVehicle(473,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Dinghy\'!\");
   }
            case 2:
            {
      CreateVehicle(493,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Jetmax\'!\");
            }
            case 3:
            {
      CreateVehicle(595,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Launch\'!\");
            }
            case 4:
            {
      CreateVehicle(484,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Marquis\'!\");
            }
            case 5:
            {
      CreateVehicle(430,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Predator\'!\");
            }
   case 6:
            {
      CreateVehicle(453,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Reefer\'!\");
            }
            case 7:
            {
      CreateVehicle(452,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Speeder\'!\");
            }
            case 8:
            {
      CreateVehicle(446,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Squallo\'!\");
            }
            case 9:
            {
      CreateVehicle(454,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Tropic\'!\");
            }
            case 10:
            {
               ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
   }
        }
         return 1;
    }
    if(dialogid == DIALOG_VEHICLE_BIKES && response)
    {
        GetPlayerPos(playerid,vX,vY,vZ);
        switch(listitem)
        {
            case 0:
   {
      CreateVehicle(509,vX,vY,vZ,0,-1,-1,0);
      SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Bike\'!\");
            }
            case 1:
            {
      CreateVehicle(481,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'BMX\'!\");
   }
            case 2:
            {
      CreateVehicle(510,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Mountain Bike\'!\");
            }
            case 3:
            {
      CreateVehicle(462,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Faggio\'!\");
            }
            case 4:
            {
      CreateVehicle(448,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Pizzaboy\'!\");
            }
            case 5:
            {
      CreateVehicle(581,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'BF-400\'!\");
            }
   case 6:
            {
      CreateVehicle(522,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'NRG-500\'!\");
            }
            case 7:
            {
      CreateVehicle(461,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'PCJ-600\'!\");
            }
            case 8:
            {
      CreateVehicle(523,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'HPV-1000\'!\");
            }
            case 9:
            {
      CreateVehicle(463,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Freeway\'!\");
            }
            case 10:
            {
      CreateVehicle(586,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Wayfarer\'!\");
            }
            case 11:
            {
      CreateVehicle(468,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Sanchez\'!\");
            }
            case 12:
            {
      CreateVehicle(471,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Quad\'!\");
            }
            case 13:
            {
      CreateVehicle(521,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'FCR-900\'!\");
            }
            case 14:
            {
               ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
   }
        }
         return 1;
    }
    if(dialogid == DIALOG_VEHICLE_PLANES && response)
    {
        GetPlayerPos(playerid,vX,vY,vZ);
        switch(listitem)
        {
            case 0:
   {
      CreateVehicle(592,vX,vY,vZ,0,-1,-1,0);
      SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Andromada\'!\");
            }
            case 1:
            {
      CreateVehicle(577,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'AT-400\'!\");
   }
            case 2:
            {
      CreateVehicle(511,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Beagle\'!\");
            }
            case 3:
            {
      CreateVehicle(512,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Cropduster\'!\");
            }
            case 4:
            {
      CreateVehicle(593,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Dodo\'!\");
            }
            case 5:
            {
      CreateVehicle(520,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Hydra\'!\");
            }
   case 6:
            {
      CreateVehicle(553,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Nevada\'!\");
            }
            case 7:
            {
      CreateVehicle(476,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Rustler\'!\");
            }
            case 8:
            {
      CreateVehicle(519,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Shamal\'!\");
            }
            case 9:
            {
      CreateVehicle(460,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Skimmer\'!\");
            }
            case 10:
            {
      CreateVehicle(513,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Stuntplane\'!\");
            }
            case 11:
            {
               ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
   }
}
         return 1;
    }
    if(dialogid == DIALOG_VEHICLE_HELICOPTERS && response)
    {
        GetPlayerPos(playerid,vX,vY,vZ);
        switch(listitem)
        {
            case 0:
   {
      CreateVehicle(548,vX,vY,vZ,0,-1,-1,0);
      SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Cargobob\'!\");
            }
            case 1:
            {
      CreateVehicle(425,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Hunter\'!\");
   }
            case 2:
            {
      CreateVehicle(417,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Leviathan\'!\");
            }
            case 3:
            {
      CreateVehicle(487,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Maverick\'!\");
            }
            case 4:
            {
      CreateVehicle(488,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'News Maverick\'!\");
            }
            case 5:
            {
      CreateVehicle(497,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Police Maverick\'!\");
            }
   case 6:
            {
      CreateVehicle(563,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Raindance\'!\");
            }
            case 7:
            {
      CreateVehicle(447,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Seasparrow\'!\");
            }
            case 8:
            {
      CreateVehicle(469,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Sparrow\'!\");
            }
        }
         return 1;
    }
    if(dialogid == DIALOG_VEHICLE_SPECIAL && response)
    {
        GetPlayerPos(playerid,vX,vY,vZ);
        switch(listitem)
        {
            case 0:
   {
      CreateVehicle(406,vX,vY,vZ,0,-1,-1,0);
      SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Dumper\'!\");
            }
            case 1:
            {
      CreateVehicle(456,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Rhino\'!\");
   }
            case 2:
            {
      CreateVehicle(409,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Stretch\'!\");
            }
            case 3:
            {
      CreateVehicle(434,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Hotknife\'!\");
            }
            case 4:
            {
      CreateVehicle(485,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Baggage\'!\");
            }
            case 5:
            {
      CreateVehicle(486,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Dozer\'!\");
            }
   case 6:
            {
      CreateVehicle(525,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Tow Truck\'!\");
            }
            case 7:
            {
      CreateVehicle(447,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Vortex\'!\");
            }
            case 8:
            {
      CreateVehicle(469,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Mower\'!\");
            }
            case 9:
            {
      CreateVehicle(571,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Kart\'!\");
            }
        }
         return 1;
    }
      return 1;
}
dcmd_v(playerid,params[])
{
#pragma unused params
ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
SendClientMessage(playerid,0xB4B4B4FF,\".::  Jármû spawn menü megynitása - a tab!\");
return 1;
}

9
Segítségkérés / Kód átírás
« Dátum: 2013. március 28. - 13:16:33 »
Valaki ezt a Jármû lehívót áttudja írni hogy ha kiszállok másik kocsit hívok elõ akkor eltûnjön amit elõsszõr hívtam elõ
 
/*
Simple Vehicle Spawner by Jochemd. Feel free to modify it to your wishes as long you don\'t claim it as your own.
Questions? Send me a PM via the SA:MP forum or contact me at www.blueshadows.co.cc --> forum.
Regards, Jochemd */
#include <a_samp>
#define DIALOG_VEHICLE 2
#define DIALOG_VEHICLE_FASTCARS 3
#define DIALOG_VEHICLE_BOATS 4
#define DIALOG_VEHICLE_BIKES 5
#define DIALOG_VEHICLE_PLANES 6
#define DIALOG_VEHICLE_HELICOPTERS 7
#define DIALOG_VEHICLE_SPECIAL 8
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, \"\")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
public OnFilterScriptInit()
{
print(\"\\n---------------------------\");
print(\" Vehicle spawner by HardStyle\");
print(\"---------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
    print(\"\\n---------------------------\");
print(\" Vehicle spawner by HardStyle\");
print(\"---------------------------\\n\");
return 1;
}
main()
{
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(v,1,cmdtext);
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new Float:vX, Float:vY, Float:vZ;
    if(dialogid == DIALOG_VEHICLE && response)
    {
        switch(listitem)
        {
            case 0:
            {
      ShowPlayerDialog(playerid,DIALOG_VEHICLE_FASTCARS,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Gyors jármûvek\",\"Alpha\\nBanshee\\nBlista Compact\\nBuffalo\\nBullet\\nCheetah\\nClub\\nEuros\\nHotring Racer\\nInfernus\\nJester\\nPhoenix\\nSabre\\nSuper-GT\\nTurismo\\nUranus\\nZR-350\",\"Ez kell!\",\"Vissza\");
            }
            case 1:
            {
                ShowPlayerDialog(playerid,DIALOG_VEHICLE_BOATS,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Hajók\",\"Coastguard\\nDinghy\\nJetmax\\nLaunch\\nMarquis\\nPredator\\nReefer\\nSpeedo\\nSquallo\\nTropic\",\"Ez kell!\",\"Vissza\");
            }
            case 2:
            {
                ShowPlayerDialog(playerid,DIALOG_VEHICLE_BIKES,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Motorok\",\"Bike\\nBMX\\nMountain Bike\\nFaggio\\nPizza-boy\\nBF-400\\nNRG-500\\nPCJ-600\\nHPV-1000\\nFreeway\\nWayfarer\\nSanchez\\nQuad\\nFCR-900\",\"Ez kell!\",\"Vissza\");
            }
   case 3:
   {
       ShowPlayerDialog(playerid,DIALOG_VEHICLE_PLANES,DIALOG_STYLE_LIST,\".:: Jármû spawn menü Repülõk\",\"Andromada\\nAT-400\\nBeagle\\nCropduster\\nDodo\\nHydra\\nNevada\\nRustler\\nShamal\\nSkimmer\\nStuntplane\",\"Ez kell!\",\"Vissza\");
            }
            case 4:
   {
       ShowPlayerDialog(playerid,DIALOG_VEHICLE_HELICOPTERS,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Helikopterek\",\"Cargobob\\nHunter\\nLeviathan\\nMaverick\\nNews Maverick\\nPolice Maverick\\nRaindance\\nSeasparrow\\nSparrow\",\"Ez kell!\",\"Visssza\");
   }
   case 5:
   {
       ShowPlayerDialog(playerid,DIALOG_VEHICLE_SPECIAL,DIALOG_STYLE_LIST,\".:: Jármû spawn menü - Különleges\",\"Dumper\\nRhino\\nStretch\\nHotknife\\nBaggage\\nDozer\\nTow Truck\\nVortex Hovercraft\\nMower\\nKart\",\"Ez kell!\",\"vissza\");
   }
}
return 1;
 }
    if(dialogid == DIALOG_VEHICLE_FASTCARS && response)
    {
        GetPlayerPos(playerid,vX,vY,vZ);
        switch(listitem)
        {
            case 0:
   {
      CreateVehicle(602,vX,vY,vZ,0,-1,-1,0);
      SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Alpha\'!\");
            }
            case 1:
            {
      CreateVehicle(429,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".:: Sikeres vásárlás! \'Banshee\'!\");
   }
            case 2:
            {
      CreateVehicle(496,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Blista Compact\'!\");
            }
            case 3:
            {
      CreateVehicle(402,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Buffalo\'!\");
            }
            case 4:
            {
      CreateVehicle(541,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Bullet\'!\");
            }
            case 5:
            {
      CreateVehicle(415,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Cheetah\'!\");
            }
   case 6:
            {
      CreateVehicle(589,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Club\'!\");
            }
            case 7:
            {
      CreateVehicle(587,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Euros\'!\");
            }
            case 8:
            {
      CreateVehicle(494,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Hotring Racer\'!\");
            }
            case 9:
            {
      CreateVehicle(411,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Infernus\'!\");
            }
            case 10:
            {
      CreateVehicle(559,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Jester\'!\");
            }
            case 11:
            {
      CreateVehicle(603,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Phoenix\'!\");
            }
            case 12:
            {
      CreateVehicle(475,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Sabre\'!\");
            }
            case 13:
            {
      CreateVehicle(506,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Super-GT\'!\");
            }
            case 14:
            {
      CreateVehicle(451,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Turismo\'!\");
            }
            case 15:
            {
      CreateVehicle(558,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Uranus\'!\");
            }
            case 16:
            {
      CreateVehicle(477,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'ZR-350\'!\");
            }
            case 17:
            {
               ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
   }
        }
         return 1;
    }
    if(dialogid == DIALOG_VEHICLE_BOATS && response)
    {
        GetPlayerPos(playerid,vX,vY,vZ);
        switch(listitem)
        {
            case 0:
   {
      CreateVehicle(472,vX,vY,vZ,0,-1,-1,0);
      SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Coastguard\'!\");
            }
            case 1:
            {
      CreateVehicle(473,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Dinghy\'!\");
   }
            case 2:
            {
      CreateVehicle(493,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Jetmax\'!\");
            }
            case 3:
            {
      CreateVehicle(595,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Launch\'!\");
            }
            case 4:
            {
      CreateVehicle(484,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Marquis\'!\");
            }
            case 5:
            {
      CreateVehicle(430,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Predator\'!\");
            }
   case 6:
            {
      CreateVehicle(453,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Reefer\'!\");
            }
            case 7:
            {
      CreateVehicle(452,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Speeder\'!\");
            }
            case 8:
            {
      CreateVehicle(446,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Squallo\'!\");
            }
            case 9:
            {
      CreateVehicle(454,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Tropic\'!\");
            }
            case 10:
            {
               ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
   }
        }
         return 1;
    }
    if(dialogid == DIALOG_VEHICLE_BIKES && response)
    {
        GetPlayerPos(playerid,vX,vY,vZ);
        switch(listitem)
        {
            case 0:
   {
      CreateVehicle(509,vX,vY,vZ,0,-1,-1,0);
      SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Bike\'!\");
            }
            case 1:
            {
      CreateVehicle(481,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'BMX\'!\");
   }
            case 2:
            {
      CreateVehicle(510,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Mountain Bike\'!\");
            }
            case 3:
            {
      CreateVehicle(462,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Faggio\'!\");
            }
            case 4:
            {
      CreateVehicle(448,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Pizzaboy\'!\");
            }
            case 5:
            {
      CreateVehicle(581,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'BF-400\'!\");
            }
   case 6:
            {
      CreateVehicle(522,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'NRG-500\'!\");
            }
            case 7:
            {
      CreateVehicle(461,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'PCJ-600\'!\");
            }
            case 8:
            {
      CreateVehicle(523,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'HPV-1000\'!\");
            }
            case 9:
            {
      CreateVehicle(463,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Freeway\'!\");
            }
            case 10:
            {
      CreateVehicle(586,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Wayfarer\'!\");
            }
            case 11:
            {
      CreateVehicle(468,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Sanchez\'!\");
            }
            case 12:
            {
      CreateVehicle(471,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Quad\'!\");
            }
            case 13:
            {
      CreateVehicle(521,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'FCR-900\'!\");
            }
            case 14:
            {
               ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
   }
        }
         return 1;
    }
    if(dialogid == DIALOG_VEHICLE_PLANES && response)
    {
        GetPlayerPos(playerid,vX,vY,vZ);
        switch(listitem)
        {
            case 0:
   {
      CreateVehicle(592,vX,vY,vZ,0,-1,-1,0);
      SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Andromada\'!\");
            }
            case 1:
            {
      CreateVehicle(577,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'AT-400\'!\");
   }
            case 2:
            {
      CreateVehicle(511,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Beagle\'!\");
            }
            case 3:
            {
      CreateVehicle(512,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Cropduster\'!\");
            }
            case 4:
            {
      CreateVehicle(593,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Dodo\'!\");
            }
            case 5:
            {
      CreateVehicle(520,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Hydra\'!\");
            }
   case 6:
            {
      CreateVehicle(553,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Nevada\'!\");
            }
            case 7:
            {
      CreateVehicle(476,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Rustler\'!\");
            }
            case 8:
            {
      CreateVehicle(519,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Shamal\'!\");
            }
            case 9:
            {
      CreateVehicle(460,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Skimmer\'!\");
            }
            case 10:
            {
      CreateVehicle(513,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Stuntplane\'!\");
            }
            case 11:
            {
               ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
   }
}
         return 1;
    }
    if(dialogid == DIALOG_VEHICLE_HELICOPTERS && response)
    {
        GetPlayerPos(playerid,vX,vY,vZ);
        switch(listitem)
        {
            case 0:
   {
      CreateVehicle(548,vX,vY,vZ,0,-1,-1,0);
      SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Cargobob\'!\");
            }
            case 1:
            {
      CreateVehicle(425,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Hunter\'!\");
   }
            case 2:
            {
      CreateVehicle(417,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Leviathan\'!\");
            }
            case 3:
            {
      CreateVehicle(487,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Maverick\'!\");
            }
            case 4:
            {
      CreateVehicle(488,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'News Maverick\'!\");
            }
            case 5:
            {
      CreateVehicle(497,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Police Maverick\'!\");
            }
   case 6:
            {
      CreateVehicle(563,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Raindance\'!\");
            }
            case 7:
            {
      CreateVehicle(447,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Seasparrow\'!\");
            }
            case 8:
            {
      CreateVehicle(469,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Sparrow\'!\");
            }
        }
         return 1;
    }
    if(dialogid == DIALOG_VEHICLE_SPECIAL && response)
    {
        GetPlayerPos(playerid,vX,vY,vZ);
        switch(listitem)
        {
            case 0:
   {
      CreateVehicle(406,vX,vY,vZ,0,-1,-1,0);
      SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Dumper\'!\");
            }
            case 1:
            {
      CreateVehicle(456,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Rhino\'!\");
   }
            case 2:
            {
      CreateVehicle(409,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Stretch\'!\");
            }
            case 3:
            {
      CreateVehicle(434,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Hotknife\'!\");
            }
            case 4:
            {
      CreateVehicle(485,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Baggage\'!\");
            }
            case 5:
            {
      CreateVehicle(486,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Dozer\'!\");
            }
   case 6:
            {
      CreateVehicle(525,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Tow Truck\'!\");
            }
            case 7:
            {
      CreateVehicle(447,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Vortex\'!\");
            }
            case 8:
            {
      CreateVehicle(469,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Mower\'!\");
            }
            case 9:
            {
      CreateVehicle(571,vX,vY,vZ,0,-1,-1,0);
                SendClientMessage(playerid,0xB4B4B4FF,\".::  Sikeres vásárlás! \'Kart\'!\");
            }
        }
         return 1;
    }
      return 1;
}
dcmd_v(playerid,params[])
{
#pragma unused params
ShowPlayerDialog(playerid,DIALOG_VEHICLE,DIALOG_STYLE_LIST,\".:: Jármû Spawn Menü - Index\",\"Gyors jármûvek\\nBoats\\nBikes\\nPlanes\\nHelicopters\\nSpecial\",\"Nyit\",\"Zár\");
SendClientMessage(playerid,0xB4B4B4FF,\".::  Jármû spawn menü megynitása - a tab!\");
return 1;
}

10
Segítségkérés / Mód
« Dátum: 2013. március 27. - 22:17:35 »
köszi:D

11
Segítségkérés / Mód
« Dátum: 2013. március 27. - 21:35:59 »
Egy módot átírtam cask a szövegét és nem tudom pwn meg amx filét csinálni csinálna nekem vki
 
#include <a_samp>
    new Text:Textdraw0;
    new Text:Textdraw1;
    #define SZIN_PIROS 0xfa0d0dAA
   #define SZIN_FEHER 0xfafafaAA
   #define SZIN_ZOLD 0x17d123AA
   #define SZIN_CIAN 0x05fad9A
   #define SZIN_LILA 0xd905faAA
   #define SZIN_ROZSASZIN 0xfa05d5AA
   #define SZIN_KEK 0x0000ffAA
   #define SZIN_FEKETE 0x000000AA
   #define SZIN_NARANCS 0xfa8100AA
   #define SZIN_CITROM 0xfafa00AA
   #define SZIN_PPFS 0xff6f00AA
    #if defined FILTERSCRIPT
    public OnFilterScriptInit()
    {
            print(\"\\n================================\");
            print(\"Alap Mod\");
            print(\"================================\\n\");
            return 1;
    }
    public OnFilterScriptExit()
    {
            return 1;
    }
    #else
    main()
    {
            print(\"\\n================================\");
            print(\"Alap Mod\");
            print(\"================================\\n\");
    }
    #endif
    public OnGameModeInit()
    {
        Textdraw0 = TextDrawCreate(413.000000, 421.000000, \"by:stampiii\");
            TextDrawBackgroundColor(Textdraw0, 255);
            TextDrawFont(Textdraw0, 1);
            TextDrawLetterSize(Textdraw0, 0.629998, 2.699999);
        TextDrawColor(Textdraw0, 3454143);
            TextDrawSetOutline(Textdraw0, 0);
            TextDrawSetProportional(Textdraw0, 1);
            TextDrawSetShadow(Textdraw0, 1);
            Textdraw1 = TextDrawCreate(7.000000, 427.000000, \"by:stampiii\");
            TextDrawBackgroundColor(Textdraw1, 255);
            TextDrawFont(Textdraw1, 1);
            TextDrawLetterSize(Textdraw1, 0.509999, 1.800000);
            TextDrawColor(Textdraw1, 9454143);
            TextDrawSetOutline(Textdraw1, 0);
            TextDrawSetProportional(Textdraw1, 1);
            TextDrawSetShadow(Textdraw1, 1);
            for(new i; i < MAX_PLAYERS; i ++)
            {
                    if(IsPlayerConnected(i))
                    {
                            TextDrawShowForPlayer(i, Textdraw0);
                            TextDrawShowForPlayer(i, Textdraw1);
                    }
            }
            SetGameModeText(\"Minigame/Race/Stunt/Dm\");
            AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(1, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(2, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(7, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(8, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(9, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(10, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(11, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(12, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(13, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(14, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(15, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(16, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(17, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(18, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(19, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(20, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(21, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(22, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(23, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(24, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(25, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(26, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(27, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(27, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(29, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(30, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(31, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(32, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(33, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(34, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(35, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(36, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(37, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(38, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(39, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(40, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(41, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(42, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(43, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(44, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(45, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(46, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(47, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(48, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(49, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(50, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(51, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(52, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(53, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(54, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(55, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(56, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(57, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(58, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(59, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(60, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(61, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(62, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(63, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(64, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(65, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(66, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(67, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(68, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(69, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(70, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(71, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(72, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(73, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(74, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(75, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(76, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            AddPlayerClass(299, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
        AddPlayerClass(105, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
            return 1;
    }
    public OnGameModeExit()
    {
        TextDrawHideForAll(Textdraw0);
            TextDrawDestroy(Textdraw0);
            TextDrawHideForAll(Textdraw1);
            TextDrawDestroy(Textdraw1);
            return 1;
    }
    public OnPlayerRequestClass(playerid, classid)
    {
            SetPlayerPos(playerid, 1954.5426,1342.9369,15.3746);
            SetPlayerCameraPos(playerid, 1959.6799,1343.1836,15.3746);
            SetPlayerCameraLookAt(playerid, 1951.7332,1342.8486,15.3746);
            return 1;
    }
 
    public OnPlayerConnect(playerid)
    {
        SendClientMessage(playerid, 0xfafa00AA, \"Üdv a Szerverren!\");
    SendClientMessage(playerid, 0xfafa00AA, \"Nem tudsz valamit?Szólj egy adminnak! :) \");
    SendClientMessage(playerid, 0xfafa00AA, \"Szerver tulajdonosok: S.stampiii ; Csokii ; B.ende ; T.Gyuszmoo \");
            return 1;
    }
    public OnPlayerDisconnect(playerid, reason)
    {
            return 1;
    }
 
    public OnPlayerSpawn(playerid)
    {
            TextDrawShowForPlayer(playerid, Textdraw0);
            TextDrawShowForPlayer(playerid, Textdraw1);
            return 1;
    }
    public OnPlayerDeath(playerid, killerid, reason)
    {
    new playercash;
    if(killerid == INVALID_PLAYER_ID) {
            SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
            ResetPlayerMoney(playerid);
            } else {
                    SendDeathMessage(killerid,playerid,reason);
                            SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
                            playercash = GetPlayerMoney(playerid);
                            if (playercash > 0)  {
                                    GivePlayerMoney(playerid, -100);
                            }
                            else
                            {
                            }
            }
    return 1;
    }
    public OnVehicleSpawn(vehicleid)
    {
            return 1;
    }
    public OnVehicleDeath(vehicleid, killerid)
    {
            return 1;
    }
    public OnPlayerText(playerid, text[])
    {
            return 1;
    }
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    //help=================================================
        if (strcmp(cmdtext, \"/help\", true)==0)
            {
            ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_MSGBOX, \"Parancsaink:\", \"---\", \"Igen\", \"Mégse\");
    //      PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
            return 1;
            }
    //Info=================================================
            if (strcmp(cmdtext, \"/info\", true)==0)
            {
            ShowPlayerDialog(playerid, 10410, DIALOG_STYLE_MSGBOX, \"Informácíó:\", \"---\", \"Igen\", \"Vissza\");
            return 1;
            }
    //Parancsok============================================
        if(strcmp(cmdtext, \"/parachute\", true) == 0)
        {
        GivePlayerWeapon(playerid, 46, 1);
        SendClientMessage(playerid, 0x00BFFFFF, \"Ejtõernyõ Lekérve\");
        return 1;
            }
            if (strcmp(cmdtext, \"/flip\", true)==0)
            {
            new VehicleID, Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
            VehicleID = GetPlayerVehicleID(playerid);
            SetVehiclePos(VehicleID, X, Y, Z);
            SetVehicleZAngle(VehicleID, 0);
            SendClientMessage(playerid, 0x00BFFFFF, \"Jármû felálítva\");
        return 1;
            }
        if (strcmp(cmdtext, \"/health\", true)==0)
            {
            SetPlayerHealth(playerid,100);
            SendClientMessage(playerid, 0x00BFFFFF, \"Életed feltõltve!\");
            return 1;
            }
            if(strcmp(\"/kill\", cmdtext, true, 10) == 0)  {
        SetPlayerHealth(playerid, 000.0);
        return 1;
            }
            if (strcmp(\"/inf\", cmdtext, true, 10) == 0) if (strcmp(\"/inf\", cmdtext, true, 10) == 0)
        {
        new vehicleid;
        new Float:X,Float:Y,Float:Z,Float:Angle;
        GetPlayerPos(playerid,X,Y,Z);
        GetPlayerFacingAngle(playerid,Angle);
        GetPlayerVehicleID(playerid);
        vehicleid = CreateVehicle(411,X,Y,Z,Angle,-1,-1,600);
        vehicleid = PutPlayerInVehicle(playerid, vehicleid, 0);
        return 1;
    }
    //Teleportok============================================================
            if(strcmp(cmdtext, \"/stunt\", true) == 0) {
     if(IsPlayerInAnyVehicle(playerid)) {
     new Float:X;
     new Float:Y;
     new Float:Z;
     new VehicleID;
     GetPlayerPos(playerid, X, Y, Z);
     VehicleID = GetPlayerVehicleID(playerid);
     SetVehiclePos(VehicleID,402.9187,2534.1477,16.5455);
     } else {
     new Float:X;
     new Float:Y;
     new Float:Z;
     GetPlayerPos(playerid, X, Y, Z);
     SetPlayerPos(playerid,402.9187,2534.1477,16.5455);
     //GivePlayerWeapon(playerid, 46, 200);
     }
     return 1;
     }
            if(strcmp(cmdtext, \"/race\", true) == 0) {
     if(IsPlayerInAnyVehicle(playerid)) {
     new Float:X;
     new Float:Y;
     new Float:Z;
     new VehicleID;
     GetPlayerPos(playerid, X, Y, Z);
     VehicleID = GetPlayerVehicleID(playerid);
     SetVehiclePos(VehicleID,-2944.8975,436.2000,2.9612);
     } else {
     new Float:X;
     new Float:Y;
     new Float:Z;
     GetPlayerPos(playerid, X, Y, Z);
     SetPlayerPos(playerid,-2944.8975,436.2000,2.9612);
     }
     return 1;
     }
            if(strcmp(cmdtext, \"/jizzy\", true) == 0) {
     if(IsPlayerInAnyVehicle(playerid)) {
     new Float:X;
     new Float:Y;
     new Float:Z;
     new VehicleID;
     GetPlayerPos(playerid, X, Y, Z);
     VehicleID = GetPlayerVehicleID(playerid);
     SetVehiclePos(VehicleID,-2597.4902,1388.0292,7.1798);
     } else {
     new Float:X;
     new Float:Y;
     new Float:Z;
     GetPlayerPos(playerid, X, Y, Z);
     SetPlayerPos(playerid,-2597.4902,1388.0292,7.1798);
     }
     return 1;
     }
            if(strcmp(cmdtext, \"/ls\", true) == 0) {
     if(IsPlayerInAnyVehicle(playerid)) {
     new Float:X;
     new Float:Y;
     new Float:Z;
     new VehicleID;
     GetPlayerPos(playerid, X, Y, Z);
     VehicleID = GetPlayerVehicleID(playerid);
     SetVehiclePos(VehicleID,2782.5522,-2020.2609,13.5620);
     } else {
     new Float:X;
     new Float:Y;
     new Float:Z;
     GetPlayerPos(playerid, X, Y, Z);
     SetPlayerPos(playerid,2782.5522,-2020.2609,13.5620);
     }
     return 1;
     }
            if(strcmp(cmdtext, \"/lv\", true) == 0) {
     if(IsPlayerInAnyVehicle(playerid)) {
     new Float:X;
     new Float:Y;
     new Float:Z;
     new VehicleID;
     GetPlayerPos(playerid, X, Y, Z);
     VehicleID = GetPlayerVehicleID(playerid);
     SetVehiclePos(VehicleID,2320.2126,1390.6610,42.8853);
     } else {
     new Float:X;
     new Float:Y;
     new Float:Z;
     GetPlayerPos(playerid, X, Y, Z);
     SetPlayerPos(playerid,2320.2126,1390.6610,42.8853);
     }
     return 1;
     }
            if(strcmp(cmdtext, \"/sf\", true) == 0) {
     if(IsPlayerInAnyVehicle(playerid)) {
     new Float:X;
     new Float:Y;
     new Float:Z;
     new VehicleID;
     GetPlayerPos(playerid, X, Y, Z);
     VehicleID = GetPlayerVehicleID(playerid);
     SetVehiclePos(VehicleID,-1918.1754,292.3517,41.0469);
     } else {
     new Float:X;
     new Float:Y;
     new Float:Z;
     GetPlayerPos(playerid, X, Y, Z);
     SetPlayerPos(playerid,-1918.1754,292.3517,41.0469);
     }
     return 1;
     }
            return SendClientMessage(playerid,0x74E80099,\"Ez a parancs nem létezik!\");
    }
    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
            return 1;
    }
    public OnPlayerExitVehicle(playerid, vehicleid)
    {
            return 1;
    }
    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
            return 1;
    }
    public OnPlayerEnterCheckpoint(playerid)
    {
            return 1;
    }
    public OnPlayerLeaveCheckpoint(playerid)
    {
            return 1;
    }
    public OnPlayerEnterRaceCheckpoint(playerid)
    {
            return 1;
    }
    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
            return 1;
    }
    public OnRconCommand(cmd[])
    {
            return 1;
    }
    public OnPlayerRequestSpawn(playerid)
    {
            return 1;
    }
    public OnObjectMoved(objectid)
    {
            return 1;
    }
    public OnPlayerObjectMoved(playerid, objectid)
    {
            return 1;
    }
    public OnPlayerPickUpPickup(playerid, pickupid)
    {
            return 1;
    }
    public OnVehicleMod(playerid, vehicleid, componentid)
    {
            return 1;
    }
    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
            return 1;
    }
    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
            return 1;
    }
    public OnPlayerSelectedMenuRow(playerid, row)
    {
            return 1;
    }
    public OnPlayerExitedMenu(playerid)
    {
            return 1;
    }
    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
            return 1;
    }
    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
            return 1;
    }
    public OnRconLoginAttempt(ip[], password[], success)
    {
            return 1;
    }
    public OnPlayerUpdate(playerid)
    {
            return 1;
    }
    public OnPlayerStreamIn(playerid, forplayerid)
    {
            return 1;
    }
    public OnPlayerStreamOut(playerid, forplayerid)
    {
            return 1;
    }
    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
            return 1;
    }
    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
            return 1;
    }
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
            return 1;
    }
    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
            return 1;
    }

12
Segítségkérés / Mód
« Dátum: 2013. március 27. - 20:36:24 »
Írtam privátba! :D Válaszolsz?

13
Segítségkérés / Mód
« Dátum: 2013. március 27. - 20:25:57 »
Kösziii:D

14
Segítségkérés / Mód
« Dátum: 2013. március 27. - 20:02:16 »
http://sampforum.hu/index.php?topic=38282
Ezt a játékmódot valaki nem tudja úgy megcsinálni, hogy ha valaki megöl valakit akkor ne az összes pénzét vegye el hanem csak 100$ ??

15
Szkript kérések / Munka & Haz
« Dátum: 2013. március 27. - 13:38:01 »
Köszii:D

Oldalak: [1] 2
SimplePortal 2.3.7 © 2008-2024, SimplePortal