Szerző Téma: Drift GM  (Megtekintve 2585 alkalommal)

Nem elérhető shadee

  • 1073
    • Profil megtekintése
Drift GM
« Dátum: 2012. augusztus 12. - 22:08:35 »
+5 Show voters
üdv,régen fent volt ez a mód,most is fentvan meg minden,de az már elavult.
ma kezdtem el megint vele foglalkozni,nem nagy mód,de 1-2 haverral ellehet vele szórakozni
Mi található meg benne:
/drift >1-10ig<
Saját adminrendszer
Regisztráció rendszer>nem én csináltam,készítõ neve bennevan
néhány apró parancs.
 
#include <a_samp>
#include <zcmd>
#include <sscanf>
#include <Dini>
#include <dudb>
#pragma unused strtok
#pragma unused ret_memcpy
#define ReGiStEr 30
#define LoGiN 31
#define COLOR_GREEN 0x00FF00FF
#define COLOR_RED 0xFF0000FF
enum pInfo
{
Deaths,
Admin,
Kills,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
new IsLogged[MAX_PLAYERS];
new aDuty[MAX_PLAYERS];
new uzenettimer;
new Reklam[][]=
{
\"Ha csalót látsz a szerveren,Kérlek jelezd az admin felé!\", //ha tól sok nyugodtan törölj le egy-két sort
\"Tartsd be a szerver szabályzatot\",
\"Ne használj külsõ programot\",
\"Szerver Weboldala:nincs\"
};
//regisztráció rendszer by:Joe torran c,köszönjük neki!
//regisztráció rendszer tárolás
 
#pragma tabsize 0
//VÁltozók:
new bool:god[MAX_PLAYERS];
new bool:afk[MAX_PLAYERS];
#define SCM SendClientMessage
 
//ez a régi Drift Drug mód volt!
main()
{
print(\"\\n---------------------------------------\");
print(\" Szerver Készitõje: CooLeeR A.k.A Zzoli11\");
print(\"---------------------------------------\\n\");
}
public OnGameModeInit()
{
uzenettimer = SetTimer(\"ruzenet\",50000*2,true); //1000 = 1ms | 60000 = 1perc
SetGameModeText(\"CooLeeR Drift\");
print(\"Kocsik Sikeresen Betöltve!\");
AddStaticVehicleEx(429,1244.5918,-2044.0123,59.4385,269.5728,3,8,30);
AddStaticVehicleEx(429,1244.4556,-2039.0112,59.4530,269.5737,3,8,30);
AddStaticVehicleEx(429,1244.3218,-2034.0103,59.4569,269.5735,3,8,30);
AddStaticVehicleEx(429,1244.1880,-2029.0093,59.4598,269.5735,3,8,30);
AddStaticVehicleEx(429,1244.0435,-2024.0083,59.5090,269.5708,3,8,30);
AddStaticVehicleEx(429,1244.4020,-2019.0110,59.4543,269.5735,3,8,30);
AddStaticVehicleEx(429,1244.2681,-2014.0100,59.4581,269.5736,3,8,30);
AddStaticVehicleEx(429,1244.1344,-2009.0090,59.4586,269.5736,3,8,30);
AddStaticVehicleEx(562,1277.2325,-2008.8496,58.6537,90.9820,80,1,30);
AddStaticVehicleEx(562,1277.2898,-2013.8459,58.6799,90.9880,80,1,30);
AddStaticVehicleEx(562,1277.3527,-2018.8459,58.6532,90.9999,80,1,30);
AddStaticVehicleEx(562,1277.1606,-2023.8486,58.6727,91.0445,80,1,30);
AddStaticVehicleEx(562,1277.2394,-2028.8505,58.6903,91.0443,80,1,30);
AddStaticVehicleEx(562,1277.3176,-2033.8517,58.7078,91.0446,80,1,30);
AddStaticVehicleEx(562,1277.5691,-2038.5188,58.7298,89.9342,80,1,30);
AddStaticVehicleEx(562,1277.5576,-2043.5189,58.7753,89.9388,80,1,30);
AddStaticVehicleEx(411,-314.8287,1514.7446,75.0528,1.3532,64,1,30);
AddStaticVehicleEx(411,-317.7801,1515.4036,75.0402,0.2407,64,1,30);
AddStaticVehicleEx(562,-321.1545,1515.1018,75.0316,1.0602,36,1,30);
AddStaticVehicleEx(562,-324.1783,1515.1737,75.0190,359.2409,36,1,30);
AddStaticVehicleEx(603,-327.2997,1514.8605,75.2209,0.4270,32,1,30);
AddStaticVehicleEx(603,-330.2702,1515.1918,75.1976,0.0379,32,1,30);
AddStaticVehicleEx(451,-333.5902,1515.0868,75.0659,358.1462,36,36,30);
AddStaticVehicleEx(451,-336.5558,1515.6045,75.0652,359.4702,36,36,30);
AddStaticVehicleEx(602,-339.7686,1515.3315,75.0475,359.4720,69,1,30);
AddStaticVehicleEx(602,-342.9582,1515.2747,75.0470,0.7727,69,1,30);
AddStaticVehicleEx(602,-1040.8020,-1350.3877,130.0764,104.3700,69,1,30);
AddStaticVehicleEx(429,-1045.5331,-1348.4998,129.9614,97.8369,13,13,30);
AddStaticVehicleEx(562,-1048.5942,-1345.7634,129.9555,98.7577,17,1,30);
AddStaticVehicleEx(411,1091.6051,2298.4656,10.5255,269.1693,123,1,30);
AddStaticVehicleEx(411,1091.4738,2288.5093,10.5334,269.1803,123,1,30);
AddStaticVehicleEx(451,1084.8191,2288.6338,10.4702,268.4966,61,61,30);
AddStaticVehicleEx(451,1085.0681,2298.5449,10.4603,268.4279,61,61,30);
AddStaticVehicleEx(451,-784.5894,2752.4451,45.3542,272.8446,61,61,30);
print(\"Skinek Sikeresen Betöltve!\");
//Skinek:
AddPlayerClass(0,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(1,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(13,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(16,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(18,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(19,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(21,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(22,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(23,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(26,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(27,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(28,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(29,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(30,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(33,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(36,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(46,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(299,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(296,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(285,1222.8760,-2037.0157,65.2125,282.2510,0,0,0,0,0,0);
AddPlayerClass(286,1222.8760,-2037.0157,65.2125,282.2510,0,0,0,0,0,0);
AddPlayerClass(287,1222.8760,-2037.0157,65.2125,282.2510,0,0,0,0,0,0);
AddPlayerClass(288,1222.8760,-2037.0157,65.2125,282.2510,0,0,0,0,0,0);
AddPlayerClass(102,1222.7469,-2037.1483,65.2266,279.0452,0,0,0,0,0,0);
AddPlayerClass(103,1222.9333,-2036.9647,65.1844,270.4167,0,0,0,0,0,0);
AddPlayerClass(104,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(105,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(106,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(107,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(128,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
print(\"Objectek Betöltve!\");
return 1;
}
public OnGameModeExit()
{
KillTimer(uzenettimer);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1095.3811,-2036.9301,82.7055);
SetPlayerFacingAngle(playerid,271.5483);
SetPlayerCameraPos(playerid, 1106.181518, -2036.951049, 82.758186);
SetPlayerCameraLookAt(playerid, 1101.183349, -2037.086181, 82.758186);
return 1;
}
public OnPlayerConnect(playerid)
{
aDuty[playerid] = 0;
IsLogged[playerid] = 0;
    new file[128], string[128];
    new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),\"/tReg/%s.ini\",name);
if(!fexist(file))
{
format(string, sizeof string, \"Üdv %s! \\nTe még nem vagy regisztrálva! \\n\\nKérjük regisztrálj.\", name);
ShowPlayerDialog(playerid, ReGiStEr, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Register\", \"Cancel.\");
}
if(fexist(file))
{
format(string, sizeof string, \"Üdv %s! \\nKérjük jelentkezz be! \\n\\nIrd be a jelszódat.\", name);
ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Login\", \"Cancel.\");
}
 
SendClientMessage(playerid,COLOR_GREEN,\"Üdvözöllek CooLeeR Drift Szerverén!\");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    aDuty[playerid] = 0;
    new file[128];
    new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),\"/tReg/%s.ini\",name);
if(fexist(file))
{
    dini_IntSet(file,\"Score\", GetPlayerScore(playerid));
    dini_IntSet(file,\"Money\", GetPlayerMoney(playerid));
    dini_IntSet(file,\"Deaths\", PlayerInfo[playerid][Deaths]);
    dini_IntSet(file,\"Adminszint\", PlayerInfo[playerid][Admin]);
    dini_IntSet(file,\"Kills\", PlayerInfo[playerid][Kills]);
}
IsLogged[playerid] = 0;
return 1;
}
public OnPlayerDeath(playerid, killerid)
{
PlayerInfo[playerid][Deaths] ++;
PlayerInfo[killerid][Kills] ++;
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_SUBMISSION)
    {
        if(IsPlayerInAnyVehicle(playerid))
{
           RepairVehicle(GetPlayerVehicleID(playerid));
        }
    }
}
public OnPlayerSpawn(playerid)
{
    AntiDeAMX();
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
//alap parancs
CMD:health(playerid,params[])
{
new hp;
if(sscanf(params,\"i\",hp))return SCM(playerid,COLOR_GREEN,\"Használat:/health >Érték<\");
if(hp<1 || hp>100)return SCM(playerid,COLOR_GREEN,\"ne legyél mohó,az élet értéke minimum 1 maximum 100!\");
SetPlayerHealth(playerid,hp);
SCM(playerid,COLOR_GREEN,\"Élet feltöltve!\");
return 1;
}
CMD:armour(playerid,params[])
{
new armor;
if(sscanf(params,\"i\",armor))return SCM(playerid,COLOR_GREEN,\"Használat:/armour >Érték<\");
if(armor<1 || armor>100)return SCM(playerid,COLOR_GREEN,\"ne legyél mohó,a páncél értéke minimum 1 maximum 100!\");
SetPlayerArmour(playerid,armor);
SCM(playerid,COLOR_GREEN,\"Élet feltöltve!\");
return 1;
}
CMD:help(playerid,params[])
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,\"parancsok\",\"/tele a teleportért!\\n/cars a Kocsikért!\",\"Rendben\",\"\");
    return 1;
}
CMD:tele(playerid)
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,\"Teleportok\",\"/drift 1-10ig!\\nDialogos Teleport:/teles\",\"Rendben\",\"\");
return 1;
}
CMD:drift(playerid,params[])
{
   if(isnull(params)) return SendClientMessage(playerid, -1, \"Használat: /kapu [nyit / zár]\");
   if(!strcmp(params, \"1\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,-325.1331,1533.0276,75.3594);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-1re!\");
}else
{
   SetVehiclePos(GetPlayerVehicleID(playerid),-325.1331,1533.0276,75.3594);
}
      }
      else if(!strcmp(params, \"2\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,2315.8945,1401.4497,42.8203);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-2re!\");
}else
{
   SetVehiclePos(GetPlayerVehicleID(playerid),2315.8945,1401.4497,42.8203);
}
      }
      else if(!strcmp(params, \"3\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,1259.4164,-2027.4384,59.4366);
SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-3ra!\");
}else
{
SetVehiclePos(GetPlayerVehicleID(playerid),1259.4164,-2027.4384,59.4366);
}
      }
      else if(!strcmp(params, \"4\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,-1058.1448,-1353.2602,129.9056);
   SetPlayerFacingAngle(playerid,71.4104);
   SetPlayerInterior(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál a Drift-4re!\");
}else
{
   SetVehiclePos(GetPlayerVehicleID(playerid),-1058.1448,-1353.2602,129.9056);
}
      }
      else if(!strcmp(params, \"5\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,2224.5698,1963.1658,31.7796);
   SetPlayerFacingAngle(playerid,270.6689);
   SetPlayerInterior(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-5re!\");
}else
{
   SetVehiclePos(GetPlayerVehicleID(playerid),2224.5698,1963.1658,31.7796);
}
      }
      else if(!strcmp(params, \"6\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,1094.2669,2292.7783,10.7970);
   SetPlayerInterior(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-6ra!\");
}else
{
  SetVehiclePos(GetPlayerVehicleID(playerid),1094.2669,2292.7783,10.7970);
}
      }
      else if(!strcmp(params, \"7\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,-778.7633,2731.8259,45.3426);
   SetPlayerInterior(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-7re!\");
}else
{
  SetVehiclePos(GetPlayerVehicleID(playerid),-778.7633,2731.8259,45.3426);
}
      }
      else if(!strcmp(params, \"8\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,-2134.7158,918.3775,79.8515);
   SetPlayerInterior(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Dirft-8ra!\");
}else
{
    SetVehiclePos(GetPlayerVehicleID(playerid),-2134.7158,918.3775,79.8515);
}
      }
      else if(!strcmp(params, \"9\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-2666.2487,576.9454,14.4612);
    SetPlayerInterior(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-9-re!\");
}else
{
    SetVehiclePos(GetPlayerVehicleID(playerid),-2666.2487,576.9454,14.4612);
}
      }
      else if(!strcmp(params, \"10\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-2412.5739,-601.2869,132.5625);
    SetPlayerInterior(playerid,0);
}else
{
    SetVehiclePos(GetPlayerVehicleID(playerid),-2412.5739,-601.2869,132.5625);
}
      }
       else SendClientMessage(playerid, -1, \"Használat: /drift [1-10ig]\");
return 1;
}
 
CMD:teles(playerid)
{
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,\"Teleportok!\",\"Drift 1\\nDrift 2\\nDrift 3\\nDrift 4\\nDrift 5\\nDrift 6\\nDrift 7\\nDrift 8\\nDrift 9\\nDrift 10\",\"Kiválaszt\",\"Mégse\");
return 1;
}
CMD:god(playerid)
{
if(god[playerid] == false)
{
    god[playerid] = true;
    SendClientMessage(playerid,COLOR_GREEN,\"GodMód Bekapcsolva!\");
    SetPlayerHealth(playerid,99999);
    return 1;
}
else if(god[playerid] == true)
{
    SetPlayerHealth(playerid,100);
    god[playerid] = false;
    SendClientMessage(playerid,COLOR_GREEN,\"GodMód Kikapcsolva!\");
    return 1;
}
return 1;
}
CMD:cigi(playerid)
{
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
return 1;
}
CMD:nitro(playerid)
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
SCM(playerid,-1,\"Nitró felszerelve!\");
return 1;
}
CMD:afk(playerid)
{
new nev[MAX_PLAYER_NAME],string[128];
if(afk[playerid]==false)
{
afk[playerid]=true;
SendClientMessage(playerid,COLOR_GREEN,\"AFK-ba Léptél!\");
TogglePlayerControllable(playerid,true);
SetPlayerVirtualWorld(playerid,20);//afkba lépésnél ne találkozzon senkivel,Ne lássa senki
format(string, sizeof(string),\"Rendszer:%s[iD:%s] Afk-ba Lépett!\",nev,playerid);
SendClientMessageToAll(COLOR_GREEN,string);
return 1;
}
else if(afk[playerid]==true)
{
    afk[playerid]=false;
    TogglePlayerControllable(playerid,false);
    SendClientMessage(playerid,COLOR_GREEN,\"Kiléptél AFK-ból!\");
SetPlayerVirtualWorld(playerid,0);
format(string, sizeof(string),\"Rendszer:%s[iD:%s] Kilépett AFK-ból!\",nev,playerid);
SendClientMessageToAll(COLOR_GREEN,string);
    return 1;
}
return 1;
}
CMD:v(playerid,params[])
{
new carid;
if(sscanf(params,\"i\",carid))return SendClientMessage(playerid,COLOR_GREEN,\"Használat:/v <<<Kocsi ID!>>>\");
    if(carid<400)return SendClientMessage(playerid,COLOR_GREEN,\"Minimum ID:400!\");
if(carid>611)return SendClientMessage(playerid,COLOR_GREEN,\"Maximum ID:611!\");
new Float:X1,Float:Y2,Float:Z3;
GetPlayerPos(playerid,X1,Y2,Z3);
CreateVehicle(carid,X1,Y2,Z3,0,0,0,0);
return 1;
}
CMD:skin(playerid,params[])
{
new skinID;
if(sscanf(params,\"i\",skinID))return SendClientMessage(playerid,COLOR_GREEN,\"Használata:/skin <SkinID>\");
if(skinID == 119)return SendClientMessage(playerid,-1,\"Ez a skin levan tiltva!\");
SetPlayerSkin(playerid,skinID);
return 1;
}
CMD:pm(playerid,params[])
{
new kinek;
new uzenet;
new string[128];
if(sscanf(params,\"ui\",kinek,uzenet))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /pm <ID><Üzenet>\");
format(string, sizeof(string),\"Üzenetet Küldte:%s ,Üzenete:%s\",playerid,uzenet);
SendClientMessage(kinek,COLOR_GREEN,string);
return 1;
}
CMD:mycolor(playerid,params[])
{
new colorid;
if(sscanf(params,\"i\",colorid))return SendClientMessage(playerid,COLOR_GREEN,\"Használat: /mycolor [színID]\");
SetPlayerColor(playerid,colorid);
return 1;
}
CMD:ido(playerid,params[])
{
new ido;
if(sscanf(params,\"i\",ido))SendClientMessage(playerid,COLOR_GREEN,\"Használat: /ido >Idõérték<\");
SetPlayerWeather(playerid,ido);
return 1;
}
CMD:javit(playerid)
{
new vehicleid=GetPlayerVehicleID(vehicleid);
    RepairVehicle(vehicleid);
    return 1;
}
//adminrendszer újrairva
CMD:ahelp(playerid)
{
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
SCM(playerid,-1,\"\'/goto\'\'/get\'\'/fagyaszt\'\'/olvaszt\'\'/interior\'\");
SCM(playerid,-1,\"\'/kick\'\'/ban\'\'/fegyver\'\'/virtualvw\'\");
return 1;
}
CMD:goto(playerid,params[])
{
new id;
new Float:x,Float:y,Float:z;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"u\",id))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /goto <ID>\");
GetPlayerPos(id,x,y,z);
SetPlayerPos(playerid,x,y,z);
return 1;
}
CMD:get(playerid,params[])
{
new id;
new Float:x,Float:y,Float:z;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"u\",id))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /get <ID>\");
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(id,x,y,z);
return 1;
}
CMD:fagyaszt(playerid,params[])
{
new kit;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"u\",kit))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /fagyaszt <ID>\");
TogglePlayerControllable(kit,true);
return 1;
}
CMD:olvaszt(playerid,params[])
{
new kit;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"u\",kit))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /olvaszt <ID>\");
TogglePlayerControllable(kit,false);
return 1;
}
CMD:interior(playerid,params[])
{
new id;
new InteriorID;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"ui\",id,InteriorID))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /Interior <PlayerID> <InteriorID>\");
SetPlayerInterior(id,InteriorID);
return 1;
}
CMD:virtualvw(playerid,params[])
{
new id;
new vwid;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"ui\",id,vwid))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /virtualvw <playerID><VirtualID>\");
SetPlayerVirtualWorld(id,vwid);
return 1;
}
CMD:kick(playerid,params[])
{
new indok,id,string[128];
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"ui\",id,indok))return SendClientMessage(playerid,COLOR_GREEN,\"Használat: /kick Playerid Indok\");
format(string, sizeof(string),\"Admin:%s Kickelte %s -t ,Indok:%s\",playerid,id,indok);
SendClientMessageToAll(COLOR_GREEN,string);
Kick(id);
return 1;
}
CMD:ban(playerid,params[])
{
new indok,id,string[128];
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"ui\",id,indok))return SendClientMessage(playerid,COLOR_GREEN,\"Használat: /kick Playerid Indok\");
format(string, sizeof(string),\"Admin:%s bannolta %s -t ,Indok:%s\",playerid,id,indok);
SendClientMessageToAll(COLOR_GREEN,string);
Ban(id);
return 1;
}
CMD:fegyver(playerid,params[])
{
new kinek,fegyverid,loszer;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"uii\",kinek,fegyverid,loszer))return SendClientMessage(playerid,COLOR_GREEN,\"Használat: /fegyverr >Playerid<>FegyverID<>lõszer<\");
GivePlayerWeapon(kinek,fegyverid,loszer);
return 1;
}
CMD:setplayerweather(playerid,params[])
{
new weather;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"i\",weather))return SCM(playerid,-1,\"Használat:/SetPlayerWeather[idõ]\");
SetWeather(weather);
SendClientMessageToAll(-1,\"Idõ megváltoztatva!\");
return 1;
}
CMD:aduty(playerid) //Doesnt need params function
{
    if(PlayerInfo[playerid][Admin] >=1 || IsPlayerAdmin(playerid))
    {
        if (aDuty[playerid] == 0) //Check if player is on duty
        {
            new string[128];
            new Float:x,Float:y,Float:z;
            new Text3D:label = Create3DTextLabel(\"Adminszolgálatban!\", COLOR_RED,x,y,z, 40.0, 0, 0);
            GetPlayerPos(playerid,x,y,z);
            SetPlayerHealth(playerid,999999);
            SetPlayerColor(playerid,COLOR_RED);
            SetPlayerSkin(playerid,294);
            format(string,sizeof(string), \"%s Adminszolgálatba lépett,megõlni tilos!\",GetPlayerNameEx(playerid));
            SendClientMessageToAll(COLOR_RED,string);
            SendClientMessage(playerid,COLOR_RED,\"Adminszoli védelem bekapcsolva!\");
            Attach3DTextLabelToPlayer(label,playerid,0.0, 0.0, 0.7);
            aDuty[playerid] = 1;
        }
        else if (aDuty[playerid] == 1)
        {
            new string[128];
            new Float:x,Float:y,Float:z;
            new Text3D:label = Create3DTextLabel(\"Adminszolgálatban!\", COLOR_RED,x,y,z, 40.0, 0, 0);
            Delete3DTextLabel(label);
            SetPlayerHealth(playerid,100);
            format(string,sizeof(string),\" %s Kilépett adminszolgálatból!\",GetPlayerNameEx(playerid)); //Format string to send to players
            SendClientMessageToAll(COLOR_RED,string); //send players string
            SendClientMessage(playerid, COLOR_RED,\"Adminszoli védelem kikapcsolva\"); //send admin message he is off duty
            aDuty[playerid] = 0;
        }
    }
    else
        SendClientMessage(playerid,COLOR_RED,\"Nem használhatod ezt a parancsot!\"); //Error message to send to players who arent admins
    return 1;
}
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(aDuty[damagedid] != 0 )
{
    SCM(playerid,COLOR_RED,\"Le lettél fagyasztva,Indok:Adminszolgálatost lõtted!\");
    TogglePlayerControllable(playerid,1);
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 3)
{
if(response)
{
   if(listitem==0)
   {
      SetPlayerPos(playerid,-325.1331,1533.0276,75.3594);
      return 1;
   }
   if(listitem==1)
   {
      SetPlayerPos(playerid,2315.8945,1401.4497,42.8203);
      return 1;
   }
   if(listitem==2)
   {
      SetPlayerPos(playerid,1259.4164,-2027.4384,59.4366);
      return 1;
   }
         if(listitem==3)
   {
      SetPlayerPos(playerid,-1058.1448,-1353.2602,129.9056);
      return 1;
   }
   if(listitem==4)
   {
      SetPlayerPos(playerid,2224.5698,1963.1658,31.7796);
      return 1;
   }
   if(listitem==5)
   {
      SetPlayerPos(playerid,1094.2669,2292.7783,10.7970);
      return 1;
   }
   if(listitem==6)
   {
      SetPlayerPos(playerid,-778.7633,2731.8259,45.3426);
      return 1;
   }
   if(listitem==7)
   {
      SetPlayerPos(playerid,-2134.7158,918.3775,79.8515);
      return 1;
   }
   if(listitem==8)
   {
      SetPlayerPos(playerid,-2666.2487,576.9454,14.4612);
      return 1;
   }
   if(listitem==9)
   {
      SetPlayerPos(playerid,-2412.5739,-601.2869,132.5625);
   }
}
}
 
if(dialogid == ReGiStEr)
{
if(response)
{
    new file[128];
    new string[128];
    new name[MAX_PLAYER_NAME];
   GetPlayerName(playerid, name, sizeof(name));
   if(strlen(inputtext) == 0)
   {
      format(string, sizeof string, \"Regisztráció \\n\\nÜdv %s! \\nTe még nem vagy regisztrálva! \\n\\nKérjük regisztrálj.\", name);
      ShowPlayerDialog(playerid, ReGiStEr, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Register\", \"Cancel.\");
      return 0;
   }
   format(file,sizeof(file),\"/tReg/%s.ini\",name);
   if(!fexist(file))
   {
      dini_Create(file);
      dini_IntSet(file,\"Password\", udb_hash(inputtext));
      dini_IntSet(file,\"Score\", GetPlayerScore(playerid));
      dini_IntSet(file,\"Money\", GetPlayerMoney(playerid));
      dini_IntSet(file,\"Deaths\", PlayerInfo[playerid][Deaths]);
       dini_IntSet(file,\"Kills\", PlayerInfo[playerid][Kills]);
      format(string, sizeof string, \"Bejelentkezés \\n\\nÜdv %s! \\nTe regisztrálva vagy! \\n\\nKérjük jelentkezz be.\", name);
      ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Login\", \"Cancel.\");
      PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
      GetPlayerName(playerid, name, sizeof(name));
      printf(\"%s sikeresen regisztrált!\", name);
   }
}
}
if(dialogid == LoGiN)
{
if(response)
{
    new file[128];
    new string[128];
    new PlayerName[24];
   if(strlen(inputtext) == 0)
   {
       GetPlayerName(playerid, PlayerName, sizeof PlayerName);
       format(string, sizeof string, \"Bejelentkezés \\n\\nÜdv %s! \\nTe regisztrálva vagy! \\n\\nKérjük jelentkezz be.\", PlayerName);
      ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Login\", \"Cancel.\");
      return 0;
   }
   new name[MAX_PLAYER_NAME];
   GetPlayerName(playerid, name, sizeof(name));
   format(file,sizeof(file),\"/tReg/%s.ini\",name);
   if(fexist(file))
   {
       new password = dini_Int(file, \"Password\");
          if(udb_hash(inputtext) != password)
      {
          SendClientMessage(playerid, COLOR_RED, \"***Hiba:Nem jó jelszó!\");
          Kick(playerid);
           GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
           printf(\"%s Nem tudott bejelentkezni!\", name);
      }
      else
      {
         IsLogged[playerid] = 1;
         ResetPlayerMoney(playerid);
         SetPlayerScore(playerid, dini_Int(file,\"Score\"));
         GivePlayerMoney(playerid, dini_Int(file,\"Money\"));
         PlayerInfo[playerid][Deaths] = dini_Int(file,\"Deaths\");
         PlayerInfo[playerid][Kills] = dini_Int(file,\"Kills\");
         SendClientMessage(playerid, COLOR_GREEN, \"***Sikeresen be jelentkeztél!\");
         TogglePlayerSpectating(playerid, 0);
      }
   }
}
}
 
return 1;
}
 
AntiDeAMX()
{
new a[][] =
    {
\"Unarmed (Fist)\",
\"Brass K\"
    };
    #pragma unused a
}
forward ruzenet();
public ruzenet()
{
SendClientMessageToAll(0xFFFF00AA,Reklam[random(sizeof(Reklam))]);
return 1;
}
stock GetPlayerNameEx(playerid) //This is stock i made to make Getting players name easier
{
    new Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
    return Name;
}

 
Újabb verzió
 
#include <a_samp>
#include <zcmd>
#include <sscanf>
#include <Dini>
#include <dudb>
#pragma unused strtok
#pragma unused ret_memcpy
#define ReGiStEr 30
#define LoGiN 31
#define COLOR_GREEN 0x00FF00FF
#define COLOR_RED 0xFF0000FF
enum pInfo
{
Deaths,
Admin,
Kills,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
new IsLogged[MAX_PLAYERS];
new aDuty[MAX_PLAYERS];
new uzenettimer;
new Reklam[][]=
{
\"Ha csalót látsz a szerveren,Kérlek jelezd az admin felé!\", //ha tól sok nyugodtan törölj le egy-két sort
\"Tartsd be a szerver szabályzatot\",
\"Ne használj külsõ programot\",
\"Szerver Weboldala:nincs\"
};
//regisztráció rendszer by:Joe torran c,köszönjük neki!
//regisztráció rendszer tárolás
#pragma tabsize 0
//VÁltozók:
new bool:god[MAX_PLAYERS];
new bool:afk[MAX_PLAYERS];
new admintgf;
#define SCM SendClientMessage
forward hostnev();
public hostnev()
{
   new var = random(5);
   switch (var)
   {
     case 0: SendRconCommand(\"hostname Gyere és játsz!\");
     case 1: SendRconCommand(\"hostname CooLeeR Drift szervere\");
 case 2: SendRconCommand(\"hostname Segítõkész adminok!Jófej játékosok!\");
   }
}
//ez a régi Drift Drug mód volt!
main()
{
print(\"\\n---------------------------------------\");
print(\" Szerver Készitõje: CooLeeR A.k.A Zzoli11\");
print(\"---------------------------------------\\n\");
}
public OnGameModeInit()
{
    SetTimer(\"hostnev\",3000,1);
uzenettimer = SetTimer(\"ruzenet\",50000*2,true); //1000 = 1ms | 60000 = 1perc
SetGameModeText(\"CooLeeR Drift\");
print(\"Kocsik Sikeresen Betöltve!\");
AddStaticVehicleEx(429,1244.5918,-2044.0123,59.4385,269.5728,3,8,30);
AddStaticVehicleEx(429,1244.4556,-2039.0112,59.4530,269.5737,3,8,30);
AddStaticVehicleEx(429,1244.3218,-2034.0103,59.4569,269.5735,3,8,30);
AddStaticVehicleEx(429,1244.1880,-2029.0093,59.4598,269.5735,3,8,30);
AddStaticVehicleEx(429,1244.0435,-2024.0083,59.5090,269.5708,3,8,30);
AddStaticVehicleEx(429,1244.4020,-2019.0110,59.4543,269.5735,3,8,30);
AddStaticVehicleEx(429,1244.2681,-2014.0100,59.4581,269.5736,3,8,30);
AddStaticVehicleEx(429,1244.1344,-2009.0090,59.4586,269.5736,3,8,30);
AddStaticVehicleEx(562,1277.2325,-2008.8496,58.6537,90.9820,80,1,30);
AddStaticVehicleEx(562,1277.2898,-2013.8459,58.6799,90.9880,80,1,30);
AddStaticVehicleEx(562,1277.3527,-2018.8459,58.6532,90.9999,80,1,30);
AddStaticVehicleEx(562,1277.1606,-2023.8486,58.6727,91.0445,80,1,30);
AddStaticVehicleEx(562,1277.2394,-2028.8505,58.6903,91.0443,80,1,30);
AddStaticVehicleEx(562,1277.3176,-2033.8517,58.7078,91.0446,80,1,30);
AddStaticVehicleEx(562,1277.5691,-2038.5188,58.7298,89.9342,80,1,30);
AddStaticVehicleEx(562,1277.5576,-2043.5189,58.7753,89.9388,80,1,30);
AddStaticVehicleEx(411,-314.8287,1514.7446,75.0528,1.3532,64,1,30);
AddStaticVehicleEx(411,-317.7801,1515.4036,75.0402,0.2407,64,1,30);
AddStaticVehicleEx(562,-321.1545,1515.1018,75.0316,1.0602,36,1,30);
AddStaticVehicleEx(562,-324.1783,1515.1737,75.0190,359.2409,36,1,30);
AddStaticVehicleEx(603,-327.2997,1514.8605,75.2209,0.4270,32,1,30);
AddStaticVehicleEx(603,-330.2702,1515.1918,75.1976,0.0379,32,1,30);
AddStaticVehicleEx(451,-333.5902,1515.0868,75.0659,358.1462,36,36,30);
AddStaticVehicleEx(451,-336.5558,1515.6045,75.0652,359.4702,36,36,30);
AddStaticVehicleEx(602,-339.7686,1515.3315,75.0475,359.4720,69,1,30);
AddStaticVehicleEx(602,-342.9582,1515.2747,75.0470,0.7727,69,1,30);
AddStaticVehicleEx(602,-1040.8020,-1350.3877,130.0764,104.3700,69,1,30);
AddStaticVehicleEx(429,-1045.5331,-1348.4998,129.9614,97.8369,13,13,30);
AddStaticVehicleEx(562,-1048.5942,-1345.7634,129.9555,98.7577,17,1,30);
AddStaticVehicleEx(411,1091.6051,2298.4656,10.5255,269.1693,123,1,30);
AddStaticVehicleEx(411,1091.4738,2288.5093,10.5334,269.1803,123,1,30);
AddStaticVehicleEx(451,1084.8191,2288.6338,10.4702,268.4966,61,61,30);
AddStaticVehicleEx(451,1085.0681,2298.5449,10.4603,268.4279,61,61,30);
AddStaticVehicleEx(451,-784.5894,2752.4451,45.3542,272.8446,61,61,30);
print(\"Skinek Sikeresen Betöltve!\");
//Skinek:
AddPlayerClass(0,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(1,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(13,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(16,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(18,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(19,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(21,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(22,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(23,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(26,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(27,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(28,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(29,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(30,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(33,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(36,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(46,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(299,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(296,1222.5375,-2036.8712,65.2266,269.1634,0,0,0,0,0,0);
AddPlayerClass(285,1222.8760,-2037.0157,65.2125,282.2510,0,0,0,0,0,0);
AddPlayerClass(286,1222.8760,-2037.0157,65.2125,282.2510,0,0,0,0,0,0);
AddPlayerClass(287,1222.8760,-2037.0157,65.2125,282.2510,0,0,0,0,0,0);
AddPlayerClass(288,1222.8760,-2037.0157,65.2125,282.2510,0,0,0,0,0,0);
AddPlayerClass(102,1222.7469,-2037.1483,65.2266,279.0452,0,0,0,0,0,0);
AddPlayerClass(103,1222.9333,-2036.9647,65.1844,270.4167,0,0,0,0,0,0);
AddPlayerClass(104,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(105,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(106,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(107,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
AddPlayerClass(128,1222.6610,-2036.8990,65.2266,268.2468,0,0,0,0,0,0);
print(\"Objectek Betöltve!\");
return 1;
}
public OnGameModeExit()
{
KillTimer(uzenettimer);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1095.3811,-2036.9301,82.7055);
SetPlayerFacingAngle(playerid,271.5483);
SetPlayerCameraPos(playerid, 1106.181518, -2036.951049, 82.758186);
SetPlayerCameraLookAt(playerid, 1101.183349, -2037.086181, 82.758186);
return 1;
}
public OnPlayerConnect(playerid)
{
aDuty[playerid] = 0;
IsLogged[playerid] = 0;
    new file[128], string[128];
    new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),\"/tReg/%s.ini\",name);
if(!fexist(file))
{
format(string, sizeof string, \"Üdv %s! \\nTe még nem vagy regisztrálva! \\n\\nKérjük regisztrálj.\", name);
ShowPlayerDialog(playerid, ReGiStEr, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Register\", \"Cancel.\");
}
if(fexist(file))
{
format(string, sizeof string, \"Üdv %s! \\nKérjük jelentkezz be! \\n\\nIrd be a jelszódat.\", name);
ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Login\", \"Cancel.\");
}
 
SendClientMessage(playerid,COLOR_GREEN,\"Üdvözöllek CooLeeR Drift Szerverén!\");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    aDuty[playerid] = 0;
    new file[128];
    new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),\"/tReg/%s.ini\",name);
if(fexist(file))
{
    dini_IntSet(file,\"Score\", GetPlayerScore(playerid));
    dini_IntSet(file,\"Money\", GetPlayerMoney(playerid));
    dini_IntSet(file,\"Deaths\", PlayerInfo[playerid][Deaths]);
    dini_IntSet(file,\"Adminszint\", PlayerInfo[playerid][Admin]);
    dini_IntSet(file,\"Kills\", PlayerInfo[playerid][Kills]);
}
IsLogged[playerid] = 0;
return 1;
}
public OnPlayerDeath(playerid, killerid)
{
PlayerInfo[playerid][Deaths] ++;
PlayerInfo[killerid][Kills] ++;
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == KEY_SUBMISSION)
    {
        if(IsPlayerInAnyVehicle(playerid))
{
           RepairVehicle(GetPlayerVehicleID(playerid));
        }
    }
}
public OnPlayerSpawn(playerid)
{
    AntiDeAMX();
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
//alap parancs
CMD:harcstilus(playerid,params[])
{
ShowPlayerDialog(playerid,35,DIALOG_STYLE_LIST,\"HarcStilus Választó\",\"Elbow\\nBox\\nKungfu\\nKneeHad\\nGrabKick\\nRandom\",\"Kiválaszt\",\"Mégse\");
return 1;
}
CMD:ajto(playerid,params[])
{
    if (IsPlayerInAnyVehicle(playerid))
    {
SCM(playerid,COLOR_GREEN,\"Nem ülsz a kocsiban!\");
}
if(!strcmp(params, \"nyit\", true))
    {
        new i;
        for(i=0;i<MAX_PLAYERS;i++)
SCM(playerid,COLOR_GREEN,\"Az ajtó kinyitva!\");
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,1);
}
if(!strcmp(params,\"zár\",true))
{
        new i;
        for(i=0;i<MAX_PLAYERS;i++)
    SCM(playerid,COLOR_GREEN,\"Az ajtó bezárva!\");
    SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,0);
}
return 1;
}
CMD:admintgf(playerid)
{
if(admintgf == 0)
{
    SCM(playerid,COLOR_RED,\"Adminfelvédel jelenleg nincs!\");
}
else
{
SCM(playerid,COLOR_RED,\"Admintgf jelenleg van!\");
}
return 1;
}
CMD:credits(playerid)
{
SCM(playerid,COLOR_GREEN,\"Szerver Készítõje:CooLeeR!\");
return 1;
}
CMD:neon(playerid)
{
ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, \"Válassz neon színt\", \"Kék\\nPiros\\nZöld\\nFehér\\nRózsaszín\\nSárga\\nRendõr fény\\nInterior Fény\\nHátsó Neon\\nElsõ Neon\\nTetõ Neon\\nMinden Neon törlése\", \"Kiválaszt\", \"Kilépés\");
return 1;
}
CMD:health(playerid,params[])
{
new hp;
if(sscanf(params,\"i\",hp))return SCM(playerid,COLOR_GREEN,\"Használat:/health >Érték<\");
if(hp<1 || hp>100)return SCM(playerid,COLOR_GREEN,\"ne legyél mohó,az élet értéke minimum 1 maximum 100!\");
SetPlayerHealth(playerid,hp);
SCM(playerid,COLOR_GREEN,\"Élet feltöltve!\");
return 1;
}
CMD:armour(playerid,params[])
{
new armor;
if(sscanf(params,\"i\",armor))return SCM(playerid,COLOR_GREEN,\"Használat:/armour >Érték<\");
if(armor<1 || armor>100)return SCM(playerid,COLOR_GREEN,\"ne legyél mohó,a páncél értéke minimum 1 maximum 100!\");
SetPlayerArmour(playerid,armor);
SCM(playerid,COLOR_GREEN,\"Élet feltöltve!\");
return 1;
}
CMD:help(playerid,params[])
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,\"parancsok\",\"/tele a teleportért!\\n/cars a Kocsikért!\",\"Rendben\",\"\");
    return 1;
}
CMD:tele(playerid)
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,\"Teleportok\",\"/drift 1-10ig!\\nDialogos Teleport:/teles\",\"Rendben\",\"\");
return 1;
}
CMD:drift(playerid,params[])
{
   if(isnull(params)) return SendClientMessage(playerid, -1, \"Használat: /kapu [nyit / zár]\");
   if(!strcmp(params, \"1\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,-325.1331,1533.0276,75.3594);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-1re!\");
}else
{
   SetVehiclePos(GetPlayerVehicleID(playerid),-325.1331,1533.0276,75.3594);
}
      }
      else if(!strcmp(params, \"2\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,2315.8945,1401.4497,42.8203);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-2re!\");
}else
{
   SetVehiclePos(GetPlayerVehicleID(playerid),2315.8945,1401.4497,42.8203);
}
      }
      else if(!strcmp(params, \"3\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid,1259.4164,-2027.4384,59.4366);
SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-3ra!\");
}else
{
SetVehiclePos(GetPlayerVehicleID(playerid),1259.4164,-2027.4384,59.4366);
}
      }
      else if(!strcmp(params, \"4\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,-1058.1448,-1353.2602,129.9056);
   SetPlayerFacingAngle(playerid,71.4104);
   SetPlayerInterior(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál a Drift-4re!\");
}else
{
   SetVehiclePos(GetPlayerVehicleID(playerid),-1058.1448,-1353.2602,129.9056);
}
      }
      else if(!strcmp(params, \"5\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,2224.5698,1963.1658,31.7796);
   SetPlayerFacingAngle(playerid,270.6689);
   SetPlayerInterior(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-5re!\");
}else
{
   SetVehiclePos(GetPlayerVehicleID(playerid),2224.5698,1963.1658,31.7796);
}
      }
      else if(!strcmp(params, \"6\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,1094.2669,2292.7783,10.7970);
   SetPlayerInterior(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-6ra!\");
}else
{
  SetVehiclePos(GetPlayerVehicleID(playerid),1094.2669,2292.7783,10.7970);
}
      }
      else if(!strcmp(params, \"7\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,-778.7633,2731.8259,45.3426);
   SetPlayerInterior(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-7re!\");
}else
{
  SetVehiclePos(GetPlayerVehicleID(playerid),-778.7633,2731.8259,45.3426);
}
      }
      else if(!strcmp(params, \"8\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
   SetPlayerPos(playerid,-2134.7158,918.3775,79.8515);
   SetPlayerInterior(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Dirft-8ra!\");
}else
{
    SetVehiclePos(GetPlayerVehicleID(playerid),-2134.7158,918.3775,79.8515);
}
      }
      else if(!strcmp(params, \"9\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-2666.2487,576.9454,14.4612);
    SetPlayerInterior(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"Elteleportáltál Drift-9-re!\");
}else
{
    SetVehiclePos(GetPlayerVehicleID(playerid),-2666.2487,576.9454,14.4612);
}
      }
      else if(!strcmp(params, \"10\", true))
    {
if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid,-2412.5739,-601.2869,132.5625);
    SetPlayerInterior(playerid,0);
}else
{
    SetVehiclePos(GetPlayerVehicleID(playerid),-2412.5739,-601.2869,132.5625);
}
      }
       else SendClientMessage(playerid, -1, \"Használat: /drift [1-10ig]\");
return 1;
}
 
CMD:teles(playerid)
{
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,\"Teleportok!\",\"Drift 1\\nDrift 2\\nDrift 3\\nDrift 4\\nDrift 5\\nDrift 6\\nDrift 7\\nDrift 8\\nDrift 9\\nDrift 10\",\"Kiválaszt\",\"Mégse\");
return 1;
}
CMD:god(playerid)
{
if(god[playerid] == false)
{
    god[playerid] = true;
    SendClientMessage(playerid,COLOR_GREEN,\"GodMód Bekapcsolva!\");
    SetPlayerHealth(playerid,99999);
    return 1;
}
else if(god[playerid] == true)
{
    SetPlayerHealth(playerid,100);
    god[playerid] = false;
    SendClientMessage(playerid,COLOR_GREEN,\"GodMód Kikapcsolva!\");
    return 1;
}
return 1;
}
CMD:cigi(playerid)
{
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
return 1;
}
CMD:nitro(playerid)
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
SCM(playerid,-1,\"Nitró felszerelve!\");
return 1;
}
CMD:afk(playerid)
{
new nev[MAX_PLAYER_NAME],string[128];
if(afk[playerid]==false)
{
afk[playerid]=true;
SendClientMessage(playerid,COLOR_GREEN,\"AFK-ba Léptél!\");
TogglePlayerControllable(playerid,true);
SetPlayerVirtualWorld(playerid,20);//afkba lépésnél ne találkozzon senkivel,Ne lássa senki
format(string, sizeof(string),\"Rendszer:%s[iD:%s] Afk-ba Lépett!\",nev,playerid);
SendClientMessageToAll(COLOR_GREEN,string);
return 1;
}
else if(afk[playerid]==true)
{
    afk[playerid]=false;
    TogglePlayerControllable(playerid,false);
    SendClientMessage(playerid,COLOR_GREEN,\"Kiléptél AFK-ból!\");
SetPlayerVirtualWorld(playerid,0);
format(string, sizeof(string),\"Rendszer:%s[iD:%s] Kilépett AFK-ból!\",nev,playerid);
SendClientMessageToAll(COLOR_GREEN,string);
    return 1;
}
return 1;
}
CMD:v(playerid,params[])
{
new carid;
if(sscanf(params,\"i\",carid))return SendClientMessage(playerid,COLOR_GREEN,\"Használat:/v <<<Kocsi ID!>>>\");
    if(carid<400)return SendClientMessage(playerid,COLOR_GREEN,\"Minimum ID:400!\");
if(carid>611)return SendClientMessage(playerid,COLOR_GREEN,\"Maximum ID:611!\");
new Float:X1,Float:Y2,Float:Z3;
GetPlayerPos(playerid,X1,Y2,Z3);
CreateVehicle(carid,X1,Y2,Z3,0,0,0,0);
return 1;
}
CMD:skin(playerid,params[])
{
new skinID;
if(sscanf(params,\"i\",skinID))return SendClientMessage(playerid,COLOR_GREEN,\"Használata:/skin <SkinID>\");
if(skinID == 119)return SendClientMessage(playerid,-1,\"Ez a skin levan tiltva!\");
SetPlayerSkin(playerid,skinID);
return 1;
}
CMD:pm(playerid,params[])
{
new kinek;
new uzenet;
new string[128];
if(sscanf(params,\"ui\",kinek,uzenet))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /pm <ID><Üzenet>\");
format(string, sizeof(string),\"Üzenetet Küldte:%s ,Üzenete:%s\",playerid,uzenet);
SendClientMessage(kinek,COLOR_GREEN,string);
return 1;
}
CMD:mycolor(playerid,params[])
{
new colorid;
if(sscanf(params,\"i\",colorid))return SendClientMessage(playerid,COLOR_GREEN,\"Használat: /mycolor [színID]\");
SetPlayerColor(playerid,colorid);
return 1;
}
CMD:ido(playerid,params[])
{
new ido;
if(sscanf(params,\"i\",ido))SendClientMessage(playerid,COLOR_GREEN,\"Használat: /ido >Idõérték<\");
SetPlayerWeather(playerid,ido);
return 1;
}
CMD:javit(playerid)
{
new vehicleid=GetPlayerVehicleID(vehicleid);
    RepairVehicle(vehicleid);
    return 1;
}
//adminrendszer újrairva
CMD:atgf(playerid,params[])
{
if(sscanf(params,\"i\",admintgf))return SCM(playerid,COLOR_GREEN,\"Használat: /atgf [on/off]\");
    if(!strcmp(params, \"on\", true))
    {
admintgf = 1;
SCM(playerid,COLOR_GREEN,\"AdminTGF bekapcsolva!\");
    SendClientMessageToAll(COLOR_GREEN,\"AdminTagFelvétel Van!\");
      }
    else if(!strcmp(params, \"off\", true))
{
    admintgf = 0;
    SCM(playerid,COLOR_GREEN,\"AdminTGF kikapcsolva!\");
    SendClientMessageToAll(COLOR_GREEN,\"AdminTagFelvétel Nincs!\");
}
      return 1;
}
CMD:ahelp(playerid)
{
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
SCM(playerid,-1,\"\'/goto\'\'/get\'\'/fagyaszt\'\'/olvaszt\'\'/interior\'\");
SCM(playerid,-1,\"\'/kick\'\'/ban\'\'/fegyver\'\'/virtualvw\'\");
return 1;
}
CMD:goto(playerid,params[])
{
new id;
new Float:x,Float:y,Float:z;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"u\",id))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /goto <ID>\");
GetPlayerPos(id,x,y,z);
SetPlayerPos(playerid,x,y,z);
return 1;
}
CMD:get(playerid,params[])
{
new id;
new Float:x,Float:y,Float:z;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"u\",id))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /get <ID>\");
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(id,x,y,z);
return 1;
}
CMD:fagyaszt(playerid,params[])
{
new kit;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"u\",kit))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /fagyaszt <ID>\");
TogglePlayerControllable(kit,true);
return 1;
}
CMD:olvaszt(playerid,params[])
{
new kit;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"u\",kit))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /olvaszt <ID>\");
TogglePlayerControllable(kit,false);
return 1;
}
CMD:interior(playerid,params[])
{
new id;
new InteriorID;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"ui\",id,InteriorID))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /Interior <PlayerID> <InteriorID>\");
SetPlayerInterior(id,InteriorID);
return 1;
}
CMD:virtualvw(playerid,params[])
{
new id;
new vwid;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"ui\",id,vwid))return SendClientMessage(playerid,COLOR_GREEN,\"Használata: /virtualvw <playerID><VirtualID>\");
SetPlayerVirtualWorld(id,vwid);
return 1;
}
CMD:kick(playerid,params[])
{
new indok,id,string[128];
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"ui\",id,indok))return SendClientMessage(playerid,COLOR_GREEN,\"Használat: /kick Playerid Indok\");
format(string, sizeof(string),\"Admin:%s Kickelte %s -t ,Indok:%s\",playerid,id,indok);
SendClientMessageToAll(COLOR_GREEN,string);
Kick(id);
return 1;
}
CMD:ban(playerid,params[])
{
new indok,id,string[128];
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"ui\",id,indok))return SendClientMessage(playerid,COLOR_GREEN,\"Használat: /kick Playerid Indok\");
format(string, sizeof(string),\"Admin:%s bannolta %s -t ,Indok:%s\",playerid,id,indok);
SendClientMessageToAll(COLOR_GREEN,string);
Ban(id);
return 1;
}
CMD:fegyver(playerid,params[])
{
new kinek,fegyverid,loszer;
if(fegyverid==35 || fegyverid==36 || fegyverid==38)return SCM(playerid,COLOR_GREEN,\"Ez a fegyver tiltott!\");
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"uii\",kinek,fegyverid,loszer))return SendClientMessage(playerid,COLOR_GREEN,\"Használat: /fegyverr >Playerid<>FegyverID<>lõszer<\");
GivePlayerWeapon(kinek,fegyverid,loszer);
return 1;
}
CMD:setplayerweather(playerid,params[])
{
new weather;
if(!IsPlayerAdmin(playerid) || PlayerInfo[playerid][Admin]<0)return SCM(playerid,-1,\"Nem használhatod ezt a parancsot!\");
if(sscanf(params,\"i\",weather))return SCM(playerid,-1,\"Használat:/SetPlayerWeather[idõ]\");
SetWeather(weather);
SendClientMessageToAll(-1,\"Idõ megváltoztatva!\");
return 1;
}
CMD:aduty(playerid) //Doesnt need params function
{
    if(PlayerInfo[playerid][Admin] >=1 || IsPlayerAdmin(playerid))
    {
        if (aDuty[playerid] == 0) //Check if player is on duty
        {
            new string[128];
            new Float:x,Float:y,Float:z;
            new Text3D:label = Create3DTextLabel(\"Adminszolgálatban!\", COLOR_RED,x,y,z, 40.0, 0, 0);
            GetPlayerPos(playerid,x,y,z);
            SetPlayerHealth(playerid,999999);
            SetPlayerColor(playerid,COLOR_RED);
            SetPlayerSkin(playerid,294);
            format(string,sizeof(string), \"%s Adminszolgálatba lépett,megõlni tilos!\",GetPlayerNameEx(playerid));
            SendClientMessageToAll(COLOR_RED,string);
            SendClientMessage(playerid,COLOR_RED,\"Adminszoli védelem bekapcsolva!\");
            Attach3DTextLabelToPlayer(label,playerid,0.0, 0.0, 0.7);
            aDuty[playerid] = 1;
        }
        else if (aDuty[playerid] == 1)
        {
            new string[128];
            new Float:x,Float:y,Float:z;
            new Text3D:label = Create3DTextLabel(\"Adminszolgálatban!\", COLOR_RED,x,y,z, 40.0, 0, 0);
            Delete3DTextLabel(label);
            SetPlayerHealth(playerid,100);
            format(string,sizeof(string),\" %s Kilépett adminszolgálatból!\",GetPlayerNameEx(playerid)); //Format string to send to players
            SendClientMessageToAll(COLOR_RED,string); //send players string
            SendClientMessage(playerid, COLOR_RED,\"Adminszoli védelem kikapcsolva\"); //send admin message he is off duty
            aDuty[playerid] = 0;
        }
    }
    else
        SendClientMessage(playerid,COLOR_RED,\"Nem használhatod ezt a parancsot!\"); //Error message to send to players who arent admins
    return 1;
}
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(aDuty[damagedid] != 0 )
{
    SCM(playerid,COLOR_RED,\"Le lettél fagyasztva,Indok:Adminszolgálatost lõtted!\");
    TogglePlayerControllable(playerid,1);
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 3)
{
if(response)
{
   if(listitem==0)
   {
      SetPlayerPos(playerid,-325.1331,1533.0276,75.3594);
      return 1;
   }
   if(listitem==1)
   {
      SetPlayerPos(playerid,2315.8945,1401.4497,42.8203);
      return 1;
   }
   if(listitem==2)
   {
      SetPlayerPos(playerid,1259.4164,-2027.4384,59.4366);
      return 1;
   }
         if(listitem==3)
   {
      SetPlayerPos(playerid,-1058.1448,-1353.2602,129.9056);
      return 1;
   }
   if(listitem==4)
   {
      SetPlayerPos(playerid,2224.5698,1963.1658,31.7796);
      return 1;
   }
   if(listitem==5)
   {
      SetPlayerPos(playerid,1094.2669,2292.7783,10.7970);
      return 1;
   }
   if(listitem==6)
   {
      SetPlayerPos(playerid,-778.7633,2731.8259,45.3426);
      return 1;
   }
   if(listitem==7)
   {
      SetPlayerPos(playerid,-2134.7158,918.3775,79.8515);
      return 1;
   }
   if(listitem==8)
   {
      SetPlayerPos(playerid,-2666.2487,576.9454,14.4612);
      return 1;
   }
   if(listitem==9)
   {
      SetPlayerPos(playerid,-2412.5739,-601.2869,132.5625);
   }
}
}
 
if(dialogid == ReGiStEr)
{
if(response)
{
    new file[128];
    new string[128];
    new name[MAX_PLAYER_NAME];
   GetPlayerName(playerid, name, sizeof(name));
   if(strlen(inputtext) == 0)
   {
      format(string, sizeof string, \"Regisztráció \\n\\nÜdv %s! \\nTe még nem vagy regisztrálva! \\n\\nKérjük regisztrálj.\", name);
      ShowPlayerDialog(playerid, ReGiStEr, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Register\", \"Cancel.\");
      return 0;
   }
   format(file,sizeof(file),\"/tReg/%s.ini\",name);
   if(!fexist(file))
   {
      dini_Create(file);
      dini_IntSet(file,\"Password\", udb_hash(inputtext));
      dini_IntSet(file,\"Score\", GetPlayerScore(playerid));
      dini_IntSet(file,\"Money\", GetPlayerMoney(playerid));
      dini_IntSet(file,\"Deaths\", PlayerInfo[playerid][Deaths]);
       dini_IntSet(file,\"Kills\", PlayerInfo[playerid][Kills]);
      format(string, sizeof string, \"Bejelentkezés \\n\\nÜdv %s! \\nTe regisztrálva vagy! \\n\\nKérjük jelentkezz be.\", name);
      ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Login\", \"Cancel.\");
      PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
      GetPlayerName(playerid, name, sizeof(name));
      printf(\"%s sikeresen regisztrált!\", name);
   }
}
}
if(dialogid == LoGiN)
{
if(response)
{
    new file[128];
    new string[128];
    new PlayerName[24];
   if(strlen(inputtext) == 0)
   {
       GetPlayerName(playerid, PlayerName, sizeof PlayerName);
       format(string, sizeof string, \"Bejelentkezés \\n\\nÜdv %s! \\nTe regisztrálva vagy! \\n\\nKérjük jelentkezz be.\", PlayerName);
      ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Login\", \"Cancel.\");
      return 0;
   }
   new name[MAX_PLAYER_NAME];
   GetPlayerName(playerid, name, sizeof(name));
   format(file,sizeof(file),\"/tReg/%s.ini\",name);
   if(fexist(file))
   {
       new password = dini_Int(file, \"Password\");
          if(udb_hash(inputtext) != password)
      {
          SendClientMessage(playerid, COLOR_RED, \"***Hiba:Nem jó jelszó!\");
          Kick(playerid);
           GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
           printf(\"%s Nem tudott bejelentkezni!\", name);
      }
      else
      {
         IsLogged[playerid] = 1;
         ResetPlayerMoney(playerid);
         SetPlayerScore(playerid, dini_Int(file,\"Score\"));
         GivePlayerMoney(playerid, dini_Int(file,\"Money\"));
         PlayerInfo[playerid][Deaths] = dini_Int(file,\"Deaths\");
         PlayerInfo[playerid][Kills] = dini_Int(file,\"Kills\");
         SendClientMessage(playerid, COLOR_GREEN, \"***Sikeresen be jelentkeztél!\");
         TogglePlayerSpectating(playerid, 0);
      }
   }
}
}
if(dialogid == 8899)
{
if(response)
{
   if(listitem == 0)
   {
      SetPVarInt(playerid, \"Status\", 1);
               SetPVarInt(playerid, \"Neon\", CreateObject(18648,0,0,0,0,0,0));
                  SetPVarInt(playerid, \"Neon1\", CreateObject(18648,0,0,0,0,0,0));
                SetPVarInt(playerid, \"hatsonk\", CreateObject(18648,0,0,0,0,0,0,90));
                SetPVarInt(playerid, \"elsonk\", CreateObject(18648,0,0,0,0,0,0,80));
                AttachObjectToVehicle(GetPVarInt(playerid, \"elsonk\"), GetPlayerVehicleID(playerid), 0.000000, 2.499999, -0.400000, 0.000000, 4.000000, 88.000000 );
      AttachObjectToVehicle(GetPVarInt(playerid, \"hatsonk\"), GetPlayerVehicleID(playerid),  -0.0, -2.0, -0.65, 0, 0.0, 88.000000);
      AttachObjectToVehicle(GetPVarInt(playerid, \"Neon\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
               AttachObjectToVehicle(GetPVarInt(playerid, \"Neon1\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, 0xFFFFFFAA, \"A kért neon felszerelve\");
   }
   if(listitem == 1)
   {
      SetPVarInt(playerid, \"Status\", 1);
            SetPVarInt(playerid, \"neon2\", CreateObject(18647,0,0,0,0,0,0));
            SetPVarInt(playerid, \"neon3\", CreateObject(18647,0,0,0,0,0,0));
                SetPVarInt(playerid, \"hatsonp\", CreateObject(18647,0,0,0,0,0,0,80));
                SetPVarInt(playerid, \"elsonp\", CreateObject(18647,0,0,0,0,0,0,80));
                AttachObjectToVehicle(GetPVarInt(playerid, \"elsonp\"), GetPlayerVehicleID(playerid), 0.000000, 2.499999, -0.400000, 0.000000, 4.000000, 88.000000 );
      AttachObjectToVehicle(GetPVarInt(playerid, \"hatsonp\"), GetPlayerVehicleID(playerid),  -0.0, -2.0, -0.65, 0, 0.0, 88.000000);
      AttachObjectToVehicle(GetPVarInt(playerid, \"neon2\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, \"neon3\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0xFFFFFFAA, \"A kért neon felszerelve\");
   }
   if(listitem == 2)
   {
      SetPVarInt(playerid, \"Status\", 1);
            SetPVarInt(playerid, \"neon4\", CreateObject(18649,0,0,0,0,0,0));
            SetPVarInt(playerid, \"neon5\", CreateObject(18649,0,0,0,0,0,0));
                SetPVarInt(playerid, \"elsonz\", CreateObject(18649,0,0,0,0,0,0,80));
                SetPVarInt(playerid, \"hatsonz\", CreateObject(18649,0,0,0,0,0,0,80));
                AttachObjectToVehicle(GetPVarInt(playerid, \"hatsonz\"), GetPlayerVehicleID(playerid), -0.0, -2.0, -0.65, 0, 0.0, 88.000000);
      AttachObjectToVehicle(GetPVarInt(playerid, \"elsonz\"), GetPlayerVehicleID(playerid), 0.000000, 2.499999, -0.400000, 0.000000, 4.000000, 88.000000 );
      AttachObjectToVehicle(GetPVarInt(playerid, \"neon4\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, \"neon5\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0xFFFFFFAA, \"A kért neon felszerelve\");
          }
   if(listitem == 3)
   {
      SetPVarInt(playerid, \"Status\", 1);
                SetPVarInt(playerid, \"neon6\", CreateObject(18652,0,0,0,0,0,0));
            SetPVarInt(playerid, \"neon7\", CreateObject(18652,0,0,0,0,0,0));
                SetPVarInt(playerid, \"hatsonf\", CreateObject(18652,0,0,0,0,0,0,80));
                SetPVarInt(playerid, \"elsonf\", CreateObject(18652,0,0,0,0,0,0,80));
        AttachObjectToVehicle(GetPVarInt(playerid, \"elsonf\"), GetPlayerVehicleID(playerid), 0.000000, 2.499999, -0.400000, 0.000000, 4.000000, 88.000000 );
      AttachObjectToVehicle(GetPVarInt(playerid, \"hatsonf\"), GetPlayerVehicleID(playerid),  -0.0, -2.0, -0.65, 0, 0.0, 88.000000);
      AttachObjectToVehicle(GetPVarInt(playerid, \"neon6\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, \"neon7\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0xFFFFFFAA, \"A kért neon felszerelve\");
   }
   if(listitem == 4)
   {
      SetPVarInt(playerid, \"Status\", 1);
            SetPVarInt(playerid, \"neon8\", CreateObject(18651,0,0,0,0,0,0));
            SetPVarInt(playerid, \"neon9\", CreateObject(18651,0,0,0,0,0,0));
                SetPVarInt(playerid, \"hatsonr\", CreateObject(18651,0,0,0,0,0,0,80));
                SetPVarInt(playerid, \"elsonr\", CreateObject(18651,0,0,0,0,0,0,80));
        AttachObjectToVehicle(GetPVarInt(playerid, \"elsonr\"), GetPlayerVehicleID(playerid), 0.000000, 2.499999, -0.400000, 0.000000, 4.000000, 88.000000 );
      AttachObjectToVehicle(GetPVarInt(playerid, \"hatsonr\"), GetPlayerVehicleID(playerid),  -0.0, -2.0, -0.65, 0, 0.0, 88.000000);
      AttachObjectToVehicle(GetPVarInt(playerid, \"neon8\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, \"neon9\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0xFFFFFFAA, \"A kért neon felszerelve\");
   }
   if(listitem == 5)
   {
      SetPVarInt(playerid, \"Status\", 1);
            SetPVarInt(playerid, \"neon10\", CreateObject(18650,0,0,0,0,0,0));
            SetPVarInt(playerid, \"neon11\", CreateObject(18650,0,0,0,0,0,0));
                SetPVarInt(playerid, \"hatsons\", CreateObject(18650,0,0,0,0,0,0,80));
                SetPVarInt(playerid, \"elsons\", CreateObject(18650,0,0,0,0,0,0,80));
                AttachObjectToVehicle(GetPVarInt(playerid, \"elsons\"), GetPlayerVehicleID(playerid), 0.000000, 2.499999, -0.400000, 0.000000, 4.000000, 88.000000 );
      AttachObjectToVehicle(GetPVarInt(playerid, \"hatsons\"), GetPlayerVehicleID(playerid),  -0.0, -2.0, -0.65, 0, 0.0, 88.000000);
      AttachObjectToVehicle(GetPVarInt(playerid, \"neon10\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, \"neon11\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0xFFFFFFAA, \"A kért neon felszerelve\");
   }
   if(listitem == 6)
   {
      SetPVarInt(playerid, \"Status\", 1);
            SetPVarInt(playerid, \"neon12\", CreateObject(18646,0,0,0,0,0,0));
            SetPVarInt(playerid, \"neon13\", CreateObject(18646,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, \"neon12\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, \"neon13\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0xFFFFFFAA, \"A kért neon felszerelve\");
          }
           if(listitem == 7)
   {
      SetPVarInt(playerid, \"Status\", 1);
            SetPVarInt(playerid, \"interior\", CreateObject(18646,0,0,0,0,0,0));
            SetPVarInt(playerid, \"interior1\", CreateObject(18646,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, \"interior\"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0);
            AttachObjectToVehicle(GetPVarInt(playerid, \"interior1\"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0);
            SendClientMessage(playerid, 0xFFFFFFAA, \"Interior fény telepítve\");
   }
             if(listitem == 8)
   {
      SetPVarInt(playerid, \"Status\", 1);
            SetPVarInt(playerid, \"back\", CreateObject(18646,0,0,0,0,0,0));
            SetPVarInt(playerid, \"back1\", CreateObject(18646,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, \"back\"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0);
            AttachObjectToVehicle(GetPVarInt(playerid, \"back1\"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0);
            SendClientMessage(playerid, 0xFFFFFFAA, \"Hátsó neon telepítve\");
   }
   if(listitem == 9)
   {
      SetPVarInt(playerid, \"Status\", 1);
            SetPVarInt(playerid, \"front\", CreateObject(18646,0,0,0,0,0,0));
            SetPVarInt(playerid, \"front1\", CreateObject(18646,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, \"front\"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
            AttachObjectToVehicle(GetPVarInt(playerid, \"front1\"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
            SendClientMessage(playerid, 0xFFFFFFAA, \"Elsõ neon telepítve\");
   }
   if(listitem == 10)
   {
      SetPVarInt(playerid, \"Status\", 1);
            SetPVarInt(playerid, \"undercover\", CreateObject(18646,0,0,0,0,0,0));
            SetPVarInt(playerid, \"undercover1\", CreateObject(18646,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, \"undercover\"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
            AttachObjectToVehicle(GetPVarInt(playerid, \"undercover1\"), GetPlayerVehicleID(playerid), 0.5, -0.2, 0.8, 2.0, 2.0, 3.0);
            SendClientMessage(playerid, 0xFFFFFFAA, \"Tetõ fény telepítve\");
   }
   if(listitem == 11)
   {
            DestroyObject(GetPVarInt(playerid, \"neon\"));
            DeletePVar(playerid, \"Status\");
            DestroyObject(GetPVarInt(playerid, \"neon1\"));
            DeletePVar(playerid, \"Status\");
            DestroyObject(GetPVarInt(playerid, \"neon2\"));
            DeletePVar(playerid, \"Status\");
            DestroyObject(GetPVarInt(playerid, \"neon3\"));
            DeletePVar(playerid, \"Status\");
            DestroyObject(GetPVarInt(playerid, \"neon4\"));
            DeletePVar(playerid, \"Status\");
            DestroyObject(GetPVarInt(playerid, \"neon5\"));
      DeletePVar(playerid, \"Status\");
            DestroyObject(GetPVarI
« Utoljára szerkesztve: 2012. augusztus 14. - 10:40:30 írta DrAkE »

Drift GM
« Válasz #1 Dátum: 2012. augusztus 12. - 23:57:42 »
0 Show voters
nemrosz :D

Nem elérhető shadee

  • 1073
    • Profil megtekintése
Drift GM
« Válasz #2 Dátum: 2012. augusztus 13. - 04:06:26 »
0 Show voters
tegnap este kicsit editeltem,de ma még nem majd most  :thumbsup:
csak nem tudom hogy mit rakjak bele :D
újabb verzió elérhetõ
 
Idézetet írta: Striker date=1344808662\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"26039\" data-ipsquote-contentclass=\"forums_Topic
nemrosz :D
 
kösz :D
« Utoljára szerkesztve: 2012. augusztus 13. - 07:33:48 írta shadee »

Drift GM
« Válasz #3 Dátum: 2012. augusztus 13. - 11:51:15 »
0 Show voters
nem rossz :D

Nem elérhető Spedy

  • 227
    • Profil megtekintése
Drift GM
« Válasz #4 Dátum: 2012. augusztus 13. - 14:53:27 »
0 Show voters
Jó lett!  :thumbsup:

Nem elérhető shadee

  • 1073
    • Profil megtekintése
Drift GM
« Válasz #5 Dátum: 2012. augusztus 13. - 17:56:19 »
0 Show voters
wat.$\" post=\"326263\" timestamp=\"1344851475\"]
nem rossz :D
 
[/quote]
köszi,OFF:pmet kapsz 1 perc múlva,olvasd el :D
 

Jó lett!  :thumbsup:
 
[/quote]
köszi

Drift GM
« Válasz #6 Dátum: 2012. augusztus 14. - 11:31:01 »
0 Show voters
Rosszat csináltam??? :O xd

Nem elérhető Neon

  • 300
    • Profil megtekintése
Drift GM
« Válasz #7 Dátum: 2012. augusztus 15. - 13:42:36 »
0 Show voters
Jó lett grat megy a + :thumbsup:

Nem elérhető shadee

  • 1073
    • Profil megtekintése
Drift GM
« Válasz #8 Dátum: 2012. augusztus 15. - 15:08:03 »
0 Show voters
Idézetet írta: Neon date=1345030956\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"26039\" data-ipsquote-contentclass=\"forums_Topic
Jó lett grat megy a + :thumbsup:
 
kösz

Nem elérhető D4N13L

  • 348
    • Profil megtekintése
Drift GM
« Válasz #9 Dátum: 2012. augusztus 15. - 15:20:20 »
0 Show voters
Nem rossz, kifejezetten jó! Tetszik! Ment a +!

Drift GM
« Válasz #10 Dátum: 2012. augusztus 16. - 11:42:58 »
0 Show voters
Egész jó :D

Nem elérhető shadee

  • 1073
    • Profil megtekintése
Drift GM
« Válasz #11 Dátum: 2012. szeptember 09. - 11:45:00 »
0 Show voters
Köszönöm!

Nem elérhető NASGOL

  • 154
    • Profil megtekintése
Drift GM
« Válasz #12 Dátum: 2012. szeptember 11. - 18:44:09 »
0 Show voters
Jó kis mód, megy a +!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal