Szerző Téma: valaki atkovertalja zcmd-be mert nem sikerul ?  (Megtekintve 691 alkalommal)

valaki atkovertalja zcmd-be mert nem sikerul ?
« Dátum: 2012. február 26. - 15:25:05 »
0 Show voters
[pawn]public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new playermoney;
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new cmd[256];
new giveplayerid, moneys, idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, \"/help\", true) == 0) {
        SendPlayerFormattedText(playerid,\"-Segitség:-\",0);
   SendPlayerFormattedText(playerid,\"/rules-Szabályzat.\",0);
   SendPlayerFormattedText(playerid,\"/parancsok.\",0);
   SendPlayerFormattedText(playerid,\"/teles-teleportok.\",0);
   SendPlayerFormattedText(playerid,\"/colors-szinek.\",0);
   SendPlayerFormattedText(playerid,\"/shop-vásarlás.\",0);
return 1;
}
if(strcmp(cmd, \"/rules\", true) == 0) {
   SendPlayerFormattedText(playerid,\"<<..::Szabályok::..>>\",0);
   SendPlayerFormattedText(playerid,\"1.Ne csitelj = ban\",0);
   SendPlayerFormattedText(playerid,\"2.Ne db-ez = kick\",0);
   SendPlayerFormattedText(playerid,\"3.Ne spawn killez = kick\",0);
   SendPlayerFormattedText(playerid,\"4.Ne káromkogy,ne anyázz = mute/kick\",0);
   SendPlayerFormattedText(playerid,\"5.Ne floodolj = mute/kick\",0);
   SendPlayerFormattedText(playerid,\"6.Ne csúfolkodj = warn/kick\",0);
   SendPlayerFormattedText(playerid,\"7.Ne szidd az adminokat = warn/kick\",0);
   SendPlayerFormattedText(playerid,\"8.Ne hirdess,ne reklámozz = kick/ban\",0);
   SendPlayerFormattedText(playerid,\"9.Ne kérj Admin-t = warn/kick\",0);
   SendPlayerFormattedText(playerid,\"10.Ne szidd az adminokat = warn/kick\",0);
   SendPlayerFormattedText(playerid,\"11.Ne fenyegesd az adminokat = warn/kick\",0);
   SendPlayerFormattedText(playerid,\"12.Ne böcsködj,ne feszits = warn/kick/ban\",0);
return 1;
}
   if(strcmp(cmd, \"/shop\", true) == 0) {
 SendClientMessage(playerid, COLOR_GREEN,\"Fegyverek:\");
 SendClientMessage(playerid, COLOR_RED,\"/health=2000$\");
 SendClientMessage(playerid, COLOR_RED,\"/armour=3000$\");
 SendClientMessage(playerid, COLOR_RED,\"/chinsaw=4000$\");
 SendClientMessage(playerid, COLOR_RED,\"/m4=7000$\");
      SendClientMessage(playerid, COLOR_RED,\"/flamethrower=20000$\");
      SendClientMessage(playerid, COLOR_RED,\"/9mm=1000$\");
 SendClientMessage(playerid, COLOR_RED,\"/silence-9mm=1500$\");
 SendClientMessage(playerid, COLOR_RED,\"/eagle=3500$\");
 SendClientMessage(playerid, COLOR_WHITE,\"További dolgok /shop2\");
return 1;
}
   if(strcmp(cmd, \"/shop2\", true) == 0) {
 SendClientMessage(playerid, COLOR_GREEN,\"Fegyverek2:\");
 SendClientMessage(playerid, COLOR_RED,\"/sawn-off=4500$\");
 SendClientMessage(playerid, COLOR_RED,\"/combat=5000$\");
     SendClientMessage(playerid, COLOR_RED,\"/uzi=3500$\");
 SendClientMessage(playerid, COLOR_RED,\"/mp5=4500$\");
 SendClientMessage(playerid, COLOR_RED,\"/ak47=5500$\");
 SendClientMessage(playerid, COLOR_RED,\"/m4=6000$\");
 SendClientMessage(playerid, COLOR_RED,\"/shotgun=4000$\");
 SendClientMessage(playerid, COLOR_RED,\"/tec9=2500$\");
 SendClientMessage(playerid, COLOR_WHITE,\"Továbi dolgok /shop3\");
return 1;
}
if(strcmp(cmd, \"/shop3\", true) == 0) {
 SendClientMessage(playerid, COLOR_GREEN,\"Fegyverek3:\");
 SendClientMessage(playerid, COLOR_RED,\"/rifle=4150$\");
 SendClientMessage(playerid, COLOR_RED,\"/sniper=4500$\");
return 1;
}
   if(strcmp(cmd, \"/parancsok\", true) == 0) {
   SendPlayerFormattedText(playerid,\"Parancsok:\",0);
   SendPlayerFormattedText(playerid,\"/kill-meg halsz\",0);
   SendPlayerFormattedText(playerid,\"/rep-kocsit meg javícsa\",0);
        SendPlayerFormattedText(playerid,\"/heli-helicoptert ad pénzert 70000$\",0);
        SendPlayerFormattedText(playerid,\"/me\",0);
        SendPlayerFormattedText(playerid,\"/pc-parachutet ad ingyen\",0);
        SendPlayerFormattedText(playerid,\"/stuntbonus\",0);
   SendPlayerFormattedText(playerid,\"/givecash-pénz utalás\",0);
   SendPlayerFormattedText(playerid,\"/nrg-nrg-500 ad ingyen\",0);
   SendPlayerFormattedText(playerid,\"/freeway-freeway motort ad ingyen\",0);
   return 1;
}
   if(strcmp(cmd, \"/teles\", true) == 0) {
   SendPlayerFormattedText(playerid,\"Teleportok:\",0);
        SendPlayerFormattedText(playerid,\"/kickstart /8track /tele-ls /tele-sf /tele-lv /ammu /grove /sf-pimp\",0);
   SendPlayerFormattedText(playerid,\"/ls-pimp /chilliad /drag /dm /dm2 /dm3 /drift /drift2 /derby\",0);
   SendPlayerFormattedText(playerid,\"/derby2 /army /lv-air /ls-air /sf-air /da-air /jizzy /jump\",0);
return 1;
}
if(strcmp(cmd, \"/colors\", true) == 0) {
   SendPlayerFormattedText(playerid,\"Szinek:\",0);
   SendPlayerFormattedText(playerid,\"/magenta /medgreen /lightred /darkmagenta /lightblue /lightgreen\",0);
        SendPlayerFormattedText(playerid,\"/lemon /orangered /yellow /darkgreen /medblue /darkpurple /lightbrown\",0);
   SendPlayerFormattedText(playerid,\"/pink /orange /black /violet /lightcyan /red /lightbluegreen /gold /grayblue\",0);
   SendPlayerFormattedText(playerid,\"/bluegreen /neutralblue /white\",0);
return 1;
}
 if(strcmp(cmdtext, \"/magenta\", true) == 0){
        SetPlayerColor(playerid, 0xA587DE0BA354);
        return 1;
        }
        if(strcmp(cmdtext, \"/medgreen\", true) == 0){
        SetPlayerColor(playerid, 0x9CDE7180);
        return 1;
        }
        if(strcmp(cmdtext, \"/lightred\", true) == 0){
        SetPlayerColor(playerid, 0xFF99AADD);
        return 1;
        }
        if(strcmp(cmd, \"/darkmagenta\", true) == 0){
        SetPlayerColor(playerid, 0xA7105DEF);
        return 1;
        }
        if(strcmp(cmdtext, \"/lightblue\", true) == 0){
        SetPlayerColor(playerid, 0x33CCFFAA);
        return 1;
        }
        if(strcmp(cmdtext, \"/lightgreen\", true) == 0){
        SetPlayerColor(playerid, 0x24FF0AB9);
        return 1;
        }
        if(strcmp(cmdtext, \"/lemon\", true) == 0){
        SetPlayerColor(playerid, 0xDDDD2357);
        return 1;
        }
        if(strcmp(cmdtext, \"/orangered\", true) == 0){
        SetPlayerColor(playerid, 0xE9370DFC);
        return 1;
        }
        if(strcmp(cmdtext, \"/yellow\", true) == 0){
        SetPlayerColor(playerid, 0xFFFF00AA);
        return 1;
        }
        if(strcmp(cmdtext, \"/darkgreen\", true) == 0){
        SetPlayerColor(playerid, 0x12900BBF);
        return 1;
        }
        if(strcmp(cmdtext, \"/medblue\", true) == 0){
        SetPlayerColor(playerid, 0x63AFF00A);
        return 1;
        }
        if(strcmp(cmdtext, \"/darkpurple\", true) == 0){
        SetPlayerColor(playerid, 0x800080AA);
        return 1;
        }
        if(strcmp(cmdtext, \"/lightbrown\", true) == 0){
        SetPlayerColor(playerid, 0x99934EFA);
        return 1;
        }
        if(strcmp(cmdtext, \"/pink\", true) == 0){
        SetPlayerColor(playerid, 0xFF66FFAA);
        return 1;
        }
        if(strcmp(cmdtext, \"/orange\", true) == 0){
        SetPlayerColor(playerid, 0xFF9900AA);
        return 1;
        }
        if(strcmp(cmdtext, \"/black\", true) == 0){
        SetPlayerColor(playerid, 0x00000000);
        return 1;
        }
        if(strcmp(cmdtext, \"/violet\", true) == 0){
        SetPlayerColor(playerid, 0x9955DEEE);
        return 1;
        }
        if(strcmp(cmdtext, \"/lightcyan\", true) == 0){
        SetPlayerColor(playerid, 0xAAFFCC33);
        return 1;
        }
        if(strcmp(cmdtext, \"/red\", true) == 0){
        SetPlayerColor(playerid, 0xAA3333AA);
        return 1;
        }
        if(strcmp(cmdtext, \"/lightbluegreen\", true) == 0){
        SetPlayerColor(playerid, 0x0FFDD349);
        return 1;
        }
        if(strcmp(cmdtext, \"/gold\", true) == 0){
        SetPlayerColor(playerid, 0xDEAD4370);
        return 1;
        }
        if(strcmp(cmdtext, \"/grayblue\", true) == 0){
        SetPlayerColor(playerid, 0x456EAF67);
        return 1;
        }
        if(strcmp(cmdtext, \"/bluegreen\", true) == 0){
        SetPlayerColor(playerid, 0x46BBAA00);
        return 1;
        }
        if(strcmp(cmdtext, \"/neutralblue\", true) == 0){
        SetPlayerColor(playerid, 0xABCDEF01);
        return 1;
        }
        if(strcmp(cmdtext, \"/white\", true) == 0){
        SetPlayerColor(playerid, 0xFFFFFFAA);
           return 1;
   }
if(strcmp(cmd, \"/jump\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,1532.2787,-1357.2721,329.4535);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,1532.2787,-1357.2721,329.4535);
 GivePlayerWeapon(playerid, 46, 200);
 }
 return 1;
 }
if(strcmp(cmd, \"/jizzy\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-2626.7002,1392.7729,7.1016);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-2626.7002,1392.7729,7.1016);
 }
 return 1;
 }
if(strcmp(cmdtext, \"/health\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 2000)
      {
         GivePlayerMoney(playerid, -2000);
         SendClientMessage(playerid, 0xFFFF00AA, \"élet meg véve -2000$ !\");
         SetPlayerHealth(playerid, 100);
         GameTextForPlayer(playerid, \"~r~Healed!\",1900,1);
      }
      else if(GetPlayerMoney(playerid) < 2000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 2000$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext, \"/armour\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 3000)
      {
         GivePlayerMoney(playerid, -3000);
         SendClientMessage(playerid, 0xFFFF00AA, \"pajzs meg véve -3000$ !\");
         SetPlayerArmour(playerid, 100);
         GameTextForPlayer(playerid, \"~r~Armoured!\",1900,1);
      }
      else if(GetPlayerMoney(playerid) < 3000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 3000$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext,\"/freeway\",true) == 0)
           {
          new Float:X;
          new Float:Y;
          new Float:Z;
          GetPlayerPos(playerid,X,Y,Z);
          CreateVehicle(463,X,Y+1,Z+1,5,3,0,90000);
          SendClientMessage(playerid, 0x00BFFFAA, \"SERVER: ingyen freeway a tied!\");
          return 1;
           }
 if(strcmp(cmdtext,\"/nrg\",true) == 0)
            {
           new Float:X;
           new Float:Y;
           new Float:Z;
           GetPlayerPos(playerid,X,Y,Z);
           CreateVehicle(522,X,Y+1,Z+1,5,3,0,90000);
           SendClientMessage(playerid, 0x00BFFFAA, \"SERVER: ingyen nrg a tied!\");
           return 1;
            }
if(strcmp(cmd, \"/ls-air\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,2126.1204,-2560.5300,13.5469);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,2126.1204,-2560.5300,13.5469);
 }
 return 1;
 }
if(strcmp(cmd, \"/sf-air\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-1688.5039,-196.1701,14.1484);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-1688.5039,-196.1701,14.1484);
 }
 return 1;
 }
if(strcmp(cmd, \"/lv-air\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,1702.6162,1608.1442,10.3202);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,1702.6162,1608.1442,10.3202);
 }
 return 1;
 }
if(strcmp(cmd, \"/army\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,296.5106,1974.9750,17.6406);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,296.5106,1974.9750,17.6406);
 }
 return 1;
 }
if(strcmp(cmd, \"/derby2\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-1199.5333,-1068.5527,129.1338);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-1199.5333,-1068.5527,129.1338);
 }
 return 1;
 }
if(strcmp(cmd, \"/derby\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-2040.2617,-108.5906,35.1984);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-2040.2617,-108.5906,35.1984);
 }
 return 1;
 }
if(strcmp(cmd, \"/drift2\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-2510.2849,-623.0972,132.7324);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-2510.2849,-623.0972,132.7324);
 }
 return 1;
 }
if(strcmp(cmd, \"/drift\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-343.0616,1528.1173,75.3570);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-343.0616,1528.1173,75.3570);
 }
 return 1;
 }
if(strcmp(cmd, \"/dm3\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-1407.0469,1486.2013,7.1016);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-1407.0469,1486.2013,7.1016);
 }
 return 1;
 }
if(strcmp(cmd, \"/dm2\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,620.3115,833.7418,-42.9609);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,620.3115,833.7418,-42.9609);
 }
 return 1;
 }
if(strcmp(cmd, \"/dm\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-536.2773,2593.6890,53.4154);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-536.2773,2593.6890,53.4154);
 }
 return 1;
 }
if(strcmp(cmd, \"/da-air\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,397.9708,2539.6289,19.6311);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,397.9708,2539.6289,19.6311);
 }
 return 1;
 }
if(strcmp(cmd, \"/drag\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-2680.9539,1254.0300,55.6806);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-2680.9539,1254.0300,55.6806);
 }
 return 1;
 }
if(strcmp(cmd, \"/chilliad\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-2310.7341,-1654.3699,483.6932);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-2310.7341,-1654.3699,483.6932);
 }
 return 1;
 }
if(strcmp(cmd, \"/lv-pimp\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,2385.6577,1027.3882,10.8203);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,2385.6577,1027.3882,10.8203);
 }
 return 1;
 }
if(strcmp(cmd, \"/ls-pimp\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,1041.7820,-1034.0206,31.8991);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,1041.7820,-1034.0206,31.8991);
 }
 return 1;
 }
if(strcmp(cmd, \"/sf-pimp\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-2692.4758,208.7675,4.3281);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-2692.4758,208.7675,4.3281);
 }
 return 1;
 }
if(strcmp(cmd, \"/grove\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,2504.8965,-1668.2948,13.3696);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,2504.8965,-1668.2948,13.3696);
 }
 return 1;
 }
if(strcmp(cmd, \"/ammu\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,2136.2075,953.7546,10.7474);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,2136.2075,953.7546,10.7474);
 }
 return 1;
 }
if(strcmp(cmd, \"/tele-ls\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,2772.1746,-2006.9355,13.5547);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,2772.1746,-2006.9355,13.5547);
 }
 return 1;
 }
if(strcmp(cmd, \"/tele-sf\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-1918.7202,282.9269,41.0469);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-1918.7202,282.9269,41.0469);
 }
 return 1;
 }
if(strcmp(cmd, \"/tele-lv\", true) == 0) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,2326.8254,1387.0673,42.8203);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,2326.8254,1387.0673,42.8203);
 }
 return 1;
 }
if(strcmp(cmdtext, \"/stuntbonus\",true)==0) {
      EnableStuntBonusForPlayer(playerid, 1);
      return 1;
   }
if(strcmp(cmdtext, \"/pc\",true)==0)
   {
      GivePlayerWeapon(playerid, 46, 1);
      SendClientMessage(playerid, 0x00BFFFFF, \"adtal magadnak parachutet\");
      return 1;
   }
    if(strcmp(cmd, \"/me\",true)==0){
      new dir[256];
      dir = strtok(cmdtext, idx);
      strmid(\"tmp\", cmdtext, 4, strlen(cmdtext));
      if(!strlen(dir)) {
         SendClientMessage(playerid,COLOR_GREY,\"Használat: /me [szöveg]\");
         return 1;
      }
      dir = strtok(cmdtext, idx);
      GetPlayerName(playerid, sendername, sizeof(sendername));
      format(string, sizeof(string), \"***%s %s\", sendername, \"tmp\");
      SendClientMessageToAll(COLOR_WHITE,string);
      print(string);
      return 1;
   }
if(strcmp(cmdtext, \"/sniper\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 4500)
      {
         GivePlayerMoney(playerid, -4500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -4500$ !\");
         GivePlayerWeapon(playerid, 34, 200);
      }
      else if(GetPlayerMoney(playerid) < 4500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 4500$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext, \"/rifle\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 4150)
      {
         GivePlayerMoney(playerid, -4150);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -4150$ !\");
         GivePlayerWeapon(playerid, 33, 200);
      }
      else if(GetPlayerMoney(playerid) < 4150)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 4150$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext, \"/tec9\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 2500)
      {
         GivePlayerMoney(playerid, -2500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -2500$ !\");
         GivePlayerWeapon(playerid, 32, 200);
      }
      else if(GetPlayerMoney(playerid) < 2500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 2500$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext, \"/ak47\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 5500)
      {
         GivePlayerMoney(playerid, -5500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -5500$ !\");
         GivePlayerWeapon(playerid, 30, 200);
      }
      else if(GetPlayerMoney(playerid) < 5500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 5500$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext, \"/mp5\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 4500)
      {
         GivePlayerMoney(playerid, -4500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -4500$ !\");
         GivePlayerWeapon(playerid, 29, 200);
      }
      else if(GetPlayerMoney(playerid) < 4500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 4500$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext, \"/uzi\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 3500)
      {
         GivePlayerMoney(playerid, -3500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve 3500$ !\");
         GivePlayerWeapon(playerid, 28, 200);
      }
      else if(GetPlayerMoney(playerid) < 3500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 3500$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext, \"/combat\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 5000)
      {
         GivePlayerMoney(playerid, -5000);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -5000$ !\");
         GivePlayerWeapon(playerid, 27, 200);
      }
      else if(GetPlayerMoney(playerid) < 5000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 5000$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext, \"/sawn-off\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 4500)
      {
         GivePlayerMoney(playerid, -4500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -4500$ !\");
         GivePlayerWeapon(playerid, 26, 200);
      }
      else if(GetPlayerMoney(playerid) < 4500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 4500$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext, \"/shotgun\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 4000)
      {
         GivePlayerMoney(playerid, -4000);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -4000$ !\");
         GivePlayerWeapon(playerid, 25, 200);
      }
      else if(GetPlayerMoney(playerid) < 4000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 4000$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext, \"/silence-9mm\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 1500)
      {
         GivePlayerMoney(playerid, -1500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -1500$ !\");
         GivePlayerWeapon(playerid, 23, 200);
      }
      else if(GetPlayerMoney(playerid) < 1500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 1500$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext, \"/eagle\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 3500)
      {
         GivePlayerMoney(playerid, -3500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -3500$ !\");
         GivePlayerWeapon(playerid, 24, 200);
      }
      else if(GetPlayerMoney(playerid) < 3500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 3500$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext, \"/9mm\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 1000)
      {
         GivePlayerMoney(playerid, -1000);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -1000$ !\");
         GivePlayerWeapon(playerid, 22, 200);
      }
      else if(GetPlayerMoney(playerid) < 1000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 1000$ kel hozzá !\");
      }
      return 1;
   }
if(strcmp(cmdtext, \"/chinsaw\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 4000)
      {
         GivePlayerMoney(playerid, -4000);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -4000$ !\");
         GivePlayerWeapon(playerid, 9, 200);
      }
      else if(GetPlayerMoney(playerid) < 4000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 4000$ kel hozzá !\");
      }
      return 1;
   }
 if(strcmp(cmdtext, \"/m4\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 6000)
                  {
         GivePlayerMoney(playerid, -6000);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -6000$ !\");
         GivePlayerWeapon(playerid, 31, 200);
      }
      else if(GetPlayerMoney(playerid) < 6000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 6000$ kel hozzá !\");
      }
      return 1;
   }
    if(strcmp(cmdtext, \"/heli\", true) == 0)
   {
      new Float:X, Float:Y, Float:Z;
      GetPlayerPos(playerid, X, Y, Z);
      if(GetPlayerMoney(playerid) >= 70000)
      {
         GivePlayerMoney(playerid, -70000);
         SendClientMessage(playerid, 0xFFFF00AA, \"heli meg véve -70000$ !\");
         CreateVehicle(497, X, Y, Z + 1, 90.0, -1, -1, 1000000000);
      }
      else if(GetPlayerMoney(playerid) < 70000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 70000$ kel hozzá !\");
      }
      return 1;
   }
    if(strcmp(cmdtext, \"/flamethrower\", true) == 0)
   {
      if(GetPlayerMoney(playerid) >= 20000)
      {
         GivePlayerMoney(playerid, -20000);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve 20000$ !\");
         GivePlayerWeapon(playerid, 37, 200);
      }
      else if(GetPlayerMoney(playerid) < 20000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 20000$ kel hozzá !\");
      }
      return 1;
   }
       if(strcmp(cmdtext, \"/rep\",true)==0)
   {
      if(IsPlayerInAnyVehicle(playerid))
      {
          SendClientMessage(playerid, COLOR_YELLOW, \"Auto: javítva !\");
         SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
      }
      else return SendClientMessage(playerid, COLOR_RED, \"SERVER: nem vagy kocsiba.\");
      return 1;
   }
   if (strcmp(cmdtext, \"/8track\",true)==0){
      SetPlayerInterior(playerid,7);
      ResetPlayerWeapons(playerid);
      SetPlayerPos(playerid,-1403.0116,-250.4526,1043.5341);
      SendClientMessage(playerid, COLOR_YELLOW, \"Welcome to 8-Track RC Circuit\");
      new name[MAX_PLAYER_NAME+1];
      GetPlayerName(playerid, name, sizeof(name));
      format(string, sizeof(string), \"%s has joined 8-Track RC Circuit, type /8track to join\", name);
      return 1;
   }
if (strcmp(cmdtext, \"/kickstart\",true)==0){
      SetPlayerInterior(playerid,14);
      ResetPlayerWeapons(playerid);
      SetPlayerPos(playerid,-1462.9445,1562.0704,1052.7500); //);
      SendClientMessage(playerid, COLOR_YELLOW, \"***Welcome to KickStart Stadium\");
      new name[MAX_PLAYER_NAME+1];
      GetPlayerName(playerid, name, sizeof(name));
      format(string, sizeof(string), \"%s has joined KickStart Stadium, type /kickstart to join\", name);
      return 1;
   }
if(strcmp(cmdtext, \"/kill\",true)==0) {
      SetPlayerHealth(playerid, 0.00);
      ResetPlayerWeapons(playerid);
      return 1;
   }
    if(strcmp(cmd, \"/givecash\", true) == 0) {
    new tmp[256];
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp)) {
      SendClientMessage(playerid, COLOR_WHITE, \"Használat: /givecash [playerid] [öszeg]\");
      return 1;
   }
   giveplayerid = strval(tmp);
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp)) {
      SendClientMessage(playerid, COLOR_WHITE, \"Használat: /givecash [playerid] [öszeg]\");
      return 1;
   }
       moneys = strval(tmp);
   //printf(\"givecash_command: %d %d\",giveplayerid,moneys);
   if (IsPlayerConnected(giveplayerid)) {
      GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
      GetPlayerName(playerid, sendername, sizeof(sendername));
      playermoney = GetPlayerMoney(playerid);
      if (moneys > 0 && playermoney >= moneys) {
         GivePlayerMoney(playerid, (0 - moneys));
         GivePlayerMoney(giveplayerid, moneys);
         format(string, sizeof(string), \"You have sent %s(player: %d), $%d.\", giveplayer,giveplayerid, moneys);
         SendClientMessage(playerid, COLOR_YELLOW, string);
         format(string, sizeof(string), \"You have recieved $%d from %s(player: %d).\", moneys, sendername, playerid);
         SendClientMessage(giveplayerid, COLOR_YELLOW, string);
         printf(\"%s(playerid:%d) has transfered %d to %s(playerid:%d)\",sendername, playerid, moneys, giveplayer, giveplayerid);
      }
      else {
         SendClientMessage(playerid, COLOR_YELLOW, \"Invalid transaction amount.\");
      }
   }
   else {
         format(string, sizeof(string), \"%d is not an active player.\", giveplayerid);
         SendClientMessage(playerid, COLOR_YELLOW, string);
      }
   return 1;
}
// PROCESS OTHER COMMANDS
return 0;
}[/pawn]

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
valaki atkovertalja zcmd-be mert nem sikerul ?
« Válasz #1 Dátum: 2012. február 26. - 15:30:51 »
0 Show voters
Olyan nehéz volt bemásolni ide: http://sampforum.hu/index.php?page=zcmd
[pawn]CMD:help(playerid, params[]) {
        SendPlayerFormattedText(playerid,\"-Segitség:-\",0);
   SendPlayerFormattedText(playerid,\"/rules-Szabályzat.\",0);
   SendPlayerFormattedText(playerid,\"/parancsok.\",0);
   SendPlayerFormattedText(playerid,\"/teles-teleportok.\",0);
   SendPlayerFormattedText(playerid,\"/colors-szinek.\",0);
   SendPlayerFormattedText(playerid,\"/shop-vásarlás.\",0);
return 1;
}
CMD:rules(playerid, params[]) {
   SendPlayerFormattedText(playerid,\"<<..::Szabályok::..>>\",0);
   SendPlayerFormattedText(playerid,\"1.Ne csitelj = ban\",0);
   SendPlayerFormattedText(playerid,\"2.Ne db-ez = kick\",0);
   SendPlayerFormattedText(playerid,\"3.Ne spawn killez = kick\",0);
   SendPlayerFormattedText(playerid,\"4.Ne káromkogy,ne anyázz = mute/kick\",0);
   SendPlayerFormattedText(playerid,\"5.Ne floodolj = mute/kick\",0);
   SendPlayerFormattedText(playerid,\"6.Ne csúfolkodj = warn/kick\",0);
   SendPlayerFormattedText(playerid,\"7.Ne szidd az adminokat = warn/kick\",0);
   SendPlayerFormattedText(playerid,\"8.Ne hirdess,ne reklámozz = kick/ban\",0);
   SendPlayerFormattedText(playerid,\"9.Ne kérj Admin-t = warn/kick\",0);
   SendPlayerFormattedText(playerid,\"10.Ne szidd az adminokat = warn/kick\",0);
   SendPlayerFormattedText(playerid,\"11.Ne fenyegesd az adminokat = warn/kick\",0);
   SendPlayerFormattedText(playerid,\"12.Ne böcsködj,ne feszits = warn/kick/ban\",0);
return 1;
}
CMD:shop(playerid, params[]) {
 SendClientMessage(playerid, COLOR_GREEN,\"Fegyverek:\");
 SendClientMessage(playerid, COLOR_RED,\"/health=2000$\");
 SendClientMessage(playerid, COLOR_RED,\"/armour=3000$\");
 SendClientMessage(playerid, COLOR_RED,\"/chinsaw=4000$\");
 SendClientMessage(playerid, COLOR_RED,\"/m4=7000$\");
      SendClientMessage(playerid, COLOR_RED,\"/flamethrower=20000$\");
      SendClientMessage(playerid, COLOR_RED,\"/9mm=1000$\");
 SendClientMessage(playerid, COLOR_RED,\"/silence-9mm=1500$\");
 SendClientMessage(playerid, COLOR_RED,\"/eagle=3500$\");
 SendClientMessage(playerid, COLOR_WHITE,\"További dolgok /shop2\");
return 1;
}
CMD:shop2(playerid, params[]) {
 SendClientMessage(playerid, COLOR_GREEN,\"Fegyverek2:\");
 SendClientMessage(playerid, COLOR_RED,\"/sawn-off=4500$\");
 SendClientMessage(playerid, COLOR_RED,\"/combat=5000$\");
     SendClientMessage(playerid, COLOR_RED,\"/uzi=3500$\");
 SendClientMessage(playerid, COLOR_RED,\"/mp5=4500$\");
 SendClientMessage(playerid, COLOR_RED,\"/ak47=5500$\");
 SendClientMessage(playerid, COLOR_RED,\"/m4=6000$\");
 SendClientMessage(playerid, COLOR_RED,\"/shotgun=4000$\");
 SendClientMessage(playerid, COLOR_RED,\"/tec9=2500$\");
 SendClientMessage(playerid, COLOR_WHITE,\"Továbi dolgok /shop3\");
return 1;
}
CMD:shop3(playerid, params[]) {
 SendClientMessage(playerid, COLOR_GREEN,\"Fegyverek3:\");
 SendClientMessage(playerid, COLOR_RED,\"/rifle=4150$\");
 SendClientMessage(playerid, COLOR_RED,\"/sniper=4500$\");
return 1;
}
CMD:parancsok(playerid, params[]) {
   SendPlayerFormattedText(playerid,\"Parancsok:\",0);
   SendPlayerFormattedText(playerid,\"/kill-meg halsz\",0);
   SendPlayerFormattedText(playerid,\"/rep-kocsit meg javícsa\",0);
        SendPlayerFormattedText(playerid,\"/heli-helicoptert ad pénzert 70000$\",0);
        SendPlayerFormattedText(playerid,\"/me\",0);
        SendPlayerFormattedText(playerid,\"/pc-parachutet ad ingyen\",0);
        SendPlayerFormattedText(playerid,\"/stuntbonus\",0);
   SendPlayerFormattedText(playerid,\"/givecash-pénz utalás\",0);
   SendPlayerFormattedText(playerid,\"/nrg-nrg-500 ad ingyen\",0);
   SendPlayerFormattedText(playerid,\"/freeway-freeway motort ad ingyen\",0);
   return 1;
}
CMD:teles(playerid, params[]) {
   SendPlayerFormattedText(playerid,\"Teleportok:\",0);
        SendPlayerFormattedText(playerid,\"/kickstart /8track /tele-ls /tele-sf /tele-lv /ammu /grove /sf-pimp\",0);
   SendPlayerFormattedText(playerid,\"/ls-pimp /chilliad /drag /dm /dm2 /dm3 /drift /drift2 /derby\",0);
   SendPlayerFormattedText(playerid,\"/derby2 /army /lv-air /ls-air /sf-air /da-air /jizzy /jump\",0);
return 1;
}
CMD:colors(playerid, params[]) {
   SendPlayerFormattedText(playerid,\"Szinek:\",0);
   SendPlayerFormattedText(playerid,\"/magenta /medgreen /lightred /darkmagenta /lightblue /lightgreen\",0);
        SendPlayerFormattedText(playerid,\"/lemon /orangered /yellow /darkgreen /medblue /darkpurple /lightbrown\",0);
   SendPlayerFormattedText(playerid,\"/pink /orange /black /violet /lightcyan /red /lightbluegreen /gold /grayblue\",0);
   SendPlayerFormattedText(playerid,\"/bluegreen /neutralblue /white\",0);
return 1;
}
CMD:magenta(playerid, params[]) {
        SetPlayerColor(playerid, 0xA587DE0BA354);
        return 1;
        }
CMD:medgreen(playerid, params[]) {
        SetPlayerColor(playerid, 0x9CDE7180);
        return 1;
        }
CMD:lightred(playerid, params[]) {
        SetPlayerColor(playerid, 0xFF99AADD);
        return 1;
        }
CMD:darkmagenta(playerid, params[]) {
        SetPlayerColor(playerid, 0xA7105DEF);
        return 1;
        }
CMD:lightblue(playerid, params[]) {
        SetPlayerColor(playerid, 0x33CCFFAA);
        return 1;
        }
CMD:lightgreen(playerid, params[]) {
        SetPlayerColor(playerid, 0x24FF0AB9);
        return 1;
        }
CMD:lemon(playerid, params[]) {
        SetPlayerColor(playerid, 0xDDDD2357);
        return 1;
        }
CMD:orangered(playerid, params[]) {
        SetPlayerColor(playerid, 0xE9370DFC);
        return 1;
        }
CMD:yellow(playerid, params[]) {
        SetPlayerColor(playerid, 0xFFFF00AA);
        return 1;
        }
CMD:darkgreen(playerid, params[]) {
        SetPlayerColor(playerid, 0x12900BBF);
        return 1;
        }
CMD:medblue(playerid, params[]) {
        SetPlayerColor(playerid, 0x63AFF00A);
        return 1;
        }
CMD:darkpurple(playerid, params[]) {
        SetPlayerColor(playerid, 0x800080AA);
        return 1;
        }
CMD:lightbrown(playerid, params[]) {
        SetPlayerColor(playerid, 0x99934EFA);
        return 1;
        }
CMD:pink(playerid, params[]) {
        SetPlayerColor(playerid, 0xFF66FFAA);
        return 1;
        }
CMD:orange(playerid, params[]) {
        SetPlayerColor(playerid, 0xFF9900AA);
        return 1;
        }
CMD:black(playerid, params[]) {
        SetPlayerColor(playerid, 0x00000000);
        return 1;
        }
CMD:violet(playerid, params[]) {
        SetPlayerColor(playerid, 0x9955DEEE);
        return 1;
        }
CMD:lightcyan(playerid, params[]) {
        SetPlayerColor(playerid, 0xAAFFCC33);
        return 1;
        }
CMD:red(playerid, params[]) {
        SetPlayerColor(playerid, 0xAA3333AA);
        return 1;
        }
CMD:lightbluegreen(playerid, params[]) {
        SetPlayerColor(playerid, 0x0FFDD349);
        return 1;
        }
CMD:gold(playerid, params[]) {
        SetPlayerColor(playerid, 0xDEAD4370);
        return 1;
        }
CMD:grayblue(playerid, params[]) {
        SetPlayerColor(playerid, 0x456EAF67);
        return 1;
        }
CMD:bluegreen(playerid, params[]) {
        SetPlayerColor(playerid, 0x46BBAA00);
        return 1;
        }
CMD:neutralblue(playerid, params[]) {
        SetPlayerColor(playerid, 0xABCDEF01);
        return 1;
        }
CMD:white(playerid, params[]) {
        SetPlayerColor(playerid, 0xFFFFFFAA);
           return 1;
   }
CMD:jump(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,1532.2787,-1357.2721,329.4535);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,1532.2787,-1357.2721,329.4535);
 GivePlayerWeapon(playerid, 46, 200);
 }
 return 1;
 }
CMD:jizzy(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-2626.7002,1392.7729,7.1016);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-2626.7002,1392.7729,7.1016);
 }
 return 1;
 }
CMD:health(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 2000)
      {
         GivePlayerMoney(playerid, -2000);
         SendClientMessage(playerid, 0xFFFF00AA, \"élet meg véve -2000$ !\");
         SetPlayerHealth(playerid, 100);
         GameTextForPlayer(playerid, \"~r~Healed!\",1900,1);
      }
      else if(GetPlayerMoney(playerid) < 2000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 2000$ kel hozzá !\");
      }
      return 1;
   }
CMD:armour(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 3000)
      {
         GivePlayerMoney(playerid, -3000);
         SendClientMessage(playerid, 0xFFFF00AA, \"pajzs meg véve -3000$ !\");
         SetPlayerArmour(playerid, 100);
         GameTextForPlayer(playerid, \"~r~Armoured!\",1900,1);
      }
      else if(GetPlayerMoney(playerid) < 3000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 3000$ kel hozzá !\");
      }
      return 1;
   }
CMD:freeway(playerid, params[])
           {
          new Float:X;
          new Float:Y;
          new Float:Z;
          GetPlayerPos(playerid,X,Y,Z);
          CreateVehicle(463,X,Y+1,Z+1,5,3,0,90000);
          SendClientMessage(playerid, 0x00BFFFAA, \"SERVER: ingyen freeway a tied!\");
          return 1;
           }
CMD:nrg(playerid, params[])
            {
           new Float:X;
           new Float:Y;
           new Float:Z;
           GetPlayerPos(playerid,X,Y,Z);
           CreateVehicle(522,X,Y+1,Z+1,5,3,0,90000);
           SendClientMessage(playerid, 0x00BFFFAA, \"SERVER: ingyen nrg a tied!\");
           return 1;
            }
CMD:ls-air(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,2126.1204,-2560.5300,13.5469);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,2126.1204,-2560.5300,13.5469);
 }
 return 1;
 }
CMD:sf-air(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-1688.5039,-196.1701,14.1484);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-1688.5039,-196.1701,14.1484);
 }
 return 1;
 }
CMD:lv-air(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,1702.6162,1608.1442,10.3202);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,1702.6162,1608.1442,10.3202);
 }
 return 1;
 }
CMD:army(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,296.5106,1974.9750,17.6406);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,296.5106,1974.9750,17.6406);
 }
 return 1;
 }
CMD:derby2(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-1199.5333,-1068.5527,129.1338);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-1199.5333,-1068.5527,129.1338);
 }
 return 1;
 }
CMD:derby(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-2040.2617,-108.5906,35.1984);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-2040.2617,-108.5906,35.1984);
 }
 return 1;
 }
CMD:drift2(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-2510.2849,-623.0972,132.7324);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-2510.2849,-623.0972,132.7324);
 }
 return 1;
 }
CMD:drift(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-343.0616,1528.1173,75.3570);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-343.0616,1528.1173,75.3570);
 }
 return 1;
 }
CMD:dm3(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-1407.0469,1486.2013,7.1016);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-1407.0469,1486.2013,7.1016);
 }
 return 1;
 }
CMD:dm2(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,620.3115,833.7418,-42.9609);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,620.3115,833.7418,-42.9609);
 }
 return 1;
 }
CMD:dm(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-536.2773,2593.6890,53.4154);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-536.2773,2593.6890,53.4154);
 }
 return 1;
 }
CMD:da-air(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,397.9708,2539.6289,19.6311);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,397.9708,2539.6289,19.6311);
 }
 return 1;
 }
CMD:drag(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-2680.9539,1254.0300,55.6806);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-2680.9539,1254.0300,55.6806);
 }
 return 1;
 }
CMD:chilliad(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-2310.7341,-1654.3699,483.6932);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-2310.7341,-1654.3699,483.6932);
 }
 return 1;
 }
CMD:lv-pimp(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,2385.6577,1027.3882,10.8203);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,2385.6577,1027.3882,10.8203);
 }
 return 1;
 }
CMD:ls-pimp(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,1041.7820,-1034.0206,31.8991);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,1041.7820,-1034.0206,31.8991);
 }
 return 1;
 }
CMD:sf-pimp(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-2692.4758,208.7675,4.3281);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-2692.4758,208.7675,4.3281);
 }
 return 1;
 }
CMD:grove(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,2504.8965,-1668.2948,13.3696);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,2504.8965,-1668.2948,13.3696);
 }
 return 1;
 }
CMD:ammu(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,2136.2075,953.7546,10.7474);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,2136.2075,953.7546,10.7474);
 }
 return 1;
 }
CMD:tele-ls(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,2772.1746,-2006.9355,13.5547);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,2772.1746,-2006.9355,13.5547);
 }
 return 1;
 }
CMD:tele-sf(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,-1918.7202,282.9269,41.0469);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,-1918.7202,282.9269,41.0469);
 }
 return 1;
 }
CMD:tele-lv(playerid, params[]) {
 if(IsPlayerInAnyVehicle(playerid)) {
 new Float:X;
 new Float:Y;
 new Float:Z;
 new VehicleID;
 GetPlayerPos(playerid, X, Y, Z);
 VehicleID = GetPlayerVehicleID(playerid);
 SetVehiclePos(VehicleID,2326.8254,1387.0673,42.8203);
 } else {
 new Float:X;
 new Float:Y;
 new Float:Z;
 GetPlayerPos(playerid, X, Y, Z);
 SetPlayerPos(playerid,2326.8254,1387.0673,42.8203);
 }
 return 1;
 }
CMD:stuntbonus(playerid, params[]) {
      EnableStuntBonusForPlayer(playerid, 1);
      return 1;
   }
CMD:pc(playerid, params[])
   {
      GivePlayerWeapon(playerid, 46, 1);
      SendClientMessage(playerid, 0x00BFFFFF, \"adtal magadnak parachutet\");
      return 1;
   }
CMD:me(playerid, params[]) {
      new dir[256];
      dir = strtok(cmdtext, idx);
      strmid(\"tmp\", cmdtext, 4, strlen(cmdtext));
      if(!strlen(dir)) {
         SendClientMessage(playerid,COLOR_GREY,\"Használat: /me [szöveg]\");
         return 1;
      }
      dir = strtok(cmdtext, idx);
      GetPlayerName(playerid, sendername, sizeof(sendername));
      format(string, sizeof(string), \"***%s %s\", sendername, \"tmp\");
      SendClientMessageToAll(COLOR_WHITE,string);
      print(string);
      return 1;
   }
CMD:sniper(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 4500)
      {
         GivePlayerMoney(playerid, -4500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -4500$ !\");
         GivePlayerWeapon(playerid, 34, 200);
      }
      else if(GetPlayerMoney(playerid) < 4500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 4500$ kel hozzá !\");
      }
      return 1;
   }
CMD:rifle(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 4150)
      {
         GivePlayerMoney(playerid, -4150);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -4150$ !\");
         GivePlayerWeapon(playerid, 33, 200);
      }
      else if(GetPlayerMoney(playerid) < 4150)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 4150$ kel hozzá !\");
      }
      return 1;
   }
CMD:tec9(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 2500)
      {
         GivePlayerMoney(playerid, -2500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -2500$ !\");
         GivePlayerWeapon(playerid, 32, 200);
      }
      else if(GetPlayerMoney(playerid) < 2500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 2500$ kel hozzá !\");
      }
      return 1;
   }
CMD:ak47(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 5500)
      {
         GivePlayerMoney(playerid, -5500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -5500$ !\");
         GivePlayerWeapon(playerid, 30, 200);
      }
      else if(GetPlayerMoney(playerid) < 5500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 5500$ kel hozzá !\");
      }
      return 1;
   }
CMD:mp5(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 4500)
      {
         GivePlayerMoney(playerid, -4500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -4500$ !\");
         GivePlayerWeapon(playerid, 29, 200);
      }
      else if(GetPlayerMoney(playerid) < 4500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 4500$ kel hozzá !\");
      }
      return 1;
   }
CMD:uzi(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 3500)
      {
         GivePlayerMoney(playerid, -3500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve 3500$ !\");
         GivePlayerWeapon(playerid, 28, 200);
      }
      else if(GetPlayerMoney(playerid) < 3500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 3500$ kel hozzá !\");
      }
      return 1;
   }
CMD:combat(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 5000)
      {
         GivePlayerMoney(playerid, -5000);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -5000$ !\");
         GivePlayerWeapon(playerid, 27, 200);
      }
      else if(GetPlayerMoney(playerid) < 5000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 5000$ kel hozzá !\");
      }
      return 1;
   }
CMD:sawn-off(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 4500)
      {
         GivePlayerMoney(playerid, -4500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -4500$ !\");
         GivePlayerWeapon(playerid, 26, 200);
      }
      else if(GetPlayerMoney(playerid) < 4500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 4500$ kel hozzá !\");
      }
      return 1;
   }
CMD:shotgun(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 4000)
      {
         GivePlayerMoney(playerid, -4000);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -4000$ !\");
         GivePlayerWeapon(playerid, 25, 200);
      }
      else if(GetPlayerMoney(playerid) < 4000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 4000$ kel hozzá !\");
      }
      return 1;
   }
CMD:silence-9mm(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 1500)
      {
         GivePlayerMoney(playerid, -1500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -1500$ !\");
         GivePlayerWeapon(playerid, 23, 200);
      }
      else if(GetPlayerMoney(playerid) < 1500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 1500$ kel hozzá !\");
      }
      return 1;
   }
CMD:eagle(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 3500)
      {
         GivePlayerMoney(playerid, -3500);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -3500$ !\");
         GivePlayerWeapon(playerid, 24, 200);
      }
      else if(GetPlayerMoney(playerid) < 3500)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 3500$ kel hozzá !\");
      }
      return 1;
   }
CMD:9mm(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 1000)
      {
         GivePlayerMoney(playerid, -1000);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -1000$ !\");
         GivePlayerWeapon(playerid, 22, 200);
      }
      else if(GetPlayerMoney(playerid) < 1000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 1000$ kel hozzá !\");
      }
      return 1;
   }
CMD:chinsaw(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 4000)
      {
         GivePlayerMoney(playerid, -4000);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -4000$ !\");
         GivePlayerWeapon(playerid, 9, 200);
      }
      else if(GetPlayerMoney(playerid) < 4000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 4000$ kel hozzá !\");
      }
      return 1;
   }
CMD:m4(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 6000)
                  {
         GivePlayerMoney(playerid, -6000);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve -6000$ !\");
         GivePlayerWeapon(playerid, 31, 200);
      }
      else if(GetPlayerMoney(playerid) < 6000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 6000$ kel hozzá !\");
      }
      return 1;
   }
CMD:heli(playerid, params[])
   {
      new Float:X, Float:Y, Float:Z;
      GetPlayerPos(playerid, X, Y, Z);
      if(GetPlayerMoney(playerid) >= 70000)
      {
         GivePlayerMoney(playerid, -70000);
         SendClientMessage(playerid, 0xFFFF00AA, \"heli meg véve -70000$ !\");
         CreateVehicle(497, X, Y, Z + 1, 90.0, -1, -1, 1000000000);
      }
      else if(GetPlayerMoney(playerid) < 70000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 70000$ kel hozzá !\");
      }
      return 1;
   }
CMD:flamethrower(playerid, params[])
   {
      if(GetPlayerMoney(playerid) >= 20000)
      {
         GivePlayerMoney(playerid, -20000);
         SendClientMessage(playerid, 0xFFFF00AA, \"fegyver meg véve 20000$ !\");
         GivePlayerWeapon(playerid, 37, 200);
      }
      else if(GetPlayerMoney(playerid) < 20000)
      {
         SendClientMessage(playerid, 0xEB000FFF, \"Figyelem: nincs elég pénzed, 20000$ kel hozzá !\");
      }
      return 1;
   }
CMD:rep(playerid, params[])
   {
      if(IsPlayerInAnyVehicle(playerid))
      {
          SendClientMessage(playerid, COLOR_YELLOW, \"Auto: javítva !\");
         SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
      }
      else return SendClientMessage(playerid, COLOR_RED, \"SERVER: nem vagy kocsiba.\");
      return 1;
   }
CMD:8track(playerid, params[]) {
      SetPlayerInterior(playerid,7);
      ResetPlayerWeapons(playerid);
      SetPlayerPos(playerid,-1403.0116,-250.4526,1043.5341);
      SendClientMessage(playerid, COLOR_YELLOW, \"Welcome to 8-Track RC Circuit\");
      new name[MAX_PLAYER_NAME+1];
      GetPlayerName(playerid, name, sizeof(name));
      format(string, sizeof(string), \"%s has joined 8-Track RC Circuit, type /8track to join\", name);
      return 1;
   }
CMD:kickstart(playerid, params[]) {
      SetPlayerInterior(playerid,14);
      ResetPlayerWeapons(playerid);
      SetPlayerPos(playerid,-1462.9445,1562.0704,1052.7500); //);
      SendClientMessage(playerid, COLOR_YELLOW, \"***Welcome to KickStart Stadium\");
      new name[MAX_PLAYER_NAME+1];
      GetPlayerName(playerid, name, sizeof(name));
      format(string, sizeof(string), \"%s has joined KickStart Stadium, type /kickstart to join\", name);
      return 1;
   }
CMD:kill(playerid, params[]) {
      SetPlayerHealth(playerid, 0.00);
      ResetPlayerWeapons(playerid);
      return 1;
   }
CMD:givecash(playerid, params[]) {
    new tmp[256];
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp)) {
      SendClientMessage(playerid, COLOR_WHITE, \"Használat: /givecash [playerid] [öszeg]\");
      return 1;
   }
   giveplayerid = strval(tmp);
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp)) {
      SendClientMessage(playerid, COLOR_WHITE, \"Használat: /givecash [playerid] [öszeg]\");
      return 1;
   }
       moneys = strval(tmp);
   //printf(\"givecash_command: %d %d\",giveplayerid,moneys);
   if (IsPlayerConnected(giveplayerid)) {
      GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
      GetPlayerName(playerid, sendername, sizeof(sendername));
      playermoney = GetPlayerMoney(playerid);
      if (moneys > 0 && playermoney >= moneys) {
         GivePlayerMoney(playerid, (0 - moneys));
         GivePlayerMoney(giveplayerid, moneys);
         format(string, sizeof(string), \"You have sent %s(player: %d), $%d.\", giveplayer,giveplayerid, moneys);
         SendClientMessage(playerid, COLOR_YELLOW, string);
         format(string, sizeof(string), \"You have recieved $%d from %s(player: %d).\", moneys, sendername, playerid);
         SendClientMessage(giveplayerid, COLOR_YELLOW, string);
         printf(\"%s(playerid:%d) has transfered %d to %s(playerid:%d)\",sendername, playerid, moneys, giveplayer, giveplayerid);
      }
      else {
         SendClientMessage(playerid, COLOR_YELLOW, \"Invalid transaction amount.\");
      }
   }
   else {
         format(string, sizeof(string), \"%d is not an active player.\", giveplayerid);
         SendClientMessage(playerid, COLOR_YELLOW, string);
      }
   return 1;
}[/pawn]

valaki atkovertalja zcmd-be mert nem sikerul ?
« Válasz #2 Dátum: 2012. február 26. - 15:37:20 »
0 Show voters
[pawn]D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(177) : error 029: invalid expression, assumed zero
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(382) : warning 219: local variable \"X\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(383) : warning 219: local variable \"Y\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(384) : warning 219: local variable \"Z\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(385) : warning 219: local variable \"VehicleID\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(390) : warning 219: local variable \"X\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(391) : warning 219: local variable \"Y\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(392) : warning 219: local variable \"Z\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(409) : warning 219: local variable \"X\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(410) : warning 219: local variable \"Y\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(411) : warning 219: local variable \"Z\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(412) : warning 219: local variable \"VehicleID\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(417) : warning 219: local variable \"X\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(418) : warning 219: local variable \"Y\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(419) : warning 219: local variable \"Z\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(475) : warning 219: local variable \"X\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(476) : warning 219: local variable \"Y\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(477) : warning 219: local variable \"Z\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(491) : warning 219: local variable \"X\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(492) : warning 219: local variable \"Y\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(493) : warning 219: local variable \"Z\" shadows a variable at a preceding level
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(506) : error 001: expected token: \"(\", but found \"-\"
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(506) : error 001: expected token: \";\", but found \"-identifier-\"
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(506) : error 001: expected token: \";\", but found \"-\"
D:\\SAMP-SERVER\\gamemodes\\Stunt_MOD.pwn(506) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
5 Errors.[/pawn]

Nem elérhető Norby

  • 1575
    • Profil megtekintése
valaki atkovertalja zcmd-be mert nem sikerul ?
« Válasz #3 Dátum: 2012. február 26. - 15:38:41 »
0 Show voters
Már valahod definálva van az X Y Z

valaki atkovertalja zcmd-be mert nem sikerul ?
« Válasz #4 Dátum: 2012. február 26. - 15:39:21 »
0 Show voters
nem ertem  :no:

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
valaki atkovertalja zcmd-be mert nem sikerul ?
« Válasz #5 Dátum: 2012. február 26. - 15:40:25 »
0 Show voters
Idézetet írta: Norby date=1330267121\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"17586\" data-ipsquote-contentclass=\"forums_Topic
Már valahod definálva van az X Y Z
 
Kb. vagy 30x definiálva van, szóval valószínûleg az a gond :D
Töröld ki a new Float:x,Float:y,Float:z -ket, csak egy maradjon a mód tetején!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal