Szerző Téma: Compizni akartam a ladmint és ...  (Megtekintve 886 alkalommal)

Nem elérhető pisti525

  • 906
  • One Shot, One Kill
    • Profil megtekintése
Compizni akartam a ladmint és ...
« Dátum: 2013. április 01. - 21:48:35 »
0 Show voters
Sziasztok!
Copmizni akartam a ladmin magyar verzióját és ezt dobta ki :
 
C:\\Users\\Pisti\\Desktop\\Kyra\\filterscripts\\ladmin.pwn(1458) : error 017: undefined symbol \"dcmd_spawn\"
C:\\Users\\Pisti\\Desktop\\Kyra\\filterscripts\\ladmin.pwn(1456) : warning 203: symbol is never used: \"playerid\"
C:\\Users\\Pisti\\Desktop\\Kyra\\filterscripts\\ladmin.pwn(4584) : error 017: undefined symbol \"dcmd_spawn\"
C:\\Users\\Pisti\\Desktop\\Kyra\\filterscripts\\ladmin.pwn(6913) : warning 203: symbol is never used: \"dcmd_spawnadas\"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
2 Errors.

Nem elérhető SnooP

  • 1798
  • SnooP
    • Profil megtekintése
Compizni akartam a ladmint és ...
« Válasz #1 Dátum: 2013. április 01. - 22:00:14 »
0 Show voters
A playerid változó nem volt haszálva ezért kapod az errort.
A másik pedig lehet nincs definálva a módod elejére a dcmd_spawn paraméter.
Esetleg nem defináltad magát a dmcd-t:
 
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == \'\\0\') && (dcmd_%1(playerid, \"\"))) || (((%3)[(%2) + 1] == \' \') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

 
És amúgy valamit módosítottál rajta?
« Utoljára szerkesztve: 2013. április 01. - 22:06:56 írta SnooP »

Nem elérhető pisti525

  • 906
  • One Shot, One Kill
    • Profil megtekintése
Compizni akartam a ladmint és ...
« Válasz #2 Dátum: 2013. április 02. - 09:47:44 »
0 Show voters
nem

Compizni akartam a ladmint és ...
« Válasz #3 Dátum: 2013. április 02. - 11:11:13 »
0 Show voters
OnPlayerCommandText alatt megvannak a parancsok?

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
Compizni akartam a ladmint és ...
« Válasz #4 Dátum: 2013. április 02. - 11:38:07 »
0 Show voters
Idézetet írta: SnooP date=1364846414\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"35612\" data-ipsquote-contentclass=\"forums_Topic
A playerid változó nem volt haszálva ezért kapod az errort.
A másik pedig lehet nincs definálva a módod elejére a dcmd_spawn paraméter.
Esetleg nem defináltad magát a dmcd-t:
 
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == \'\\0\') && (dcmd_%1(playerid, \"\"))) || (((%3)[(%2) + 1] == \' \') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

 
És amúgy valamit módosítottál rajta?
 
??? ??? ??? ??? ??? ???
Milyen mód elejére, más error is lenne ha nem definiálta volna ha jó tudom.....
Ez az amit tengerimalac leírt...

Nem elérhető pisti525

  • 906
  • One Shot, One Kill
    • Profil megtekintése
Compizni akartam a ladmint és ...
« Válasz #5 Dátum: 2013. április 02. - 11:46:56 »
0 Show voters
Idézetet írta: TengeriMalac date=1364893873\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"35612\" data-ipsquote-contentclass=\"forums_Topic
OnPlayerCommandText alatt megvannak a parancsok?
 
van itt sok

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
Compizni akartam a ladmint és ...
« Válasz #6 Dátum: 2013. április 02. - 12:01:52 »
0 Show voters
Aha van itt sok pontosan? :)

Nem elérhető pisti525

  • 906
  • One Shot, One Kill
    • Profil megtekintése
Compizni akartam a ladmint és ...
« Válasz #7 Dátum: 2013. április 02. - 12:09:13 »
0 Show voters
Idézetet írta: cappsy date=1364896912\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"35612\" data-ipsquote-contentclass=\"forums_Topic
Aha van itt sok pontosan? :)
 
ne haragudj de most nem tudom mire célzol

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
Compizni akartam a ladmint és ...
« Válasz #8 Dátum: 2013. április 02. - 12:09:50 »
0 Show voters
OnPlayerCommandText-nél mi van

Nem elérhető pisti525

  • 906
  • One Shot, One Kill
    • Profil megtekintése
Compizni akartam a ladmint és ...
« Válasz #9 Dátum: 2013. április 02. - 12:12:47 »
0 Show voters
ez :
 
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(PlayerInfo[playerid][Jailed] == 1 && PlayerInfo[playerid][Level] < 1) return
    SendClientMessage(playerid,red,\"Nem használhatsz parancsokat a börtönbe\");
new cmd[256], string[128], tmp[256], idx;
cmd = strtok(cmdtext, idx);
#if defined USE_AREGISTER
     dcmd(aregister,9,cmdtext);
dcmd(alogin,6,cmdtext);
        dcmd(achangepass,11,cmdtext);
     dcmd(asetpass,8,cmdtext);
     #if defined USE_STATS
dcmd(astats,6,cmdtext);
dcmd(aresetstats,11,cmdtext);
#endif
#else
        //dcmd(register,8,cmdtext);
//dcmd(login,5,cmdtext);
     dcmd(changepass,10,cmdtext);
     dcmd(setpass,7,cmdtext);
     #if defined USE_STATS
   dcmd(stats,5,cmdtext);
   dcmd(resetstats,10,cmdtext);
#endif
#endif
dcmd(report,6,cmdtext);
dcmd(reports,7,cmdtext);
    //================ [ Read Comamands ] ===========================//
if(ServerInfo[ReadCmds] == 1)
{
format(string, sizeof(string), \"*** %s (%d) parancsot használt: %s\", pName(playerid),playerid,cmdtext);
for(new i = 0; i < MAX_PLAYERS; i++) {
   if(IsPlayerConnected(i)) {
      if( (PlayerInfo[Level] > PlayerInfo[playerid][Level]) && (PlayerInfo[Level] > 1) && (i != playerid) ) {
         SendClientMessage(i, grey, string);
      }
   }
}
}
//-= Spectate Commands =-//
#if defined ENABLE_SPEC
dcmd(lspec,5,cmdtext);
dcmd(lspecoff,8,cmdtext);
dcmd(lspecvehicle,12,cmdtext);
#endif
//-= Chat Commands =-//
dcmd(disablechat,11,cmdtext);
dcmd(clearchat,9,cmdtext);
dcmd(clearallchat,12,cmdtext);
dcmd(caps,4,cmdtext);
//-= Vehicle Commands =-//
dcmd(destroycar,10,cmdtext);
dcmd(lockcar,7,cmdtext);
dcmd(unlockcar,9,cmdtext);
dcmd(carhealth,9,cmdtext);
dcmd(carcolour,9,cmdtext);
dcmd(car,3,cmdtext);
    dcmd(vr,2,cmdtext);
    dcmd(fix,3,cmdtext);
    dcmd(repair,6,cmdtext);
    dcmd(ltune,5,cmdtext);
    dcmd(lhy,3,cmdtext);
    dcmd(lcar,4,cmdtext);
    dcmd(lbike,5,cmdtext);
    dcmd(lheli,5,cmdtext);
dcmd(lboat,5,cmdtext);
    dcmd(lnos,4,cmdtext);
    dcmd(lplane,6,cmdtext);
    dcmd(vgoto,5,cmdtext);
    dcmd(vget,4,cmdtext);
    dcmd(givecar,7,cmdtext);
    dcmd(flip,4,cmdtext);
    dcmd(ltc,3,cmdtext);
dcmd(linkcar,7,cmdtext);
    //-= Playerid Commands =-//
    dcmd(crash,5,cmdtext);
dcmd(ip,2,cmdtext);
dcmd(force,5,cmdtext);
dcmd(burn,4,cmdtext);
dcmd(spawn,5,cmdtext);
dcmd(spawnplayer,11,cmdtext);
dcmd(disarm,6,cmdtext);
dcmd(eject,5,cmdtext);
dcmd(bankrupt,8,cmdtext);
dcmd(sbankrupt,9,cmdtext);
dcmd(setworld,8,cmdtext);
dcmd(setinterior,11,cmdtext);
    dcmd(ubound,6,cmdtext);
dcmd(setwanted,9,cmdtext);
dcmd(setcolour,9,cmdtext);
dcmd(settime,7,cmdtext);
dcmd(setweather,10,cmdtext);
dcmd(setname,7,cmdtext);
dcmd(setskin,7,cmdtext);
dcmd(setscore,8,cmdtext);
dcmd(setcash,7,cmdtext);
dcmd(sethealth,9,cmdtext);
dcmd(setarmour,9,cmdtext);
dcmd(giveweapon,10,cmdtext);
dcmd(warp,4,cmdtext);
dcmd(teleplayer,10,cmdtext);
    dcmd(goto,4,cmdtext);
    dcmd(gethere,7,cmdtext);
    dcmd(get,3,cmdtext);
    dcmd(setlevel,8,cmdtext);
    dcmd(settemplevel,12,cmdtext);
    dcmd(fu,2,cmdtext);
    dcmd(warn,4,cmdtext);
    dcmd(kick,4,cmdtext);
    dcmd(ban,3,cmdtext);
    dcmd(rban,4,cmdtext);
    dcmd(slap,4,cmdtext);
    dcmd(explode,7,cmdtext);
    dcmd(jail,4,cmdtext);
    dcmd(unjail,6,cmdtext);
    dcmd(jailed,6,cmdtext);
    dcmd(freeze,6,cmdtext);
    dcmd(unfreeze,8,cmdtext);
    dcmd(frozen,6,cmdtext);
    dcmd(mute,4,cmdtext);
    dcmd(unmute,6,cmdtext);
    dcmd(muted,5,cmdtext);
    dcmd(akill,5,cmdtext);
    dcmd(weaps,5,cmdtext);
    dcmd(screen,6,cmdtext);
    dcmd(lgoto,5,cmdtext);
    dcmd(aka,3,cmdtext);
    dcmd(highlight,9,cmdtext);
//-= /All Commands =-//
dcmd(healall,7,cmdtext);
dcmd(armourall,9,cmdtext);
dcmd(muteall,7,cmdtext);
dcmd(unmuteall,9,cmdtext);
dcmd(killall,7,cmdtext);
dcmd(getall,6,cmdtext);
dcmd(spawnall,8,cmdtext);
dcmd(freezeall,9,cmdtext);
dcmd(unfreezeall,11,cmdtext);
dcmd(explodeall,10,cmdtext);
dcmd(burnall,7,cmdtext);
dcmd(kickall,7,cmdtext);
dcmd(slapall,7,cmdtext);
dcmd(ejectall,8,cmdtext);
dcmd(disarmall,9,cmdtext);
dcmd(setallskin,10,cmdtext);
dcmd(setallwanted,12,cmdtext);
dcmd(setallweather,13,cmdtext);
dcmd(setalltime,10,cmdtext);
dcmd(setallworld,11,cmdtext);
dcmd(setallscore,11,cmdtext);
dcmd(setallcash,10,cmdtext);
dcmd(giveallcash,11,cmdtext);
dcmd(giveallweapon,13,cmdtext);
    //-= No params =-//
dcmd(lslowmo,7,cmdtext);
    dcmd(lweaps,6,cmdtext);
    dcmd(lammo,5,cmdtext);
    dcmd(god,3,cmdtext);
    dcmd(sgod,4,cmdtext);
    dcmd(godcar,6,cmdtext);
    dcmd(die,3,cmdtext);
    dcmd(jetpack,7,cmdtext);
    dcmd(admins,6,cmdtext);
    dcmd(morning,7,cmdtext);
//-= Admin special =-//
    dcmd(saveplace,9,cmdtext);
dcmd(gotoplace,9,cmdtext);
dcmd(saveskin,8,cmdtext);
dcmd(useskin,7,cmdtext);
dcmd(dontuseskin,11,cmdtext);
//-= Config =-//
    dcmd(disable,7,cmdtext);
    dcmd(enable,6,cmdtext);
    dcmd(setping,7,cmdtext);
dcmd(setgravity,10,cmdtext);
    dcmd(uconfig,7,cmdtext);
    dcmd(lconfig,7,cmdtext);
    dcmd(forbidname,10,cmdtext);
    dcmd(forbidword,10,cmdtext);
//-= Misc =-//
dcmd(setmytime,9,cmdtext);
dcmd(kill,4,cmdtext);
dcmd(time,4,cmdtext);
dcmd(lhelp,5,cmdtext);
dcmd(lcmds,5,cmdtext);
dcmd(lcommands,9,cmdtext);
dcmd(level1,6,cmdtext);
dcmd(level2,6,cmdtext);
dcmd(level3,6,cmdtext);
dcmd(level4,6,cmdtext);
dcmd(level5,6,cmdtext);
dcmd(lcredits,8,cmdtext);
dcmd(serverinfo,10,cmdtext);
    dcmd(getid,5,cmdtext);
dcmd(getinfo,7,cmdtext);
    dcmd(laston,6,cmdtext);
dcmd(ping,4,cmdtext);
    dcmd(countdown,9,cmdtext);
    dcmd(duel,4,cmdtext);
    dcmd(asay,4,cmdtext);
dcmd(password,8,cmdtext);
dcmd(lockserver,10,cmdtext);
dcmd(unlockserver,12,cmdtext);
    dcmd(adminarea,9,cmdtext);
    dcmd(announce,8,cmdtext);
    dcmd(announce2,9,cmdtext);
    dcmd(richlist,8,cmdtext);
    dcmd(miniguns,8,cmdtext);
    dcmd(botcheck,8,cmdtext);
    dcmd(object,6,cmdtext);
    dcmd(pickup,6,cmdtext);
    dcmd(move,4,cmdtext);
    dcmd(moveplayer,10,cmdtext);
    #if defined ENABLE_FAKE_CMDS
dcmd(fakedeath,9,cmdtext);
dcmd(fakechat,8,cmdtext);
dcmd(fakecmd,7,cmdtext);
#endif
//-= Menu Commands =-//
    #if defined USE_MENUS
    dcmd(lmenu,5,cmdtext);
    dcmd(ltele,5,cmdtext);
    dcmd(lvehicle,8,cmdtext);
    dcmd(lweapons,8,cmdtext);
    dcmd(lweather,8,cmdtext);
    dcmd(ltmenu,6,cmdtext);
    dcmd(ltime,5,cmdtext);
    dcmd(cm,2,cmdtext);
    #endif
//========================= [ Car Commands ]====================================
    if(strcmp(cmdtext, \"/ltchelp\", true)==0)   {
if(PlayerInfo[playerid][Level] >= 1) {
SendClientMessage(playerid,COLOR_YELLOW,\"/ltc = Sultan /ltc2 = Sultan /ltc3 = Sultan\");
SendClientMessage(playerid,COLOR_YELLOW,\"/ltc4 = Jester /ltc5 = Flash /ltc6 = Uranus\");
SendClientMessage(playerid,COLOR_YELLOW,\"/ltc7 = Stratum /ltc8 = Elegy /ltc9 = Savanna\");
SendClientMessage(playerid,COLOR_YELLOW,\"/ltc10 = Uranus /ltc11 = MonsterB /ltc12 = Slamvan\");
SendClientMessage(playerid,COLOR_YELLOW,\"/ltc13 = Elegy\");
} else SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
return 1;
}
    if(strcmp(cmdtext, \"/ltunedcar2\", true)==0 || strcmp(cmdtext, \"/ltc2\", true)==0)   {
    if(PlayerInfo[playerid][Level] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,red,\"HIBA: neked már van egy jármûved\");
} else  {
if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]);
new Float:X,Float:Y,Float:Z,Float:Angle,LVehicleIDt;   GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
    LVehicleIDt = CreateVehicle(560,X,Y,Z,Angle,1,-1,-1);   PutPlayerInVehicle(playerid,LVehicleIDt,0); CMDMessageToAdmins(playerid,\"LTunedCar\");       AddVehicleComponent(LVehicleIDt, 1028);   AddVehicleComponent(LVehicleIDt, 1030);   AddVehicleComponent(LVehicleIDt, 1031);   AddVehicleComponent(LVehicleIDt, 1138);   AddVehicleComponent(LVehicleIDt, 1140);  AddVehicleComponent(LVehicleIDt, 1170);
AddVehicleComponent(LVehicleIDt, 1028);   AddVehicleComponent(LVehicleIDt, 1030);   AddVehicleComponent(LVehicleIDt, 1031);   AddVehicleComponent(LVehicleIDt, 1138);   AddVehicleComponent(LVehicleIDt, 1140);  AddVehicleComponent(LVehicleIDt, 1170);
AddVehicleComponent(LVehicleIDt, 1080);   AddVehicleComponent(LVehicleIDt, 1086); AddVehicleComponent(LVehicleIDt, 1087); AddVehicleComponent(LVehicleIDt, 1010);   PlayerPlaySound(playerid,1133,0.0,0.0,0.0);   ChangeVehiclePaintjob(LVehicleIDt,1);
SetVehicleVirtualWorld(LVehicleIDt, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(LVehicleIDt, GetPlayerInterior(playerid));
PlayerInfo[playerid][pCar] = LVehicleIDt;
}
} else SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
return 1;   }
//------------------------------------------------------------------------------
if(strcmp(cmdtext, \"/ltunedcar3\", true)==0 || strcmp(cmdtext, \"/ltc3\", true)==0)   {
if(PlayerInfo[playerid][Level] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,red,\"HIBA: neked már van egy jármûved\");
} else  {
if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]);
new Float:X,Float:Y,Float:Z,Float:Angle,LVehicleIDt;   GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
        LVehicleIDt = CreateVehicle(560,X,Y,Z,Angle,1,-1,-1);   PutPlayerInVehicle(playerid,LVehicleIDt,0); CMDMessageToAdmins(playerid,\"LTunedCar\");       AddVehicleComponent(LVehicleIDt, 1028);   AddVehicleComponent(LVehicleIDt, 1030);   AddVehicleComponent(LVehicleIDt, 1031);   AddVehicleComponent(LVehicleIDt, 1138);   AddVehicleComponent(LVehicleIDt, 1140);  AddVehicleComponent(LVehicleIDt, 1170);
    AddVehicleComponent(LVehicleIDt, 1080);   AddVehicleComponent(LVehicleIDt, 1086); AddVehicleComponent(LVehicleIDt, 1087); AddVehicleComponent(LVehicleIDt, 1010);   PlayerPlaySound(playerid,1133,0.0,0.0,0.0);   ChangeVehiclePaintjob(LVehicleIDt,2);
      SetVehicleVirtualWorld(LVehicleIDt, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(LVehicleIDt, GetPlayerInterior(playerid));
PlayerInfo[playerid][pCar] = LVehicleIDt;
}
} else SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
return 1;   }
//------------------------------------------------------------------------------
if(strcmp(cmdtext, \"/ltunedcar4\", true)==0 || strcmp(cmdtext, \"/ltc4\", true)==0)   {
if(PlayerInfo[playerid][Level] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,red,\"HIBA: neked már van egy jármûved\");
} else  {
if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]);
new Float:X,Float:Y,Float:Z,Float:Angle,carid;   GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
        carid = CreateVehicle(559,X,Y,Z,Angle,1,-1,-1);   PutPlayerInVehicle(playerid,carid,0); CMDMessageToAdmins(playerid,\"LTunedCar\");
       AddVehicleComponent(carid,1065);    AddVehicleComponent(carid,1067);    AddVehicleComponent(carid,1162); AddVehicleComponent(carid,1010); AddVehicleComponent(carid,1073);   ChangeVehiclePaintjob(carid,1);
      SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
PlayerInfo[playerid][pCar] = carid;
}
} else SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
return 1;   }
//------------------------------------------------------------------------------
if(strcmp(cmdtext, \"/ltunedcar5\", true)==0 || strcmp(cmdtext, \"/ltc5\", true)==0)   {
if(PlayerInfo[playerid][Level] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,red,\"HIBA: neked már van egy jármûved\");
} else  {
if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]);
new Float:X,Float:Y,Float:Z,Float:Angle,carid;   GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
        carid = CreateVehicle(565,X,Y,Z,Angle,1,-1,-1);   PutPlayerInVehicle(playerid,carid,0); CMDMessageToAdmins(playerid,\"LTunedCar\");
    AddVehicleComponent(carid,1046); AddVehicleComponent(carid,1049); AddVehicleComponent(carid,1053); AddVehicleComponent(carid,1010); AddVehicleComponent(carid,1073); ChangeVehiclePaintjob(carid,1);
      SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
PlayerInfo[playerid][pCar] = carid;
}
} else SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
return 1;   }
//------------------------------------------------------------------------------
if(strcmp(cmdtext, \"/ltunedcar6\", true)==0 || strcmp(cmdtext, \"/ltc6\", true)==0)   {
if(PlayerInfo[playerid][Level] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,red,\"HIBA: neked már van egy jármûved\");
} else  {
if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]);
new Float:X,Float:Y,Float:Z,Float:Angle,carid;   GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
        carid = CreateVehicle(558,X,Y,Z,Angle,1,-1,-1);   PutPlayerInVehicle(playerid,carid,0); CMDMessageToAdmins(playerid,\"LTunedCar\");
       AddVehicleComponent(carid,1088); AddVehicleComponent(carid,1092); AddVehicleComponent(carid,1139); AddVehicleComponent(carid,1010); AddVehicleComponent(carid,1073); ChangeVehiclePaintjob(carid,1);
      SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
PlayerInfo[playerid][pCar] = carid;
}
} else SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
return 1;   }
//------------------------------------------------------------------------------
if(strcmp(cmdtext, \"/ltunedcar7\", true)==0 || strcmp(cmdtext, \"/ltc7\", true)==0)   {
if(PlayerInfo[playerid][Level] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,red,\"HIBA: neked már van egy jármûved\");
} else  {
if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]);
new Float:X,Float:Y,Float:Z,Float:Angle,carid;   GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
        carid = CreateVehicle(561,X,Y,Z,Angle,1,-1,-1);   PutPlayerInVehicle(playerid,carid,0); CMDMessageToAdmins(playerid,\"LTunedCar\");
       AddVehicleComponent(carid,1055); AddVehicleComponent(carid,1058); AddVehicleComponent(carid,1064); AddVehicleComponent(carid,1010); AddVehicleComponent(carid,1073); ChangeVehiclePaintjob(carid,1);
      SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
PlayerInfo[playerid][pCar] = carid;
}
} else SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
return 1;   }
//------------------------------------------------------------------------------
if(strcmp(cmdtext, \"/ltunedcar8\", true)==0 || strcmp(cmdtext, \"/ltc8\", true)==0)   {
if(PlayerInfo[playerid][Level] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,red,\"HIBA: neked már van egy jármûved\");
} else  {
if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]);
new Float:X,Float:Y,Float:Z,Float:Angle,carid;   GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
        carid = CreateVehicle(562,X,Y,Z,Angle,1,-1,-1);   PutPlayerInVehicle(playerid,carid,0); CMDMessageToAdmins(playerid,\"LTunedCar\");
    AddVehicleComponent(carid,1034); AddVehicleComponent(carid,1038); AddVehicleComponent(carid,1147); AddVehicleComponent(carid,1010); AddVehicleComponent(carid,1073); ChangeVehiclePaintjob(carid,1);
      SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
PlayerInfo[playerid][pCar] = carid;
}
} else SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
return 1;   }
//------------------------------------------------------------------------------
if(strcmp(cmdtext, \"/ltunedcar9\", true)==0 || strcmp(cmdtext, \"/ltc9\", true)==0)   {
if(PlayerInfo[playerid][Level] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,red,\"HIBA: neked már van egy jármûved\");
} else  {
if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]);
new Float:X,Float:Y,Float:Z,Float:Angle,carid;   GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
        carid = CreateVehicle(567,X,Y,Z,Angle,1,-1,-1);   PutPlayerInVehicle(playerid,carid,0); CMDMessageToAdmins(playerid,\"LTunedCar\");
    AddVehicleComponent(carid,1102); AddVehicleComponent(carid,1129); AddVehicleComponent(carid,1133); AddVehicleComponent(carid,1186); AddVehicleComponent(carid,1188); ChangeVehiclePaintjob(carid,1); AddVehicleComponent(carid,1010); AddVehicleComponent(carid,1085); AddVehicleComponent(carid,1087); AddVehicleComponent(carid,1086);
      SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
PlayerInfo[playerid][pCar] = carid;
}
} else SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
return 1;   }
//------------------------------------------------------------------------------
if(strcmp(cmdtext, \"/ltunedcar10\", true)==0 || strcmp(cmdtext, \"/ltc10\", true)==0)   {
if(PlayerInfo[playerid][Level] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,red,\"HIBA: neked már van egy jármûved\");
} else  {
if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]);
new Float:X,Float:Y,Float:Z,Float:Angle,carid;   GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
        carid = CreateVehicle(558,X,Y,Z,Angle,1,-1,-1);   PutPlayerInVehicle(playerid,carid,0); CMDMessageToAdmins(playerid,\"LTunedCar\");
         AddVehicleComponent(carid,1092); AddVehicleComponent(carid,1166); AddVehicleComponent(carid,1165); AddVehicleComponent(carid,1090);
    AddVehicleComponent(carid,1094); AddVehicleComponent(carid,1010); AddVehicleComponent(carid,1087); AddVehicleComponent(carid,1163);//SPOILER
    AddVehicleComponent(carid,1091); ChangeVehiclePaintjob(carid,2);
      SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
PlayerInfo[playerid][pCar] = carid;
}
} else SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
return 1;   }
//------------------------------------------------------------------------------
if(strcmp(cmdtext, \"/ltunedcar11\", true)==0 || strcmp(cmdtext, \"/ltc11\", true)==0)   {
if(PlayerInfo[playerid][Level] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,red,\"HIBA: neked már van egy jármûved\");
} else {
if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]);
new Float:X,Float:Y,Float:Z,Float:Angle,carid;   GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
        carid = CreateVehicle(557,X,Y,Z,Angle,1,1,-1);   PutPlayerInVehicle(playerid,carid,0); CMDMessageToAdmins(playerid,\"LTunedCar\");
AddVehicleComponent(carid,1010); AddVehicleComponent(carid,1081);
      SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
PlayerInfo[playerid][pCar] = carid;
}
} else SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
return 1;   }
//------------------------------------------------------------------------------
if(strcmp(cmdtext, \"/ltunedcar12\", true)==0 || strcmp(cmdtext, \"/ltc12\", true)==0)   {
if(PlayerInfo[playerid][Level] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid,red,\"HIBA: neked már van egy jármûved\");
} else  {
if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]);
new Float:X,Float:Y,Float:Z,Float:Angle,carid;   GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
        carid = CreateVehicle(535,X,Y,Z,Angle,1,-1,-1);   PutPlayerInVehicle(playerid,carid,0); CMDMessageToAdmins(playerid,\"LTunedCar\");
ChangeVehiclePaintjob(carid,1); AddVehicleComponent(carid,1109); AddVehicleComponent(carid,1115); AddVehicleComponent(carid,1117); AddVehicleComponent(carid,1073); AddVehicleComponent(carid,1010);
    AddVehicleComponent(carid,1087); AddVehicleComponent(carid,1114); AddVehicleComponent(carid,1081); AddVehicleComponent(carid,1119); AddVehicleComponent(carid,1121);
      SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
PlayerInfo[playerid][pCar] = carid;
}
} else SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
return 1;   }
//------------------------------------------------------------------------------
if(strcmp(cmdtext, \"/ltunedcar13\", true)==0 || strcmp(cmdtext, \"/ltc13\", true)==0)   {
if(PlayerInfo[playerid][Level] >= 1) {
if(IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,red,\"HIBA: neked már van egy jármûved\");
else {
if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]);
new Float:X,Float:Y,Float:Z,Float:Angle,carid;   GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
        carid = CreateVehicle(562,X,Y,Z,Angle,1,-1,-1);   PutPlayerInVehicle(playerid,carid,0); CMDMessageToAdmins(playerid,\"LTunedCar\");
        AddVehicleComponent(carid,1034); AddVehicleComponent(carid,1038); AddVehicleComponent(carid,1147);
AddVehicleComponent(carid,1010); AddVehicleComponent(carid,1073); ChangeVehiclePaintjob(carid,0);
      SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid)); LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
PlayerInfo[playerid][pCar] = carid;
}
} else SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
return 1;   }
//------------------------------------------------------------------------------
if(strcmp(cmd, \"/lp\", true) == 0)   {
if(PlayerInfo[playerid][Level] >= 1) {
if (GetPlayerState(playerid) == 2)
{
new VehicleID = GetPlayerVehicleID(playerid), LModel = GetVehicleModel(VehicleID);
        switch(LModel) { case 448,461,462,463,468,471,509,510,521,522,523,581,586, 449: return SendClientMessage(playerid,red,\"HIBA: Ilyen jármûvet nem tehetsz\"); }
new str[128], Float:pos[3];   format(str, sizeof(str), \"%s\", cmdtext[2]);
SetVehicleNumberPlate(VehicleID,str);
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);   SetPlayerPos(playerid, pos[0]+1, pos[1], pos[2]);
SetVehicleToRespawn(VehicleID); SetVehiclePos(VehicleID, pos[0], pos[1], pos[2]);
SetTimerEx(\"TuneLCar\",4000,0,\"d\",VehicleID);    PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
SendClientMessage(playerid, blue, \"Kicserélted a rendszámtábládat\");   CMDMessageToAdmins(playerid,\"LP\");
} else {
SendClientMessage(playerid,red,\"HIBA: Nem vagy jármûben\");   }
} else   {
     SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");   }
return 1;   }
//------------------------------------------------------------------------------
if(strcmp(cmd, \"/spam\", true) == 0)   {
if(PlayerInfo[playerid][Level] >= 5) {
    tmp = strtok(cmdtext, idx);
   if(!strlen(tmp)) {
      SendClientMessage(playerid, red, \"Használat: /spam [szín] [szöveg]\");
      SendClientMessage(playerid, red, \"Színek: 0=fekete 1=fehér 2=piros 3=narancs 4=sárga 5=zöld 6=kék 7=lila 8=barna 9=rózsaszín\");
      return 1;
   }
   new Colour = strval(tmp);
   if(Colour > 9 ) return SendClientMessage(playerid, red, \"Színek: 0=fekete 1=fehér 2=piros 3=narancs 4=sárga 5=zöld 6=kék 7=lila 8=barna 9=rózsaszín\");
   tmp = strtok(cmdtext, idx);
   format(string,sizeof(string),\"%s\",cmdtext[8]);
        if(Colour == 0)     for(new i; i < 50; i++) SendClientMessageToAll(black,string);
        else if(Colour == 1) for(new i; i < 50; i++) SendClientMessageToAll(COLOR_WHITE,string);
        else if(Colour == 2) for(new i; i < 50; i++) SendClientMessageToAll(red,string);
        else if(Colour == 3) for(new i; i < 50; i++) SendClientMessageToAll(orange,string);
        else if(Colour == 4) for(new i; i < 50; i++) SendClientMessageToAll(yellow,string);
        else if(Colour == 5) for(new i; i < 50; i++) SendClientMessageToAll(COLOR_GREEN1,string);
        else if(Colour == 6) for(new i; i < 50; i++) SendClientMessageToAll(COLOR_BLUE,string);
        else if(Colour == 7) for(new i; i < 50; i++) SendClientMessageToAll(COLOR_PURPLE,string);
        else if(Colour == 8) for(new i; i < 50; i++) SendClientMessageToAll(COLOR_BROWN,string);
        else if(Colour == 9) for(new i; i < 50; i++) SendClientMessageToAll(COLOR_PINK,string);
   return 1;
} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 5-ös szintû adminnak kéne lenned!\");
}
//------------------------------------------------------------------------------
if(strcmp(cmd, \"/write\", true) == 0) {
if(PlayerInfo[playerid][Level] >= 2) {
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
   SendClientMessage(playerid, red, \"Használat: /write [szín] [szöveg]\");
   return SendClientMessage(playerid, red, \"Színek: 0=fekete 1=fehér 2=piros 3=narancs 4=sárga 5=zöld 6=kék 7=lila 8=barna 9=pink\");
    }
new Colour;
Colour = strval(tmp);
if(Colour > 9 )   {
   SendClientMessage(playerid, red, \"Használat: /write [szín] [szöveg]\");
   return SendClientMessage(playerid, red, \"Színek: 0=fekete 1=fehér 2=piros 3=narancs 4=sárga 5=zöld 6=kék 7=lila 8=barna 9=pink\");
}
tmp = strtok(cmdtext, idx);
        CMDMessageToAdmins(playerid,\"WRITE\");
        if(Colour == 0) {   format(string,sizeof(string),\"%s\",cmdtext[9]);   SendClientMessageToAll(black,string); return 1;   }
        else if(Colour == 1) {   format(string,sizeof(string),\"%s\",cmdtext[9]);   SendClientMessageToAll(COLOR_WHITE,string); return 1;   }
        else if(Colour == 2) {   format(string,sizeof(string),\"%s\",cmdtext[9]);   SendClientMessageToAll(red,string); return 1;   }
        else if(Colour == 3) {   format(string,sizeof(string),\"%s\",cmdtext[9]);   SendClientMessageToAll(orange,string); return 1;   }
        else if(Colour == 4) {   format(string,sizeof(string),\"%s\",cmdtext[9]);   SendClientMessageToAll(yellow,string); return 1;   }
        else if(Colour == 5) {   format(string,sizeof(string),\"%s\",cmdtext[9]);   SendClientMessageToAll(COLOR_GREEN1,string); return 1;   }
        else if(Colour == 6) {   format(string,sizeof(string),\"%s\",cmdtext[9]);   SendClientMessageToAll(COLOR_BLUE,string); return 1;   }
        else if(Colour == 7) {   format(string,sizeof(string),\"%s\",cmdtext[9]);   SendClientMessageToAll(COLOR_PURPLE,string); return 1;   }
        else if(Colour == 8) {   format(string,sizeof(string),\"%s\",cmdtext[9]);   SendClientMessageToAll(COLOR_BROWN,string); return 1;   }
        else if(Colour == 9) {   format(string,sizeof(string),\"%s\",cmdtext[9]);   SendClientMessageToAll(COLOR_PINK,string); return 1;   }
        return 1;
} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
}
if(strcmp(cmd, \"/health\", true) == 0) {
if(PlayerInfo[playerid][Level] >= 1) {
    CMDMessageToAdmins(playerid,\"HEALTH\");
    SetPlayerHealth(playerid,100);
    PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
    SendClientMessage(playerid, COLOR_WHITE, \"Életerõd feltöltve!\");
    return 1;
} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
}
if(strcmp(cmd, \"/armour\", true) == 0) {
if(PlayerInfo[playerid][Level] >= 1) {
    CMDMessageToAdmins(playerid,\"ARMOUR\");
    SetPlayerArmour(playerid,100);
    PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
    SendClientMessage(playerid, COLOR_WHITE, \"Páncélod feltöltve!\");
    return 1;
} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\");
}
//------------------------------------------------------------------------------
//                      Remote Console
//------------------------------------------------------------------------------
if(strcmp(cmd, \"/loadfs\", true) == 0) {
    if(PlayerInfo[playerid][Level] >= 5) {
          new str[128]; format(str,sizeof(string),\"%s\",cmdtext[1]); SendRconCommand(str);
    return SendClientMessage(playerid,COLOR_WHITE,\"RCON parancs elküldve\");
      } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz 5-ös szintû adminnak kéne lenned!\");
}
if(strcmp(cmd, \"/unloadfs\", true) == 0)    {
    if(PlayerInfo[playerid][Level] >= 5) {
          new str[128]; format(str,sizeof(string),\"%s\",cmdtext[1]); SendRconCommand(str);
    return SendClientMessage(playerid,COLOR_WHITE,\"RCON parancs elküldve\");
      } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz 5-ös szintû adminnak kéne lenned!\");
}
if(strcmp(cmd, \"/changemode\", true) == 0)    {
    if(PlayerInfo[playerid][Level] >= 4) {
          new str[128]; format(str,sizeof(string),\"%s\",cmdtext[1]); SendRconCommand(str);
    return SendClientMessage(playerid,COLOR_WHITE,\"RCON parancs elküldve\");
      } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz 4-es szintû adminnak kéne lenned!\");
}
if(strcmp(cmd, \"/gmx\", true) == 0)    {
if(PlayerInfo[playerid][Level] >= 5) {
   OnFilterScriptExit(); SetTimer(\"RestartGM\",5000,0);
   return SendClientMessage(playerid,COLOR_WHITE,\"RCON parancs elküldve\");
} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz 5-ös szintû adminnak kéne lenned!\");
}
if(strcmp(cmd, \"/loadladmin\", true) == 0)    {
if(PlayerInfo[playerid][Level] >= 5) {
   SendRconCommand(\"loadfs ladmin4\");
   return SendClientMessage(playerid,COLOR_WHITE,\"RCON parancs elküldve\");
} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz 5-ös szintû adminnak kéne lenned!\");
}
if(strcmp(cmd, \"/unloadladmin\", true) == 0)    {
if(PlayerInfo[playerid][Level] >= 5) {
   SendRconCommand(\"unloadfs ladmin4\");
   return SendClientMessage(playerid,COLOR_WHITE,\"RCON parancs elküldve\");
} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz 5-ös szintû adminnak kéne lenned!\");
}
if(strcmp(cmd, \"/reloadladmin\", true) == 0)    {
if(PlayerInfo[playerid][Level] >= 4 || IsPlayerAdmin(playerid) ) {
   SendRconCommand(\"reloadfs ladmin4\");
   SendClientMessage(playerid,COLOR_WHITE,\"RCON parancs elküldve\");
   return CMDMessageToAdmins(playerid,\"RELOADLADMIN\");
} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz 4-es szintû adminnak kéne lenned!\");
}
 
return 0;
}
 
//==============================================================================
#if defined ENABLE_SPEC

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal