Ü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 - Josh

Oldalak: [1] 2
1
Segítségkérés / Tanulási tanmenet, segítség.
« Dátum: 2013. július 29. - 18:07:36 »
Már fogjuk rá kész van. Csak egy dolog viselkedik furcsán, elsõnek megjelenítek egy %d / 100 textdrawot, ha az xp nagyobb mint 100, ezt a textdrawot kikapcsolom, és megjelenítem a másikat a %d / 200-at... Viszont, azt már nem oda rakja ahova én megadtam a koordinátákat xD de mind1, haladok az a lényeg.

2
Segítségkérés / Tanulási tanmenet, segítség.
« Dátum: 2013. július 29. - 15:57:49 »
Köszönöm szépen :) Minden tanácsot megfogadok amit itt kapok. Most elkezdtem gondolkodni egy XP / szint rendszeren, eddig idáig jutottam:



\"width=500http://kepfeltoltes.hu/130729/sa-mp-008_www.kepfeltoltes.hu_.png[/img]
 
Az elsõ szám már fájlból van kiolvasva, szerintem estére már fogjuk rá egy szint / xp rendszer is kész lesz :D Drukkoljatok :)

3
Segítségkérés / Tanulási tanmenet, segítség.
« Dátum: 2013. július 29. - 14:02:57 »
Nagyon szépen köszönöm a segítséget, meg van a mai elfoglaltság :)

4
Segítségkérés / Tanulási tanmenet, segítség.
« Dátum: 2013. július 29. - 13:45:25 »
Igen, ezen gondolkodtam, viszont a random CP-kel stb.. még nem igazán vagyok tisztába, de utánanézek, és hát... Hátha :D

5
Segítségkérés / Tanulási tanmenet, segítség.
« Dátum: 2013. július 29. - 13:11:55 »
Sziasztok. 1 napja kb elkezdtem tanulni scriptelgetni, amiben a sampforum igencsak nagy segítséget nyújtott. Egy nagyon alap modot sikerült összeraknom, amibe kb ezek vannak:
,,Egyedi\'\' kijelzõk. (pénz, pont, ölések, halálok, élet).
Kép.
 

[hs width=300 height=300]
http://kepfeltoltes.hu/130729/sa-mp-001_www.kepfeltoltes.hu_.png[/hs]
 
Ez egy timer-el frissül másodpercenként.
Teleportoknál progressbáros object betöltés.
dini-s regisztrációs rendszer.
Egy DM, amit sikerült benne megoldani, hogy ha DM zónában halsz meg, oda spawnolsz vissza, és parancsokat se lehet használni.
Nagyjából szerintem ennyi. Biztos nagyon buta megoldásokat használtam, de jelenleg arra törekedtem, hogy mûködjenek a dolgot, késõbb talán arra is ráfekszek, hogy minnél jobb legyen a forráskód.
Maga a mod:
 

#include <a_samp>
#include <OPSP>
#include <Dini>
#include <dutils>
#include <dudb>
#include <zcmd>
#include <sscanf2>
#include <core>
#include <float>
#include <fixchars>
#include <streamer>
#include <progress>
#pragma unused ret_memcpy
#define COLOR_WHITE  0xFFFFFFAA
#define COLOR_YELLOW 0xDABB3EAA
#define COLOR_GREEN 0x21DD00FF
#define COLOR_RED 0xE60000FF
#define ADMIN_RED 0xFB0000FF
#define COLOR_ORANGE 0xF97804FF
#define COLOR_LIGHTRED 0xFF8080FF
#define COLOR_LIGHTBLUE 0x00C2ECFF
#define COLOR_PURPLE 0xB360FDFF
#define COLOR_PLAYER_COLOR 0xFFFFFFFF
#define COLOR_BLUE 0x1229FAFF
#define COLOR_LIGHTGREEN 0x38FF06FF
#define COLOR_DARKPINK 0xE100E1FF
#define COLOR_DARKGREEN 0x008040FF
#define COLOR_ANNOUNCEMENT 0x6AF7E1FF
#define COLOR_SYSTEM 0xEFEFF7AA
#define COLOR_GRAY 0xCECECEFF
#define COLOR_HITCOLOR 0xFF0000FF
#define COL_EASY           \"{FFF1AF}\"
#define COL_WHITE          \"{FFFFFF}\"
#define COL_BLACK          \"{0E0101}\"
#define COL_GREY           \"{C3C3C3}\"
#define COL_GREEN          \"{6EF83C}\"
#define COL_RED            \"{F81414}\"
#define COL_YELLOW         \"{F3FF02}\"
#define COL_ORANGE         \"{FFAF00}\"
#define COL_LIME           \"{B7FF00}\"
#define COL_CYAN           \"{00FFEE}\"
#define COL_LIGHTBLUE      \"{00C0FF}\"
#define COL_BLUE           \"{0049FF}\"
#define COL_MAGENTA        \"{F300FF}\"
#define COL_VIOLET         \"{B700FF}\"
#define COL_PINK           \"{FF00EA}\"
#define COL_MARONE         \"{A90202}\"
#define COL_CMD            \"{B8FF02}\"
#define COL_PARAM          \"{3FCD02}\"
#define COL_SERVER         \"{AFE7FF}\"
#define COL_VALUE          \"{A3E4FF}\"
#define COL_RULE           \"{F9E8B7}\"
#define COL_RULE2          \"{FBDF89}\"
#define COL_RWHITE         \"{FFFFFF}\"
#define COL_LGREEN         \"{C9FFAB}\"
#define COL_LRED           \"{FFA1A1}\"
#define COL_LRED2          \"{C77D87}\"
//Textdrawok
new Text:Textdraw2; //Pénz
new Text:Textdraw3; //Ponz
new Text:Textdraw4; //Halál
new Text:Textdraw5; //Ölés
new Text:Textdraw6; //Élet
//Progressbarok
new Bar:Object;
forward Objectoltodik1(playerid);
forward Objectoltodik2(playerid);
forward Objectoltodik3(playerid);
//Reakció teszt
new feladat,stopped,bool:feladv;
forward feladvany(playerid);
forward fvege();
//DM
new bool:DM[MAX_PLAYERS];
//Reg változók
new IsLogged[MAX_PLAYERS];
new file[128];
new halalok[MAX_PLAYERS];
new olesek[MAX_PLAYERS];
new admin[MAX_PLAYERS];
main()
{
print(\"\\n----------------------------------\");
print(\" TDM Mode By Josh\");
print(\"----------------------------------\\n\");
}
public OnGameModeInit()
{
    feladv = false;   SetTimer(\"feladvany\",150000,1);
    //SetTimer(\"Frissites\", 1000, true);
SetTimer(\"Frissit\", 1000, true);
SetGameModeText(\"Josh Team-Deathmatch\");
AddPlayerClass(23, 384.5420,2436.4290,16.5263, 269.1425, 0, 0, 0, 0, 0, 0);
//Progressbar
Object = CreateProgressBar(250.00, 385.00, 145.50, 8.50, -16776961, 100.0);
//3D Textek
Create3DTextLabel(\">>> {F81414}/aa <<<\", 0x00C2ECFF, 384.5420,2436.4290,16.5263, 30.0, 0, 0);
return 1;
}
public OnGameModeExit()
{
TextDrawDestroy(Textdraw2);
    TextDrawDestroy(Textdraw3);
    TextDrawDestroy(Textdraw4);
    TextDrawDestroy(Textdraw5);
    TextDrawDestroy(Textdraw6);
    DestroyProgressBar(Object);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1380.6447,-1753.0427,13.5469);
    SetPlayerFacingAngle(playerid, 269.6420);
    SetPlayerCameraPos(playerid, 1387.2906,-1752.8887,13.3828);
    SetPlayerCameraLookAt(playerid, 1380.6447,-1753.0427,13.5469);
return 1;
}
public OnPlayerConnect(playerid)
{
DM[playerid] = false;
new name[MAX_PLAYERS];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
new string[128];
format(string, sizeof(string), \"{21DD00}%s Csatlakozott a szerverre!\", name);
SendClientMessageToAll(COLOR_RED, string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
DM[playerid] = false;
    dini_IntSet(file, \"Pénz\", GetPlayerMoney(playerid));
    dini_IntSet(file, \"Pont\", GetPlayerScore(playerid));
    dini_IntSet(file, \"Halálok\", halalok[playerid]);
    dini_IntSet(file, \"Ölések\", olesek[playerid]);
    dini_IntSet(file, \"Admin\", admin[playerid]);
IsLogged[playerid] = 0;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(DM[playerid] == true)
{
    SetPlayerPos(playerid, 622,1664,7);
}
    if(IsLogged[playerid] == 0)
{
    SendClientMessage(playerid, COLOR_RED, \"[HIBA] Elõször jelentkezz be!\");
ForceClassSelection(playerid);
TogglePlayerSpectating(playerid, true);
       TogglePlayerSpectating(playerid, false);
}
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
    halalok[playerid] ++;
olesek[killerid] ++;
SetPlayerScore(killerid,GetPlayerScore(killerid) +1);
GivePlayerMoney(killerid,5000);
dini_IntSet(file, \"Pénz\", GetPlayerMoney(playerid));
GameTextForPlayer(killerid,\"~r~+~y~$~w~5000~n~~b~+~r~1~p~XP\",3000,4);
    SendDeathMessage(killerid, playerid, reason);
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/mycommand\", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
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)
{
    DestroyPickup(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;
}
public feladvany(playerid)
{
if(feladv == false)   {
   KillTimer(stopped);
        feladv = true;new kocka[4],switching;
        kocka[0] = random(150);
        kocka[1] = random(150);
        kocka[2] = random(150);
switching = random(3);
if(switching == 0)   {
                        feladat = kocka[0] + kocka[1] + kocka[2];
                        new string[128];
                        format(string,128,\"« Feladvány: %d + %d + %d = ??? Jutalom: $1000 +5 Pont! Válasz adás: /va [válasz] »\",kocka[0],kocka[1],kocka[2]);
                        SendClientMessageToAll(COLOR_YELLOW,\"Rossz Válasz Esetén: -5 Pont\");SendClientMessageToAll(COLOR_YELLOW,string);
        }
        else if(switching == 1)   {
                        feladat = kocka[0] + kocka[1] - kocka[2];
                      new string[128];
                        format(string,128,\"« Feladvány: %d + %d - %d = ??? Jutalom: $1000 +5 Pont! Válasz adás: /va [válasz] »\",kocka[0],kocka[1],kocka[2]);
                       SendClientMessageToAll(COLOR_YELLOW,string);SendClientMessageToAll(COLOR_YELLOW,\"Rossz Válasz Esetén: -5 Pont\");
       }
        else if(switching == 2)   {
                        feladat = kocka[0] - kocka[1] - kocka[2];
                      new string[128];
                        format(string,128,\"« Feladvány: %d - %d - %d = ??? Jutalom: $1000 +5 Pont! Válasz adás: /va [válasz] »\",kocka[0],kocka[1],kocka[2]);
                       SendClientMessageToAll(COLOR_YELLOW,string);SendClientMessageToAll(COLOR_YELLOW,\"Rossz Válasz Esetén: -5 Pont\");
        }
        stopped = SetTimer(\"fvege\",60000,0);
        }
return 1;
}
public fvege()
{
        feladv = false;
        new string[128];
        format(string,128,\"« Feladat: A Válasz: %d! »\",feladat);
        SendClientMessageToAll(COLOR_YELLOW,string);
        return 1;
}
 
CMD:register(playerid, params[])
{
new PlayerName[MAX_PLAYER_NAME];
new password[64];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
if(IsLogged[playerid] == 0)
{
    if(sscanf(params, \"s[64]\", password)) return SendClientMessage(playerid, COLOR_YELLOW, \"Használat: /register [jelszó]\");
else
{
    format(file, sizeof(file), \"%s.ini\", PlayerName);
    if(!dini_Exists(file))
    {
        dini_Create(file);
        dini_IntSet(file, \"Jelszó\", udb_hash(password));
        dini_IntSet(file, \"Pénz\", GetPlayerMoney(playerid));
        dini_IntSet(file, \"Pont\", GetPlayerScore(playerid));
        dini_IntSet(file, \"Halálok\", halalok[playerid]);
        dini_IntSet(file, \"Ölések\", olesek[playerid]);
        dini_IntSet(file, \"Admin\", admin[playerid]);
        SendClientMessage(playerid, COLOR_GREEN, \"Sikeresen regisztráltál, /login a belépéshez!\");
   }
   else
   {
       SendClientMessage(playerid, COLOR_RED, \"[HIBA] Ezzel a névvel már regisztráltak!\");
   }
}
}
else
{
    SendClientMessage(playerid, COLOR_RED, \"[HIBA] Te már regisztrálva vagy!\");
}
return 1;
}
CMD:login(playerid, params[])
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
if(IsLogged[playerid] == 0)
{
    new password[64];
    if(sscanf(params, \"s[64]\", password)) return SendClientMessage(playerid, COLOR_YELLOW, \"Használat: /login [jelszó]\");
    else
    {
        format(file, sizeof(file), \"%s.ini\", PlayerName);
        if(dini_Exists(file))
        {
            if(strval(dini_Get(file, \"Jelszó\")) == udb_hash(password))
            {
                GivePlayerMoney(playerid, dini_Int(file, \"Pénz\"));
                SetPlayerScore(playerid, dini_Int(file, \"Pont\"));
                halalok[playerid] = dini_Int(file, \"Halálok\");
                olesek[playerid] = dini_Int(file, \"Ölések\");
                admin[playerid] = dini_Int(file, \"Admin\");
                IsLogged[playerid] = 1;
                SendClientMessage(playerid, COLOR_GREEN, \"Sikeresen bejelentkeztél!\");
                new nev[64];
         new formazd[128];
                new penz;
                new pont;
         new oles;
         new halal;
         new Float:elet;
                GetPlayerName(playerid, nev, sizeof(nev));
                format(nev, sizeof(nev), \"%s.ini\", nev);
                penz = dini_Int(nev, \"Pénz\");
                pont = dini_Int(nev, \"Pont\");
                oles = dini_Int(nev, \"Ölések\");
                halal = dini_Int(nev, \"Halálok\");
                GetPlayerHealth(playerid, elet);
 
         format(formazd, sizeof(formazd), \"PÉNZ:  ~b~%d\", penz);
         Textdraw2 = TextDrawCreate(495.000000, 80.500007, formazd);
         TextDrawLetterSize(Textdraw2, 0.234999, 1.541666);
         TextDrawTextSize(Textdraw2, 647.500000, 207.083435);
         TextDrawAlignment(Textdraw2, 1);
         TextDrawColor(Textdraw2, -1523963137);
         TextDrawUseBox(Textdraw2, true);
         TextDrawBoxColor(Textdraw2, 255);
         TextDrawSetShadow(Textdraw2, 0);
         TextDrawSetOutline(Textdraw2, 0);
         TextDrawBackgroundColor(Textdraw2, 16777215);
         TextDrawFont(Textdraw2, 2);
         TextDrawSetProportional(Textdraw2, 1);
         format(formazd, sizeof(formazd), \"PONT:  ~b~%d\", pont);
         Textdraw3 = TextDrawCreate(495.000000, 95.500007, formazd);
         TextDrawLetterSize(Textdraw3, 0.234999, 1.541666);
         TextDrawTextSize(Textdraw3, 647.500000, 207.083435);
         TextDrawAlignment(Textdraw3, 1);
         TextDrawColor(Textdraw3, -1523963137);
         TextDrawUseBox(Textdraw3, true);
         TextDrawBoxColor(Textdraw3, 255);
         TextDrawSetShadow(Textdraw3, 0);
         TextDrawSetOutline(Textdraw3, 0);
         TextDrawBackgroundColor(Textdraw3, 16777215);
         TextDrawFont(Textdraw3, 2);
         TextDrawSetProportional(Textdraw3, 1);
         format(formazd, sizeof(formazd), \"ÖLÉSEK:  ~b~%d\", oles);
         Textdraw4 = TextDrawCreate(495.000000, 110.500007, formazd);
         TextDrawLetterSize(Textdraw4, 0.234999, 1.541666);
         TextDrawTextSize(Textdraw4, 647.500000, 207.083435);
         TextDrawAlignment(Textdraw4, 1);
         TextDrawColor(Textdraw4, -1523963137);
         TextDrawUseBox(Textdraw4, true);
         TextDrawBoxColor(Textdraw4, 255);
         TextDrawSetShadow(Textdraw4, 0);
         TextDrawSetOutline(Textdraw4, 0);
         TextDrawBackgroundColor(Textdraw4, 16777215);
         TextDrawFont(Textdraw4, 2);
         TextDrawSetProportional(Textdraw4, 1);
         format(formazd, sizeof(formazd), \"HALÁLOK:  ~b~%d\", halal);
         Textdraw5 = TextDrawCreate(495.000000, 125.500007, formazd);
         TextDrawLetterSize(Textdraw5, 0.234999, 1.541666);
         TextDrawTextSize(Textdraw5, 647.500000, 207.083435);
         TextDrawAlignment(Textdraw5, 1);
         TextDrawColor(Textdraw5, -1523963137);
         TextDrawUseBox(Textdraw5, true);
         TextDrawBoxColor(Textdraw5, 255);
         TextDrawSetShadow(Textdraw5, 0);
         TextDrawSetOutline(Textdraw5, 0);
         TextDrawBackgroundColor(Textdraw5, 16777215);
         TextDrawFont(Textdraw5, 2);
         TextDrawSetProportional(Textdraw5, 1);
         format(formazd, sizeof(formazd), \"ÉLET:  ~b~%.1f\", elet);
         Textdraw6 = TextDrawCreate(495.000000, 140.500007, formazd);
         TextDrawLetterSize(Textdraw6, 0.234999, 1.541666);
         TextDrawTextSize(Textdraw6, 647.500000, 207.083435);
         TextDrawAlignment(Textdraw6, 1);
         TextDrawColor(Textdraw6, -1523963137);
         TextDrawUseBox(Textdraw6, true);
         TextDrawBoxColor(Textdraw6, 255);
         TextDrawSetShadow(Textdraw6, 0);
         TextDrawSetOutline(Textdraw6, 0);
         TextDrawBackgroundColor(Textdraw6, 16777215);
         TextDrawFont(Textdraw6, 2);
         TextDrawSetProportional(Textdraw6, 1);
      }
      else
      {
          SendClientMessage(playerid, COLOR_RED, \"[HIBA] Rossz jelszót adtál meg!\");
      }
   }
   else
   {
       SendClientMessage(playerid, COLOR_RED, \"[HIBA] Elõször regisztrálj! /register [jelszó]\");
   }
}
}
else
{
    SendClientMessage(playerid, COLOR_RED, \"[HIBA] Te már be vagy jelentkezve!\");
}
return 1;
}
//Admin parancsok
CMD:kick(playerid, params[])
{
if(admin[playerid] == 0)
{
    SendClientMessage(playerid, COLOR_RED, \"[HIBA] Nem vagy admin!\");
}
else
{
    SendClientMessage(playerid, COLOR_GREEN, \"[sEELIFE] Admin vagy!\");
}
return 1;
}
//DM parancsok
CMD:dm(playerid, params[])
{
    new name[MAX_PLAYER_NAME+1], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), \"{0000FF}%s {FFFF00}Belépett a DM zónába!{FF0000}(/dm)\", name);
if(DM[playerid] == true) return SendClientMessage(playerid, COLOR_RED, \"[HIBA] DM zónában vagy! Elõször /exitdm\");
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 32, 1000);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, 622,1664,7);
SendClientMessage(playerid, COLOR_GREEN, \"[sEELIFE] Beléptél a DM zónába!\");
SendClientMessageToAll(0xFFFF00AA, string);
DM[playerid] = true;
return 1;
}
CMD:exitdm(playerid, params[])
{
if(DM[playerid] == false) return SendClientMessage(playerid, COLOR_RED, \"[HIBA] Nem vagy DM zónában! Belépéshez /dm\");
ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, 384.5420,2436.4290,16.5263);
SendClientMessage(playerid, COLOR_GREEN, \"[sEELIFE] Sikeresen kiléptél a DM zónából!\");
DM[playerid] = false;
return 1;
}
//Teleportok
CMD:aa(playerid, params[])
{
if(DM[playerid] == true) return SendClientMessage(playerid, COLOR_RED, \"[HIBA] DM zónában nem használhatsz parancsokat!\");
new name[MAX_PLAYER_NAME+1], string[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), \"{0000FF}%s {FFFF00}Elteleportált a Sivatagi reptérre{FF0000}(/aa)\",name);
    SendClientMessageToAll(0xFFFF00AA, string);
    if(IsPlayerInAnyVehicle(playerid))
    {
        GameTextForPlayer(playerid, \"~r~Objectek betöltése...\", 1000, 1);
        SetTimer(\"Objectoltodik1\", 1000, 0);
        SetTimer(\"Objectoltodik2\", 2000, 0);
        SetTimer(\"Objectoltodik3\", 3000, 0);
        TogglePlayerControllable(playerid, 0);
        ShowProgressBarForPlayer(playerid, Object);
        SetVehiclePos(GetPlayerVehicleID(playerid),405.6033,2451.7056,16.5461);
    } else {
        GameTextForPlayer(playerid, \"~r~Objectek betöltése...\", 1000, 1);
        SetTimer(\"Objectoltodik1\", 1000, 0);
        SetTimer(\"Objectoltodik2\", 2000, 0);
        SetTimer(\"Objectoltodik3\", 3000, 0);
        TogglePlayerControllable(playerid, 0);
        ShowProgressBarForPlayer(playerid, Object);
        SetPlayerPos(playerid,384.5420,2436.4290,16.5263);
    }
    return 1;
}
CMD:teles(playerid, params[])
{
    if(DM[playerid] == true) return SendClientMessage(playerid, COLOR_RED, \"[HIBA] DM zónában nem használhatsz parancsokat!\");
SendClientMessage(playerid, COLOR_YELLOW, \"==============[TELEPORTOK]==============\");
SendClientMessage(playerid, COLOR_GREEN, \" /aa | /lv | /ls | /sf | /lvair | /sfair\");
return 1;
}
CMD:felad(playerid,params[])
{
#pragma unused params
        if(IsPlayerAdmin(playerid))
        {
                feladv = false;
                feladvany(playerid);
        }
        else
        {
            SendClientMessage(playerid,COLOR_YELLOW,\"« Sajnálom, de nem vagy RCON Adminisztrátor! »\");
            return 0;
        }
        return 1;
}
CMD:va(playerid,params[])
{
        if(feladv == true)
        {
            if(!strlen(params)) return SendClientMessage(playerid,COLOR_YELLOW,\"Használat: /va [A Te válaszod]\");
            new para;
            para = strval(params);
            if(para == feladat)
            {
                feladv = false;
                new pName[24],
         string[128];
              KillTimer(stopped);
                GetPlayerName(playerid,pName,24);
                format(string,128,\"« Feladat: %s nyert! A Válasz: %d! »\",pName,feladat);
                SendClientMessageToAll(COLOR_YELLOW,string);
                SetPlayerScore(playerid, GetPlayerScore(playerid) + 5 );
                GivePlayerMoney(playerid,1000);
                }   else   {
      SendClientMessage(playerid,COLOR_YELLOW,\"« Helytelen Válasz »\");
      SetPlayerScore(playerid, GetPlayerScore(playerid) - 5 );
                }
           }
        else
        {
            return SendClientMessage(playerid,COLOR_YELLOW,\"« A Feladatok Opció Nem aktív! »\");
        }
        return 1;
}
/*forward Frissites();
public Frissites()
{
    new playerid = -1;
    for(;++playerid < MAX_PLAYERS;)
    {
        if(IsPlayerConnected(playerid) && IsLogged[playerid])
        {
            new formazd[64];
            GetPlayerName(playerid, formazd, MAX_PLAYER_NAME);
            format(formazd, sizeof(formazd), \"%s.ini\", formazd);
            dini_IntSet(formazd, \"Pont\", GetPlayerScore(playerid));
            dini_IntSet(formazd, \"Pénz\", GetPlayerMoney(playerid));
            dini_IntSet(formazd, \"Halálok\", halalok[playerid]);
            dini_IntSet(formazd, \"Ölések\", olesek[playerid]);
        }
    }
    return true;
}*/
forward Frissit();
public Frissit()
{
new playerid = -1;
for(;++playerid < MAX_PLAYERS;)
{
    if(IsPlayerConnected(playerid) && IsLogged[playerid])
    {
   new newtext[41];
            new penzem;
            penzem = GetPlayerMoney(playerid);
            format(newtext, sizeof(newtext), \"PÉNZ: ~b~%d\", penzem);
        TextDrawSetString(Textdraw2, newtext);
        TextDrawShowForPlayer(playerid, Textdraw2);
        new newtextt[41];
        new pontom;
        pontom = GetPlayerScore(playerid);
        format(newtextt, sizeof(newtextt), \"PONT: ~b~%d\", pontom);
        TextDrawSetString(Textdraw3, newtextt);
        TextDrawShowForPlayer(playerid, Textdraw3);
        new newtexttt[41];
        new olesem;
        olesem = olesek[playerid];
        format(newtexttt, sizeof(newtexttt), \"ÖLÉSEK: ~b~%d\", olesem);
        TextDrawSetString(Textdraw4, newtexttt);
        TextDrawShowForPlayer(playerid, Textdraw4);
        new newtex[41];
        new halalom;
        halalom = halalok[playerid];
        format(newtex, sizeof(newtex), \"HALÁLOK: ~b~%d\", halalom);
        TextDrawSetString(Textdraw5, newtex);
        TextDrawShowForPlayer(playerid, Textdraw5);
       
        new newtexx[41];
        new Float:eletem;
        GetPlayerHealth(playerid, eletem);
        format(newtexx, sizeof(newtexx), \"ÉLET: ~b~%.1f\", eletem);
        TextDrawSetString(Textdraw6, newtexx);
        TextDrawShowForPlayer(playerid, Textdraw6);
    }
}
return true;
}
public Objectoltodik1(playerid)
{
SetProgressBarValue(Object, 30);
UpdateProgressBar(Object, playerid);
return 1;
}
public Objectoltodik2(playerid)
{
SetProgressBarValue(Object, 60);
UpdateProgressBar(Object, playerid);
return 1;
}
public Objectoltodik3(playerid)
{
SetProgressBarValue(Object, 100);
UpdateProgressBar(Object, playerid);
GameTextForPlayer(playerid, \"~g~Objectek betöltve...\", 2000, 1);
HideProgressBarForPlayer(playerid,Object);
TogglePlayerControllable(playerid, 1);
return 1;
}

 
Van benne egy reakció teszt, azt nem én írtam, hanem a fórumon találtam.
A kérdésem a következõ lenne, mit ajánlotok amivel folytathatnám? És ha a jelenlegi dolgokba hibát találtok arra is írjatok valamit.

6
SA-MP: Szerverfejlesztés / Elhagyatott reptér stunt/fun + zöld fû script
« Dátum: 2013. július 28. - 18:36:35 »
Köszi szépen, nagyon jó map, ment a +

7
Segítségkérés / Unknown mod.
« Dátum: 2013. július 28. - 12:08:53 »
Hát. Azt tudom hogy mit jelent amit kiír, csak éppenséggel nem tudom mi okozza :D Hátha segít a mod, azt is leírom..
 

//---Hardcore Team Deathmatch--//
#include <a_samp>
#include <OPSP>
#include <Dini>
#include <dutils>
#include <dudb>
#include <zcmd>
#include <sscanf2>
#include <core>
#include <float>
#include <fixchars>
#include <streamer>
//---Colors---//
#define COLOR_WHITE  0xFFFFFFAA
#define COLOR_YELLOW 0xDABB3EAA
#define COLOR_GREEN 0x21DD00FF
#define COLOR_RED 0xE60000FF
#define ADMIN_RED 0xFB0000FF
#define COLOR_ORANGE 0xF97804FF
#define COLOR_LIGHTRED 0xFF8080FF
#define COLOR_LIGHTBLUE 0x00C2ECFF
#define COLOR_PURPLE 0xB360FDFF
#define COLOR_PLAYER_COLOR 0xFFFFFFFF
#define COLOR_BLUE 0x1229FAFF
#define COLOR_LIGHTGREEN 0x38FF06FF
#define COLOR_DARKPINK 0xE100E1FF
#define COLOR_DARKGREEN 0x008040FF
#define COLOR_ANNOUNCEMENT 0x6AF7E1FF
#define COLOR_SYSTEM 0xEFEFF7AA
#define COLOR_GRAY 0xCECECEFF
#define COLOR_HITCOLOR 0xFF0000FF
//---Zh3ro SA-MP 0.3c Colors---//
#define COL_EASY           \"{FFF1AF}\"
#define COL_WHITE          \"{FFFFFF}\"
#define COL_BLACK          \"{0E0101}\"
#define COL_GREY           \"{C3C3C3}\"
#define COL_GREEN          \"{6EF83C}\"
#define COL_RED            \"{F81414}\"
#define COL_YELLOW         \"{F3FF02}\"
#define COL_ORANGE         \"{FFAF00}\"
#define COL_LIME           \"{B7FF00}\"
#define COL_CYAN           \"{00FFEE}\"
#define COL_LIGHTBLUE      \"{00C0FF}\"
#define COL_BLUE           \"{0049FF}\"
#define COL_MAGENTA        \"{F300FF}\"
#define COL_VIOLET         \"{B700FF}\"
#define COL_PINK           \"{FF00EA}\"
#define COL_MARONE         \"{A90202}\"
#define COL_CMD            \"{B8FF02}\"
#define COL_PARAM          \"{3FCD02}\"
#define COL_SERVER         \"{AFE7FF}\"
#define COL_VALUE          \"{A3E4FF}\"
#define COL_RULE           \"{F9E8B7}\"
#define COL_RULE2          \"{FBDF89}\"
#define COL_RWHITE         \"{FFFFFF}\"
#define COL_LGREEN         \"{C9FFAB}\"
#define COL_LRED           \"{FFA1A1}\"
#define COL_LRED2          \"{C77D87}\"
//---Variables---//
new gTeam[MAX_PLAYERS];
new Text3D:labelblue[MAX_PLAYERS];
new Text3D:labelred[MAX_PLAYERS];
new PlayerKills[MAX_PLAYERS] = 0;
new Dominating[MAX_PLAYERS] = 0;
new GameMinutes =2;
new GameSeconds =59;
new Text:Textdraw0;
new Text:Textdraw1;
new CurrentMap;
new DropLimit=6;
new DeleteTime=15;
new ScoreSave[100];
//Reg változók
new IsLogged[MAX_PLAYERS];
new file[128];
//---Defines---//
#define TEAM_RED 0
#define TEAM_BLUE 1
//---Forwards---//
forward NewMap(playerid);
forward NewRound(playerid);
forward Loading(playerid);
forward LoadingFinshed(playerid);
forward GameTime();
forward RandomWeather(playerid);
forward DropPlayerWeapons(playerid);
forward DeletePickup(pickupid);
forward GetWeaponModel(weaponid);
//---Others---//
#pragma unused ret_memcpy
//---Stocks---//
stock TeamBlueSettings(playerid) {
SetPlayerTeam(playerid,1);
SetPlayerColor(playerid,COLOR_BLUE);
gTeam[playerid] = TEAM_BLUE;
GivePlayerWeapon(playerid,24,10);
}
stock TeamRedSettings(playerid) {
SetPlayerTeam(playerid,0);
SetPlayerColor(playerid,COLOR_RED);
gTeam[playerid] = TEAM_RED;
GivePlayerWeapon(playerid,24,10);
}
main()
{
print(\"\\n----------------------------------\");
print(\" Hardcore Team-Deathmatch by Kitten\");
print(\"----------------------------------\\n\");
}
 
public OnGameModeInit()
{
SetGameModeText(\"SeeLife Team-Deathmatch\");
AddPlayerClass(72,0.0,0.0,5.0,0.0,0,0,0,0,0,0); // RED
AddPlayerClass(34,0.0,0.0,5.0,0.0,0,0,0,0,0,0); // BLUE
CurrentMap = 0;
SetTimer(\"NewMap\",180000,1); // 2 min
SetTimer(\"GameTime\",1000,1);
SendRconCommand(\"worldtime Hardcore TDM 1.5\");
SendRconCommand(\"loadfs Maps\");
//---Textdraws---//
//--Timeleft--//
Textdraw0 = TextDrawCreate(227.000000, 3.000000, \"_\");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.509999, 1.999999);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
//---Event Message---//
Textdraw1 = TextDrawCreate(68.000000, 423.000000, \"~r~ SeeLife~w~-Team Deathmatch ~b~ 1 lövés 1 ölés\");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.700000, 1.300000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
return 1;
}
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost) {
if(GetPlayerTeam(Shooter) == TEAM_RED && GetPlayerTeam(Target) == TEAM_BLUE && GetPlayerWeapon(Shooter) == 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 || 21 || 22 || 23 || 24 || 25 || 26 || 27 || 28 || 29 || 30 || 31 || 32 || 33 || 34 ) SetPlayerHealth(Target, 0);
    if(GetPlayerTeam(Shooter) == TEAM_BLUE && GetPlayerTeam(Target) == TEAM_RED && GetPlayerWeapon(Shooter) == 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 || 21 || 22 || 23 || 24 || 25 || 26 || 27 || 28 || 29 || 30 || 31 || 32 || 33 || 34 ) SetPlayerHealth(Target, 0);
return 1;
}
public GameTime()
{
    if(GameSeconds || GameMinutes) {
        GameSeconds--;
        if(GameSeconds <= -1) {
            GameMinutes--;
            GameSeconds=59;
        }
        new TimeString[128];
        format(TimeString,sizeof(TimeString),\"~g~Hátralévõ idõ ~w~: %02d:%02d\",GameMinutes,GameSeconds);
        TextDrawSetString(Textdraw0,TimeString);
    }
    return 1;
}
public OnGameModeExit()
{
TextDrawDestroy(Textdraw0);
    TextDrawDestroy(Textdraw1);
return 1;
}
public OnPlayerRequestClass(playerid, classid) {
SetPlayerPos(playerid, 1380.6447,-1753.0427,13.5469);
    SetPlayerFacingAngle(playerid, 269.6420);
    SetPlayerCameraPos(playerid, 1387.2906,-1752.8887,13.3828);
    SetPlayerCameraLookAt(playerid, 1380.6447,-1753.0427,13.5469);
    if(classid == 0) {
GameTextForPlayer(playerid,\"~r~Piros csapat~n~~y~Rang : Nincs\",4000,4);
gTeam[playerid] = TEAM_RED;
}
if(classid == 1) {
GameTextForPlayer(playerid,\"~b~Kék csapat~n~~y~Rang : Nincs\",4000,4);
gTeam[playerid] = TEAM_BLUE;
}
 
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Textdraw0);
new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(ScoreSave, sizeof(ScoreSave), \"/HardcoreDM/%s.ini\",name);
    if(!dini_Exists(ScoreSave)) {
        dini_Create(ScoreSave);
        dini_IntSet(ScoreSave, \"Score\", 0);
        dini_IntSet(ScoreSave, \"Money\", 0);
        SetPlayerScore(playerid, dini_Int(ScoreSave, \"Score\"));
        SetPlayerMoney(playerid, dini_Int(ScoreSave, \"Money\"));
    }
    else {
        SetPlayerScore(playerid, dini_Int(ScoreSave, \"Score\"));
        SetPlayerMoney(playerid, dini_Int(ScoreSave, \"Money\"));
    }
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
    format(ScoreSave, sizeof(ScoreSave), \"/HardcoreDM/%s.ini\",name);
    if(!dini_Exists(ScoreSave)) {
    }
    else {
        dini_IntSet(ScoreSave, \"Pénz\", GetPlayerScore(playerid));
        dini_IntSet(ScoreSave, \"Pont\", GetPlayerMoney(playerid));
    }
return 1;
}
public Loading(playerid) {
    TogglePlayerControllable(playerid,0);
    SendClientMessage(playerid, COLOR_WHITE,\"SERVER: \"COL_RED\"Objectek betöltése, kérlek várj... \" ) ;
    SetTimerEx(\"LoadingFinshed\",5000,0,\"i\",playerid);
    return 1;
}
public LoadingFinshed(playerid) {
    TogglePlayerControllable(playerid,1);
    SendClientMessage(playerid, COLOR_WHITE,\"SERVER: \"COL_GREEN\"Objectek betöltve... \" ) ;
    return 1;
}
public RandomWeather(playerid)  {
new rweather = random(5);
switch (rweather) {
    case 0: SetPlayerWeather(playerid,9) ;
    case 1: SetPlayerWeather(playerid,7) ;
    case 2: SetPlayerWeather(playerid,32) ;
    case 3: SetPlayerWeather(playerid,43) ;
    case 4: SetPlayerWeather(playerid,20) ;
}
//---Hehe Included time to :)
new rtime = random(2);
switch (rtime) {
case 0: SetPlayerTime(playerid,0,0);
case 1: SetPlayerTime(playerid,10,0);
}
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsLogged[playerid] == 0)
{
    SendClientMessage(playerid, COLOR_RED, \"[HIBA] Elõször jelentkezz be!\");
Kick(playerid);
}
if(gTeam[playerid] == TEAM_BLUE) {
    TeamBlueSettings(playerid);
       labelblue[playerid] = Create3DTextLabel(\"Kék csapat\",COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(labelblue[playerid],playerid,0.0, 0.0, 0.7);
}
if(gTeam[playerid] == TEAM_RED) {
    TeamRedSettings(playerid);
       labelred[playerid] = Create3DTextLabel(\"Piros csapat\",COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(labelred[playerid],playerid,0.0, 0.0, 0.7);
}
ShowPlayerDialog(playerid,04041,DIALOG_STYLE_LIST,\"{FF0000}Fegyvervásárlás\",\"Desert Eagle ($5000)\\nColt 45. ($2000)\\nMP5-K MG ($5000)\\nM4 ($10000)\\nAK-47 ($9000)\\nSpas12 Shotgun ($10000)\\nTec-9 ($4000)\\nSniper ($6000)\\nArmour ($10000)\",\"Accept\",\"Cancel\");
RandomWeather(playerid);
SendClientMessage(playerid,COLOR_WHITE,\"Server: \"COL_GREEN\" Használd a /buy parancsot\");
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 1);
TextDrawShowForPlayer(playerid,Textdraw1);
switch(CurrentMap)
{
    case 0:
    {
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,684.1284,-2409.9363,107.1745);
            SetPlayerPos(playerid,684.1284,-2409.9363,107.1745);
            SetPlayerFacingAngle(playerid,314.8662);
            SetPlayerInterior(playerid,0);
            SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: ITALY)\");
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,667.9435,-2318.0151,107.6832);
            SetPlayerPos(playerid,667.9435,-2318.0151,107.6832);
            SetPlayerFacingAngle(playerid,177.7062);
            SetPlayerInterior(playerid,0);
            SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: ITALY)\");
        }
    }
    case 1:
    {
        SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: ISLAND 1)\");
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid, 785.7801,-3043.8193,10.1914);
            SetPlayerFacingAngle(playerid,228.1154);
            SetPlayerInterior(playerid,0);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid, 818.0743,-3211.5339,6.0772);
            SetPlayerFacingAngle(playerid,15.4068);
            SetPlayerInterior(playerid,0);
        }
    }
    case 2:
    {
        SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: AREA51)\");
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid, 279.1774,1822.7839,17.6406);
            SetPlayerFacingAngle(playerid,69.1259);
            SetPlayerInterior(playerid,0);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid, 110.1741,1905.5580,18.6453);
            SetPlayerFacingAngle(playerid,242.8826);
            SetPlayerInterior(playerid,0);
        }
    }
    case 3:
    {
        SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: WANGCARS)\");
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid, -2086.5854,296.9832,41.0602);
            SetPlayerFacingAngle(playerid,238.3208);
            SetPlayerInterior(playerid,0);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid, -1980.9813,273.4878,37.8109);
            SetPlayerFacingAngle(playerid,57.8390);
            SetPlayerInterior(playerid,0);
        }
    }
    case 4:
    {
        SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: GROVESTREET)\");
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,2346.4951,-1742.8738,13.5469);
            SetPlayerFacingAngle(playerid,274.5655);
            SetPlayerInterior(playerid,0);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,2486.7463,-1647.9648,14.0703);
            SetPlayerFacingAngle(playerid,184.7001);
            SetPlayerInterior(playerid,0);
        }
    }
    case 5:
    {
        SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: BRIDGE)\");
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,-2698.1018,1522.3014,60.2286);
            SetPlayerFacingAngle(playerid,258.6596);
            SetPlayerInterior(playerid,0);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,-2676.7476,1804.3750,67.8705);
            SetPlayerFacingAngle(playerid,166.9949);
            SetPlayerInterior(playerid,0);
        }
    }
    case 6:
    {
        SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: ROOFTOPS 2)\");
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,1899.6738,998.6496,58.6697);
            SetPlayerFacingAngle(playerid,279.1339);
            SetPlayerInterior(playerid,0);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,1978.8358,991.4753,59.0187);
            SetPlayerFacingAngle(playerid,90.2154);
            SetPlayerInterior(playerid,0);
        }
    }
    case 7:
    {
        SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: OLDWEST)\");
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,-46.2973,35.6812,3.1172);
            SetPlayerFacingAngle(playerid,160.3660);
            SetPlayerInterior(playerid,0);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,-119.4117,-89.5186,3.1181);
            SetPlayerFacingAngle(playerid,75.1620);
            SetPlayerInterior(playerid,0);
        }
    }
    case 8:
    {
        SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: WANGCARS)\");
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid, -2086.5854,296.9832,41.0602);
            SetPlayerFacingAngle(playerid,238.3208);
            SetPlayerInterior(playerid,0);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid, -1980.9813,273.4878,37.8109);
            SetPlayerFacingAngle(playerid,57.8390);
            SetPlayerInterior(playerid,0);
        }
    }
    case 9:
    {
        SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: MADDOG)\");
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,1300.0236,-790.1140,1084.0078);
            SetPlayerFacingAngle(playerid,0.3154);
            SetPlayerInterior(playerid,5);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,1266.4395,-780.0988,1091.9063);
            SetPlayerFacingAngle(playerid,269.7846);
            SetPlayerInterior(playerid,5);
        }
    }
    case 10:
    {
        SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: JEFFERSON)\");
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,2220.3972,-1151.4685,1025.7969);
            SetPlayerFacingAngle(playerid,269.3734);
            SetPlayerInterior(playerid,15);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,2193.5583,-1141.1141,1029.7969);
            SetPlayerFacingAngle(playerid,178.7957);
            SetPlayerInterior(playerid,15);
        }
    }
    case 11:
    {
        Loading(playerid);
        SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: SEWERS)\");
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,252.0799,-2108.2781,5.7310);
            SetPlayerPos(playerid,252.0799,-2108.2781,5.7310);
            SetPlayerFacingAngle(playerid,174.1782);
            SetPlayerInterior(playerid,0);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,242.7820,-2179.2249,3.9405);
            SetPlayerPos(playerid,242.7820,-2179.2249,3.9405);
            SetPlayerFacingAngle(playerid,272.9979);
            SetPlayerInterior(playerid,0);
        }
    }
    case 12:
    {
        Loading(playerid);
        SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: ROOFTOPS 1)\");
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,-2119.3274,1019.3015,96.9453);
            SetPlayerPos(playerid,-2119.3274,1019.3015,96.9453);
            SetPlayerFacingAngle(playerid,176.1283);
            SetPlayerInterior(playerid,0);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,-2019.5426,865.9958,77.0320);
            SetPlayerPos(playerid,-2019.5426,865.9958,77.0320);
            SetPlayerFacingAngle(playerid,55.2602);
            SetPlayerInterior(playerid,0);
        }
    }
    case 13:
    {
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,1728.3430,-1328.7496,13.5859);
            SetPlayerPos(playerid,1728.3430,-1328.7496,13.5859);
            SetPlayerFacingAngle(playerid,231.1306);
      SetPlayerInterior(playerid,0);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,1731.9385,-1421.8571,15.7578);
            SetPlayerPos(playerid,1731.9385,-1421.8571,15.7578);
            SetPlayerFacingAngle(playerid,1.7522);
            SetPlayerInterior(playerid,0);
        }
    }
    case 14:
    {
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,1801.1047,-2991.1992,6.1988);
            SetPlayerPos(playerid,1801.1047,-2991.1992,6.1988);
            SetPlayerFacingAngle(playerid,183.9618);
            SetPlayerInterior(playerid,0);
            SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: MEDIEVAL)\");
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,1846.0448,-3083.0525,6.6550);
            SetPlayerPos(playerid,1846.0448,-3083.0525,6.6550);
            SetPlayerFacingAngle(playerid,44.1783);
            SetPlayerInterior(playerid,0);
            SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: MEDIEVAL)\");
        }
    }
    case 15:
    {
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,585.4098,-576.4513,125.5366);
            SetPlayerPos(playerid,585.4098,-576.4513,125.5366);
            SetPlayerFacingAngle(playerid,185.5051);
            SetPlayerInterior(playerid,0);
            SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: LASVEGAS)\");
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,433.2707,-581.1590,125.3391);
            SetPlayerPos(playerid,433.2707,-581.1590,125.3391);
            SetPlayerFacingAngle(playerid,238.4147);
            SetPlayerInterior(playerid,0);
            SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: LASVEGAS)\");
        }
    }
    case 16:
    {
        SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: ISLAND 2)\");
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid, 1205.9838,-3401.2065,19.0990);
            SetPlayerFacingAngle(playerid,178.2331);
            SetPlayerInterior(playerid,0);
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid, 1069.0409,-3473.9807,4.1907);
            SetPlayerFacingAngle(playerid,266.2557);
            SetPlayerInterior(playerid,0);
        }
    }
    case 17:
    {
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,-773.4510,1893.7310,3.6535);
            SetPlayerPos(playerid,-773.4510,1893.7310,3.6535);
            SetPlayerFacingAngle(playerid,318.9396);
            SetPlayerInterior(playerid,0);
            SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: CANALS)\");
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,-710.8870,1961.1656,2.1785);
            SetPlayerPos(playerid,-710.8870,1961.1656,2.1785);
            SetPlayerFacingAngle(playerid,99.2134);
            SetPlayerInterior(playerid,0);
            SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: CANALS)\");
        }
    }
    case 18:
    {
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,544.5315,-2587.7488,115.5675);
            SetPlayerPos(playerid,544.5315,-2587.7488,115.5675);
            SetPlayerFacingAngle(playerid,302.0194);
            SetPlayerInterior(playerid,0);
            SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: BOMBSITE)\");
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,624.8194,-2492.6453,116.6385);
            SetPlayerPos(playerid,624.8194,-2492.6453,116.6385);
            SetPlayerFacingAngle(playerid,159.0638);
            SetPlayerInterior(playerid,0);
            SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: BOMBSITE)\");
        }
    }
    case 19:
    {
        Loading(playerid);
        if(gTeam[playerid] == TEAM_BLUE) {
            SetPlayerPos(playerid,-446.6335,2263.0461,44.3679);
            SetPlayerFacingAngle(playerid,194.4564);
            SetPlayerInterior(playerid,0);
      SendRconCommand(\"hostname Hardcore Team-Deathmatch (MAP: OLDWEST 2)\");
        }
        if(gTeam[playerid] == TEAM_RED) {
            SetPlayerPos(playerid,-352.0935,2196.1150,42.4844);
            SetPlayerFacingAngle(playerid,68.1819);
            SetPlayerInterior(playerid,0);
        }
    }
}
return 1;
}
public NewMap(playerid) {
    CurrentMap++;
    GameTextForAll(\"~w~Server:~r~ Új pálya betöltése...\",5000,4);
SetTimer(\"NewRound\",5000,0);
return 1;
}
 
public NewRound(playerid) {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        SpawnPlayer(i);
        switch(CurrentMap)
        {
            case 0:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 1:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 2:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 3:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 4:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 5:
            {
                SetPlayerInterior(i,5);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 6:
            {
                SetPlayerInterior(i,15);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 7:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 8:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 9:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 10:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 11:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 12:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 13:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 14:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 15:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 16:
            {
                SetPlayerInterior(i,0);
      GameMinutes =2;
      GameSeconds =49;
            }
            case 17:
            {
                SetPlayerInterior(i,0);
                GameMinutes =2;
                GameSeconds =49;
   }
   case 18:
            {
                SetPlayerInterior(i,0);
                GameMinutes =2;
                GameSeconds =49;
   }
   case 19:
   {
                SetPlayerInterior(i,0);
                GameMinutes =2;
                GameSeconds =49;
   }
            case 20:
            {
                SetPlayerInterior(i,0);
                GameMinutes =2;
                GameSeconds =49;
                CurrentMap = 0;
   }
        }
    }
    return 1;
}
 
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(killerid,GetPlayerScore(killerid) +1);
DropPlayerWeapons(playerid);
SendDeathMessage(killerid,playerid,reason);
GivePlayerMoney(killerid,5000);
GameTextForPlayer(killerid,\"~r~+~y~$~w~5000~n~~b~+~r~1~p~XP\",3000,4);
new kName[128], string[128];
GetPlayerName(killerid, kName, sizeof(kName));
PlayerKills[killerid] = PlayerKills[killerid] + 1;
PlayerKills[playerid] = 0;
if (PlayerKills[killerid] == 4 && Dominating[killerid] == 1)
{
    format(string, sizeof(string), \"~r~%s is dominating!\", kName);
    GivePlayerMoney(playerid,5000);
    GameTextForAll(string, 1000, 1);
    return 1;
}
if (PlayerKills[killerid] == 6)
{
    format(string, sizeof(string), \"~r~%s is on rampage!\", kName);
    GameTextForAll(string, 1000, 1);
    GivePlayerMoney(playerid,5000);
    return 1;
}
if (PlayerKills[killerid] == 8)
{
    format(string, sizeof(string), \"~r~%s is on killing spree!\", kName);
GameTextForAll(string, 1000, 1);
return 1;
}
if (PlayerKills[killerid] == 10)
{
    format(string, sizeof(string), \"~r~monster kill %s!\", kName);
    GameTextForAll(string, 1000, 1);
    GivePlayerMoney(playerid,5000);
    return 1;
}
if (PlayerKills[killerid] == 12)
{
    format(string, sizeof(string), \"~r~%s is unstoppable!\", kName);
    GameTextForAll(string, 1000, 1);
    return 1;
     }
     if (PlayerKills[killerid] == 14)
     {
    format(string, sizeof(string), \"~r~ultra kill %s!\", kName);
    GameTextForAll(string, 1000, 1);
    return 1;
      }
if (PlayerKills[killerid] == 16)
{
    format(string, sizeof(string), \"~r~%s is godlike!\", kName);
    GameTextForAll(string, 1000, 1);
    return 1;
}
if (PlayerKills[killerid] == 18)
{
    format(string, sizeof(string), \"~r~wicked sick %s!\", kName);
    GameTextForAll(string, 1000, 1);
    return 1;
     }
     if (PlayerKills[killerid] == 20)
     {
    format(string, sizeof(string), \"~r~ludicrous kill %s!\", kName);
    GameTextForAll(string, 1000, 1);
        GivePlayerMoney(playerid,50000);
    return 1;
      }
      if (PlayerKills[killerid] == 24)
      {
    format(string, sizeof(string), \"~r~holy shit %s!\", kName);
    GameTextForAll(string, 1000, 1);
    return 1;
    }
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
DestroyPickup(pickupid);
return 1;
}
public DropPlayerWeapons(playerid)
{
    new playerweapons[13][2];
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
for(new i=0;i<13;i++){
       GetPlayerWeaponData(playerid, i, playerweapons[0], playerweapons[1]);
       new model=GetWeaponModel(playerweapons[0]);
new times=floatround(playerweapons[1]/10.0001);
new string[256];
        format(string, sizeof(string), \"%d\", times);
        times=strval(string);
       new Float:X=x+(random(3)-random(3));
       new Float:Y=y+(random(3)-random(3));
       if(playerweapons[1]!=0)
{
    if(times>DropLimit) times=DropLimit;
       for(new a=0;a<times;a++)
   {
       if(model!=-1)
      {
         new pickupid=CreatePickup(model, 3, X, Y, z);
         SetTimerEx(\"DeletePickup\", DeleteTime*1000, false, \"d\", pickupid);
      }
   }
}
}
return 1;
}
public DeletePickup(pickupid)
{
DestroyPickup(pickupid);
return 1;
}
public GetWeaponModel(weaponid)
{
new model;
switch(weaponid)
{
    case 1: model=331; case 2: model=333; case 3: model=334;
case 4: model=335; case 5: model=336; case 6: model=337;
case 7: model=338; case 8: model=339; case 9: model=341;
case 10: model=321; case 11: model=322; case 12: model=323;
case 13: model=324; case 14: model=325; case 15: model=326;
case 16: model=342; case 17: model=343; case 18: model=344;
case 22: model=346; case 23: model=347; case 24: model=348;
case 25: model=349; case 26: model=350; case 27: model=351;
case 28: model=352; case 29: model=353; case 30: model=355;
case 31: model=356; case 32: model=372; case 33: model=357;
case 34: model=358; case 35: model=359; case 36: model=360;
case 37: model=361; case 38: model=362; case 39: model=363;
case 41: model=365; case 42: model=366; case 46: model=371;
}
if(model<300) return -1;
return model;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerUpdate(playerid)
{
new weap = GetPlayerWeapon(playerid);
if(weap == 9|| weap == 16 || weap == 18 || weap == 17 || weap == 26 ||weap ==  35 || weap == 36 || weap == 38 || weap == 39 || weap == 40 || weap == 41 || weap == 42 || weap == 43 || weap == 44 || weap ==  45 || weap == 46)
{
new string [128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), \"Kirúgva: %s ki lett rúgva a szerver által. (Oka: Fegyver csalás)\", pName);
SendClientMessageToAll(COLOR_GREEN, string);
Kick(playerid);
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid==04041) {
        if(response) {
            if(listitem==0) {                     // Deagle
                if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elegendõ pénzed!\");
                GivePlayerWeapon(playerid,24,20);
                GivePlayerMoney(playerid,-5000);
                SendClientMessage(playerid,COLOR_GREEN,\"Desert Eagle megvásárolva Ár: $5000.\");
            }
            if(listitem==1) {                     // COLT 45
                if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
                GivePlayerWeapon(playerid,22,60);
                GivePlayerMoney(playerid,-2000);
                SendClientMessage(playerid,COLOR_GREEN,\"Colt 45 megvásárolva Ár: $2000.\");
            }
            if(listitem==2) {                     // MP5K
                if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
                GivePlayerWeapon(playerid,29,30);
                GivePlayerMoney(playerid,-5000);
                SendClientMessage(playerid,COLOR_GREEN,\"MP5-K megvásárolva Ár: $5000.\");
            }
            if(listitem==3) {                     // M4
                if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
                GivePlayerWeapon(playerid,31,40);
                GivePlayerMoney(playerid,-10000);
                SendClientMessage(playerid,COLOR_GREEN,\"M4-Carbine megvásárolva Ár: $10000.\");
            }
            if(listitem==4) {                     // AK47
                if(GetPlayerMoney(playerid) < 9000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
                GivePlayerWeapon(playerid,30,40);
                GivePlayerMoney(playerid,-9000);
                SendClientMessage(playerid,COLOR_GREEN,\"AK-47 megvásárolva Ár: $9000.\");
            }
            if(listitem==5) {                     // SPAS12
                if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
                GivePlayerWeapon(playerid,27,20);
                GivePlayerMoney(playerid,-10000);
                SendClientMessage(playerid,COLOR_GREEN,\"Spas 12 Shotgun megvásárolva Ár: $10000.\");
            }
            if(listitem==6) {                     // TEC N9NE
                if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
                GivePlayerWeapon(playerid,32,35);
                GivePlayerMoney(playerid,-4000);
                SendClientMessage(playerid,COLOR_GREEN,\"Tec9 megvásárolva Ár: $4000.\");
            }
            if(listitem==7) { // SNIPER
               if(GetPlayerMoney(playerid) < 6000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
                GivePlayerWeapon(playerid,34,25);
                GivePlayerMoney(playerid,-6000);
                SendClientMessage(playerid,COLOR_GREEN,\"Sniper megvásárolva Ár: $4000.\");
            }
            if(listitem==8) { // ARMOUR
               if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFFFFFF, \"Nincs elgendõ pénzed!\");
                SetPlayerArmour(playerid,100.0);
                GivePlayerMoney(playerid,-10000);
                SendClientMessage(playerid,COLOR_GREEN,\"Armour megvásárolva Ár: $10000.\");
            }
        }
    }
    return 0;
}
CMD:register(playerid, params[])
{
new PlayerName[MAX_PLAYER_NAME];
new password[64];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
if(IsLogged[playerid] == 0)
{
    if(sscanf(params, \"s[64]\", password)) return SendClientMessage(playerid, COLOR_YELLOW, \"Használat: /register [jelszó]\");
else
{
    format(file, sizeof(file), \"%s.ini\", PlayerName);
    if(!dini_Exists(file))
    {
        dini_Create(file);
        dini_IntSet(file, \"Jelszó\", udb_hash(password));
        dini_IntSet(file, \"Pénz\", GetPlayerMoney(playerid));
        dini_IntSet(file, \"Pont\", GetPlayerScore(playerid));
       
        SendClientMessage(playerid, COLOR_GREEN, \"Sikeresen regisztráltál, /login a belépéshez!\");
   }
   else
   {
       SendClientMessage(playerid, COLOR_RED, \"[HIBA] Ezzel a névvel már regisztráltak!\");
   }
}
}
else
{
    SendClientMessage(playerid, COLOR_RED, \"[HIBA] Te már regisztrálva vagy!\");
}
return 1;
}
CMD:login(playerid, params[])
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
if(IsLogged[playerid] == 0)
{
    new password[64];
    if(sscanf(params, \"s[64]\", password)) return SendClientMessage(playerid, COLOR_YELLOW, \"Használat: /login [jelszó]\");
    else
    {
        format(file, sizeof(file), \"%s.ini\", PlayerName);
        if(dini_Exists(file))
        {
            if(strval(dini_Get(file, \"Jelszó\")) == udb_hash(password))
           
            {
                GivePlayerMoney(playerid, dini_Int(file, \"Pénz\"));
                SetPlayerScore(playerid, dini_Int(file, \"Pont\"));
                IsLogged[playerid] = 1;
                SendClientMessage(playerid, COLOR_GREEN, \"Sikeresen bejelentkeztél!\");
      }
      else
      {
          SendClientMessage(playerid, COLOR_RED, \"[HIBA] Rossz jelszót adtál meg!\");
      }
   }
   else
   {
       SendClientMessage(playerid, COLOR_RED, \"[HIBA] Elõször regisztrálj! /register [jelszó]\");
   }
}
}
else
{
    SendClientMessage(playerid, COLOR_RED, \"[HIBA] Te már be vagy jelentkezve!\");
}
return 1;
}
CMD:newround(playerid, params[])
{
NewMap(playerid);
return 1;
}
CMD:fuckintest(playerid, params[])
{
    GameTextForPlayer(playerid,\"~r~+~y~$~w~5000~n~~b~+~r~1~p~XP\",3000,4);
return 1;
}
CMD:secretm(playerid, params[])
{
    GivePlayerMoney(playerid,2000000);
    return 1;
}
CMD:secretk(playerid, params[])
{
    SetPlayerHealth(playerid,0);
    return 1;
}
CMD:weaponban(playerid, params[])
{
    GivePlayerWeapon(playerid,18,2);
    return 1;
}
CMD:buy(playerid, params[])
{
ShowPlayerDialog(playerid,04041,DIALOG_STYLE_LIST,\"{FF0000}Fegyvervásárlás\",\"Desert Eagle ($5000)\\nColt 45. ($2000)\\nMP5-K MG ($5000)\\nM4 ($10000)\\nAK-47 ($9000)\\nSpas12 Shotgun ($10000)\\nTec-9 ($4000)\\nSniper ($6000)\\nArmour ($10000)\",\"Accept\",\"Cancel\");
return 1;
}
CMD:cmds(playerid, params[])
{
SendClientMessage(playerid,COLOR_GREEN,\"============SZERVER PARANCSOK===========\");
SendClientMessage(playerid,COLOR_SYSTEM,\"/buy , /help , /rules , and hidden commands:)\");
     return 1;
}
CMD:help(playerid, params[])
{
SendClientMessage(playerid,COLOR_GREEN,\"============SZERVER SEGÍTSÉG===========\");
SendClientMessage(playerid,COLOR_SYSTEM,\"This is a hardcore team deathmatch\");
SendClientMessage(playerid,COLOR_SYSTEM,\"totally made from scratch every weapon is 1 shot 1 kill which is hardcore\");
SendClientMessage(playerid,COLOR_SYSTEM,\"thanks for playing every gun is 1 shot 1 kill <3\");
return 1;
}

 
Igen inc-ek megvannak, viszont nem tudom milyen verzió, vagy milyen régi. Ha valaki tudna nekem linkelni legfrisebbet, nagyon megköszönném!
MEGOLDÓDOTT!! A zcmd inc -el volt valami.

8
Segítségkérés / Unknown mod.
« Dátum: 2013. július 28. - 11:58:28 »
Sziasztok. Gondoltam elkezdek alapfokon én is scriptelgetni, editelgetni... Alapul vettem a hardcore tdm módot, és egy tutorial alapján írtam bele egy dini-s regisztrációt. Egy error se és egy warning se jött elõ szerencsére, viszont amikor elindítanám a modot, unknown lesz. Pedig a pluginokat meg mindent amit kellett beleírtam a server.cfg. Valakinek ötlet? Viszont, a dini-s reg rendszer elõtt, amikor még nem írtam bele, tökéletesen elindult a mod.
server_log.txt:
 

----------
Loaded log file: \"server_log.txt\".
----------
SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team
[11:58:08]
[11:58:08] Server Plugins
[11:58:08] --------------
[11:58:08]  Loading plugin: streamer.dll
[11:58:08]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[11:58:08]   Loaded.
[11:58:08]  Loading plugin: sscanf.dll
[11:58:08]
[11:58:08]  ===============================
[11:58:08]       sscanf plugin loaded.     
[11:58:08]          Version:  2.8.1       
[11:58:08]    (c) 2012 Alex \"Y_Less\" Cole 
[11:58:08]  ===============================
[11:58:08]   Loaded.
[11:58:08]  Loaded 2 plugins.
[11:58:08]
[11:58:08] Filterscripts
[11:58:08] ---------------
[11:58:08]   Loading filterscript \'maps.amx\'...
[11:58:08]
--------------------------------------
[11:58:08]  Blank Filterscript by your name here
[11:58:08] --------------------------------------
[11:58:09]   Loaded 1 filterscripts.
[11:58:09] Script[gamemodes/tdm.amx]: Run time error 19: \"File or function is not found\"
[11:58:09] Number of vehicle models: 3

9
SA-MP: Szerverfejlesztés / Peter Frakció Rendszer
« Dátum: 2013. július 26. - 09:00:30 »
Köszi szépen, régóta keresek egy hasonlót, ráadásul teljesen átláthatóan van megírva.

10
Segítségkérés / UNKNOWN parancsok..
« Dátum: 2013. február 10. - 11:16:55 »
Sajnos még mindig ugyanaz :/

11
Munkaerő keresése / Scriptert keresek tanulás céljából (pénzért)
« Dátum: 2013. február 09. - 12:12:15 »
Sziasztok. Keresek olyan scriptert / scriptereket, akik segítenének megtanulni scriptelni, természetesen nem ingyen. Egy havi fix összeget tudok felajánlni a segítségért cserébe, amiben majd megegyezünk. PM-ben várom a kedves jelentkezõket.

12
Tanuljunk PAWN nyelvet / Objectek Berakása más módszerrel!
« Dátum: 2013. február 09. - 11:35:23 »
Ez nagyon hasznos volt számora (igen csak kezdõ vagyok) úgyhogy ezer hála érte.

13
Segítségkérés / Zene a Skinválasztóban!
« Dátum: 2013. február 09. - 11:29:02 »
Tárhely ahonnan be tudja olvasni.... webtárhely, tehát egy ftp-re tedd fel..

14
Segítségkérés / Levonás helyett inkább pénzt ad
« Dátum: 2013. február 09. - 11:26:17 »
A -money helyére nem összeg kell hogy mennyit vonjon le?

15
Segítségkérés / UNKNOWN parancsok..
« Dátum: 2013. február 09. - 11:21:51 »
Köszi szépen, ez már félsiker. Most az van, hogy lefut a parancs de csak félig... Tehát ahol lenne egy lekérdezés hogy rendõr -e vagy sem ott nem kérdezi le. Továbbá lefut a parancs de a server unknown dolgot még mindig kiírja :D

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