Szerző Téma: Reakalltolok és nem lessz semmi  (Megtekintve 479 alkalommal)

Reakalltolok és nem lessz semmi
« Dátum: 2012. május 24. - 06:30:20 »
0 Show voters
hali all!
Lenne egy kérdésem ha birom /veh és reakattolok egyre akkor nem lessz semmi mitõl?
Ez egy Script-be van ami 2 tölt be de a modba a /radio megy csak itt a script be nem mennek ezek:
 
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
if(dialogid == 1)
{
if(!response) return SendClientMessage(playerid, 0xCC0000FF, \"INFO:Megnyomtad a Mégset\");
switch(listitem)
    {
        case 0:
        {
               if(GetPVarInt(playerid, \"Lights\") == 0)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
         SetPVarInt(playerid, \"Lights\", 1);
      }
      else if(GetPVarInt(playerid, \"Lights\") == 1)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
         SetPVarInt(playerid, \"Lights\", 0);
      }
   }
   case 1:
   {
      if(GetPVarInt(playerid, \"Bonnet\") == 0)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
         SetPVarInt(playerid, \"Bonnet\", 1);
      }
      else if(GetPVarInt(playerid, \"Bonnet\") == 1)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
         SetPVarInt(playerid, \"Bonnet\", 0);
      }
   }
   case 2:
   {
      if(GetPVarInt(playerid, \"Boot\") == 0)
          {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
         SetPVarInt(playerid, \"Boot\", 1);
      }
      else if(GetPVarInt(playerid, \"Boot\") == 1)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
         SetPVarInt(playerid, \"Boot\", 0);
      }
   }
   case 3:
   {
      if(GetPVarInt(playerid, \"Doors\") == 0)
          {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective);
         SetPVarInt(playerid, \"Doors\", 1);
      }
      else if(GetPVarInt(playerid, \"Doors\") == 1)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
         SetPVarInt(playerid, \"Doors\", 0);
      }
   }
   case 4:
   {
      if(GetPVarInt(playerid, \"Engine\") == 0)
          {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
         SetPVarInt(playerid, \"Engine\", 1);
      }
      else if(GetPVarInt(playerid, \"Engine\") == 1)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
         SetPVarInt(playerid, \"Engine\", 0);
      }
   }
   case 5:
   {
      if(GetPVarInt(playerid, \"Alarm\") == 0)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
         SetPVarInt(playerid, \"Alarm\", 1);
      }
      else if(GetPVarInt(playerid, \"Alarm\") == 1)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
         SetPVarInt(playerid, \"Alarm\", 0);
      }
   }
   case 6:
   {
      ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, \"Számtábla csere\", \"Ird be mi legyen a rendszámod [A-Z, 0-9] (32 betû max)\", \"Beálit\", \"\");
   }
}
return 1;
}
new car;
car = GetPlayerVehicleID(playerid);
if(dialogid == car_DIALOG) // Menu
{
if(response)
{
            if(listitem == 0) // Wheels
   {
      ShowPlayerDialog(playerid, car_DIALOG+1, DIALOG_STYLE_LIST, \"Kerekek\", \"{FF0000}stílus 1 \\n{057CEA}stílus 2 \\n{33FF33}stílus 3 \\n{CDF917}stílus 4 \\n{33FF33}stílus 5 \\n{0019fc}stílus 6 \\nVissza\", \"Oké\", \"Mégse\");
   }
   if(listitem == 1) // Colors
   {
      ShowPlayerDialog(playerid, car_DIALOG+2, DIALOG_STYLE_LIST, \"Szinek\", \"Fekete \\n{FFFFFF}Fehér \\n{0019fc}Sötétkék \\n{057CEA}Világoskék \\n{33FF33}Zöld \\n{FF0000}Piros \\n{CDF917}Sárga \\n{FF00EA}rózsaszín \\nVissza\", \"Felrak!\", \"Mégse\");
   }
   if(listitem == 2) // Paintjobs
   {
      ShowPlayerDialog(playerid, car_DIALOG+3, DIALOG_STYLE_LIST, \"Festõmunkák\", \"{057CEA}stílus 1 \\n{CDF917}stílus 2 \\n{FF0000}stílus 3 \\nVissza\", \"Felrak!\", \"Mégse\");
            }
   if(listitem == 3) // Nitro
   {
            AddVehicleComponent(car,1010);
            }
   if(listitem == 4) // Hydraulic
   {
            AddVehicleComponent(car,1087);
            }
   if(listitem == 5) // AutoTuning
   {
new idcarro;
idcarro = GetPlayerVehicleID(playerid);
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 562)
{
AddVehicleComponent(idcarro,1046);
AddVehicleComponent(idcarro,1171);
AddVehicleComponent(idcarro,1149);
AddVehicleComponent(idcarro,1035);
AddVehicleComponent(idcarro,1147);
AddVehicleComponent(idcarro,1036);
AddVehicleComponent(idcarro,1040);
ChangeVehiclePaintjob(idcarro, 2);
ChangeVehicleColor(idcarro, 6, 6);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
{
AddVehicleComponent(idcarro,1028);
AddVehicleComponent(idcarro,1169);
AddVehicleComponent(idcarro,1141);
AddVehicleComponent(idcarro,1032);
AddVehicleComponent(idcarro,1138);
AddVehicleComponent(idcarro,1026);
AddVehicleComponent(idcarro,1027);
ChangeVehiclePaintjob(idcarro, 2);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 565)
{
AddVehicleComponent(idcarro,1046);
AddVehicleComponent(idcarro,1153);
AddVehicleComponent(idcarro,1150);
AddVehicleComponent(idcarro,1054);
AddVehicleComponent(idcarro,1049);
AddVehicleComponent(idcarro,1047);
AddVehicleComponent(idcarro,1051);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 559)
{
AddVehicleComponent(idcarro,1065);
AddVehicleComponent(idcarro,1160);
AddVehicleComponent(idcarro,1159);
AddVehicleComponent(idcarro,1067);
AddVehicleComponent(idcarro,1162);
AddVehicleComponent(idcarro,1069);
AddVehicleComponent(idcarro,1071);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 1);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 561)
{
AddVehicleComponent(idcarro,1064);
AddVehicleComponent(idcarro,1155);
AddVehicleComponent(idcarro,1154);
AddVehicleComponent(idcarro,1055);
AddVehicleComponent(idcarro,1158);
AddVehicleComponent(idcarro,1056);
AddVehicleComponent(idcarro,1062);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 558)
{
AddVehicleComponent(idcarro,1089);
AddVehicleComponent(idcarro,1166);
AddVehicleComponent(idcarro,1168);
AddVehicleComponent(idcarro,1088);
AddVehicleComponent(idcarro,1164);
AddVehicleComponent(idcarro,1090);
AddVehicleComponent(idcarro,1094);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 575)
{
AddVehicleComponent(idcarro,1044);
AddVehicleComponent(idcarro,1174);
AddVehicleComponent(idcarro,1176);
AddVehicleComponent(idcarro,1042);
AddVehicleComponent(idcarro,1099);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 0);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 534)
{
AddVehicleComponent(idcarro,1126);
    AddVehicleComponent(idcarro,1179);
AddVehicleComponent(idcarro,1180);
AddVehicleComponent(idcarro,1122);
AddVehicleComponent(idcarro,1101);
AddVehicleComponent(idcarro,1125);
AddVehicleComponent(idcarro,1123);
AddVehicleComponent(idcarro,1100);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 536)
{
AddVehicleComponent(idcarro,1104);
AddVehicleComponent(idcarro,1182);
AddVehicleComponent(idcarro,1184);
AddVehicleComponent(idcarro,1108);
AddVehicleComponent(idcarro,1107);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 1);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 567)
{
AddVehicleComponent(idcarro,1129);
AddVehicleComponent(idcarro,1189);
AddVehicleComponent(idcarro,1187);
AddVehicleComponent(idcarro,1102);
AddVehicleComponent(idcarro,1133);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
{
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,1087);
AddVehicleComponent(idcarro,1081);
AddVehicleComponent(idcarro,1139);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 400)
{
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,1087);
AddVehicleComponent(idcarro,1018);
AddVehicleComponent(idcarro,1013);
AddVehicleComponent(idcarro,1081);
AddVehicleComponent(idcarro,1086);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 401)
{
AddVehicleComponent(idcarro,1086);
AddVehicleComponent(idcarro,1139);
AddVehicleComponent(idcarro,1081);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,1087);
AddVehicleComponent(idcarro,1012);
AddVehicleComponent(idcarro,1013);
AddVehicleComponent(idcarro,1042);
AddVehicleComponent(idcarro,1043);
AddVehicleComponent(idcarro,1018);
AddVehicleComponent(idcarro,1006);
AddVehicleComponent(idcarro,1007);
AddVehicleComponent(idcarro,1017);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 576)
{
ChangeVehiclePaintjob(idcarro,2);
AddVehicleComponent(idcarro,1191);
AddVehicleComponent(idcarro,1193);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,1018);
AddVehicleComponent(idcarro,1081);
AddVehicleComponent(idcarro,1087);
AddVehicleComponent(idcarro,1134);
AddVehicleComponent(idcarro,1137);
}
else
{
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
}
            }
}
return 1;
}
if(dialogid == car_DIALOG+1) // Wheels
{
if(response)
{
   if(listitem == 0) // Style 1
   {
   AddVehicleComponent(car,1084);
   }
   if(listitem == 1) // Style 2
   {
   AddVehicleComponent(car,1073);
   }
   if(listitem == 2) // Style 3
   {
   AddVehicleComponent(car,1075);
   }
   if(listitem == 3) // Style 4
   {
   AddVehicleComponent(car,1077);
   }
   if(listitem == 4) // Style 5
   {
   AddVehicleComponent(car,1079);
   }
   if(listitem == 5) // Style 6
   {
   AddVehicleComponent(car,1080);
   }
   if(listitem == 6) // Back
           {
   ShowPlayerDialog(playerid, car_DIALOG, DIALOG_STYLE_LIST, \"Tuning Menü\", \"{057CEA}Kerekek\\n{FF0000}Szinek\\n{33FF33}Festõmunkák\\n{CDF917}Nitro\\n{33CCFF}Hidrólika\\n{FFFFFF}AutoTuning\", \"Választ\", \"Mégse\");
   }
}
return 1;
}
if(dialogid == car_DIALOG+2) // Colors
{
if(response)
{
   if(listitem == 0) // Black
   {
   ChangeVehicleColor(car,0,0);
   }
   if(listitem == 1) // White
   {
   ChangeVehicleColor(car,1,1);
   }
   if(listitem == 2) // Dark Blue
   {
   ChangeVehicleColor(car,425,425);
   }
   if(listitem == 3) // Light Blue
   {
   ChangeVehicleColor(car,2,2);
   }
   if(listitem == 4) // Green
   {
   ChangeVehicleColor(car,16,16);
   }
   if(listitem == 5) // Red
   {
   ChangeVehicleColor(car,3,3);
   }
   if(listitem == 6) // Yellow
   {
   ChangeVehicleColor(car,6,6);
   }
   if(listitem == 7) // Pink
   {
   ChangeVehicleColor(car,146,146);
   }
   if(listitem == 8) // Back
   {
   ShowPlayerDialog(playerid, car_DIALOG, DIALOG_STYLE_LIST, \"Tuning Menü\", \"{057CEA}Kerekek\\n{FF0000}Szinek\\n{33FF33}Festõmunkák\\n{CDF917}Nitro\\n{33CCFF}Hidrólika\\n{FFFFFF}AutoTuning\", \"Választ\", \"Mégse\");
   }
}
return 1;
}
if(dialogid == car_DIALOG+3) // Paintjobs
{
if(response)
{
   if(listitem == 0) // Style 1
   {
   ChangeVehiclePaintjob(car,0);
   }
   if(listitem == 1) // Style 2
   {
   ChangeVehiclePaintjob(car,1);
   }
   if(listitem == 2) // Style 3
   {
   ChangeVehiclePaintjob(car,2);
   }
   if(listitem == 4) // Back
   {
   ShowPlayerDialog(playerid, car_DIALOG, DIALOG_STYLE_LIST, \"Tuning Menü\", \"{057CEA}Kerekek\\n{FF0000}Szinek\\n{33FF33}Festõmunkák\\n{CDF917}Nitro\\n{33CCFF}Hidrólika\\n{FFFFFF}AutoTuning\", \"Választ\", \"Mégse\");
   }
}
}
if(dialogid == dialog_1)
{
SetPlayerSkin(playerid,strval(inputtext));
SendClientMessage(playerid,piros,\"A Skined Skieresen lecserélted!\");
return 1;
}
if(dialogid == 2)
{
    if(response)
    {
   new Float:vX, Float:vY, Float:vZ, Float:vA;
   SetVehicleNumberPlate(veh, inputtext);
   GetVehiclePos(veh,vX,vY,vZ);
            GetVehicleZAngle(veh,vA);
           SetVehicleToRespawn(veh);
            SetVehiclePos(veh,vX,vY,vZ);
             PutPlayerInVehicle(playerid,veh,0);
            SetVehicleZAngle(veh,vA);
   return 1;
}
if(dialogid == bugdialog && response){
    if(!inputtext[0]) return ShowPlayerDialog(playerid,bugdialog,DIALOG_STYLE_INPUT,\"BUG/Hiba jelentése\", \"Nem írtál be szöveget!\",\"Elküld\",\"Mégse\");
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
        new File:pos=fopen(\"bug.txt\", io_append);
//====Dátum=====
        new Year, Month, Day;
getdate(Year, Month, Day);
//====Idõ=====
new Hour, Minute, Second;
gettime(Hour, Minute, Second);
        format(string, 256, \"\\n\\r[Dátum: %02d/%02d/%d][idõ: %02d:%02d:%02d]  %s bejelentése: %s\\n\\r\",Day, Month, Year, Hour, Minute, Second, name, inputtext);
        fwrite(pos, string);
        fclose(pos);
SendClientMessage(playerid,0xFFFF00AA,\"Jelentés elküldve!\");
return 1;
}
return 1;
}
if ( dialogid == Weapons_Dialog )
{
    if ( response )
    {
        ResetPlayerWeapons( playerid );
   switch( listitem )
   {
       case 0: GivePlayerWeapon( playerid, 33, 99999 ),SendClientMessage( playerid, 0xFFBF00FF, \"Hallövõldözés:{FFFFFF} A kiválasztott {FFBF00}Country Rifle{FFFFFF} mint a fegyver!\");
       case 1: GivePlayerWeapon( playerid, 34, 99999 ),SendClientMessage( playerid, 0xFFBF00FF, \"Hallövõldözés:{FFFFFF} A kiválasztott {FFBF00}Sniper{FFFFFF} mint a fegyver!\");
       case 2: GivePlayerWeapon( playerid, 31, 99999 ),SendClientMessage( playerid, 0xFFBF00FF, \"Hallövõldözés:{FFFFFF} A kiválasztott {FFBF00}M4{FFFFFF} mint a fegyver!\");
       case 3: GivePlayerWeapon( playerid, 30, 99999 ),SendClientMessage( playerid, 0xFFBF00FF, \"Hallövõldözés:{FFFFFF} A kiválasztott {FFBF00}AK47{FFFFFF} mint a fegyver!\");
   }
   GetPlayerPos( playerid, OnArrow[ 0 ][ playerid ], OnArrow[ 1 ][ playerid ] ,OnArrow[ 2 ][ playerid ] );
        Shooting[ playerid ] = 1;
        PlayerObjects[playerid] = 20;
        Objects_Hit2[ playerid ] = 0;
        LoadAimObjects( playerid );
    for(new i=0; i<=20; i++)
   {
      new rand_val = random( sizeof( Random_Object_Speed ) );
       MovePlayerObject(playerid, A_Objects[playerid], 790.6284, AimObject[pObjectY][playerid], AimObject[pObjectZ][playerid], Random_Object_Speed[rand_val]);
   }
   GameTextForPlayer( playerid, \"~r~~n~~n~~n~~n~~n~~n~~n~Elso lövés!\", 2000, 3 );
}
 
}
return 0;
}

Reakalltolok és nem lessz semmi
« Válasz #1 Dátum: 2012. május 24. - 06:30:20 »
0 Show voters
hali all!
Lenne egy kérdésem ha birom /veh és reakattolok egyre akkor nem lessz semmi mitõl?
Ez egy Script-be van ami 2 tölt be de a modba a /radio megy csak itt a script be nem mennek ezek:
 
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
if(dialogid == 1)
{
if(!response) return SendClientMessage(playerid, 0xCC0000FF, \"INFO:Megnyomtad a Mégset\");
switch(listitem)
    {
        case 0:
        {
               if(GetPVarInt(playerid, \"Lights\") == 0)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
         SetPVarInt(playerid, \"Lights\", 1);
      }
      else if(GetPVarInt(playerid, \"Lights\") == 1)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
         SetPVarInt(playerid, \"Lights\", 0);
      }
   }
   case 1:
   {
      if(GetPVarInt(playerid, \"Bonnet\") == 0)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
         SetPVarInt(playerid, \"Bonnet\", 1);
      }
      else if(GetPVarInt(playerid, \"Bonnet\") == 1)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
         SetPVarInt(playerid, \"Bonnet\", 0);
      }
   }
   case 2:
   {
      if(GetPVarInt(playerid, \"Boot\") == 0)
          {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
         SetPVarInt(playerid, \"Boot\", 1);
      }
      else if(GetPVarInt(playerid, \"Boot\") == 1)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
         SetPVarInt(playerid, \"Boot\", 0);
      }
   }
   case 3:
   {
      if(GetPVarInt(playerid, \"Doors\") == 0)
          {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective);
         SetPVarInt(playerid, \"Doors\", 1);
      }
      else if(GetPVarInt(playerid, \"Doors\") == 1)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
         SetPVarInt(playerid, \"Doors\", 0);
      }
   }
   case 4:
   {
      if(GetPVarInt(playerid, \"Engine\") == 0)
          {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
         SetPVarInt(playerid, \"Engine\", 1);
      }
      else if(GetPVarInt(playerid, \"Engine\") == 1)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
         SetPVarInt(playerid, \"Engine\", 0);
      }
   }
   case 5:
   {
      if(GetPVarInt(playerid, \"Alarm\") == 0)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
         SetPVarInt(playerid, \"Alarm\", 1);
      }
      else if(GetPVarInt(playerid, \"Alarm\") == 1)
      {
         GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
         SetPVarInt(playerid, \"Alarm\", 0);
      }
   }
   case 6:
   {
      ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, \"Számtábla csere\", \"Ird be mi legyen a rendszámod [A-Z, 0-9] (32 betû max)\", \"Beálit\", \"\");
   }
}
return 1;
}
new car;
car = GetPlayerVehicleID(playerid);
if(dialogid == car_DIALOG) // Menu
{
if(response)
{
            if(listitem == 0) // Wheels
   {
      ShowPlayerDialog(playerid, car_DIALOG+1, DIALOG_STYLE_LIST, \"Kerekek\", \"{FF0000}stílus 1 \\n{057CEA}stílus 2 \\n{33FF33}stílus 3 \\n{CDF917}stílus 4 \\n{33FF33}stílus 5 \\n{0019fc}stílus 6 \\nVissza\", \"Oké\", \"Mégse\");
   }
   if(listitem == 1) // Colors
   {
      ShowPlayerDialog(playerid, car_DIALOG+2, DIALOG_STYLE_LIST, \"Szinek\", \"Fekete \\n{FFFFFF}Fehér \\n{0019fc}Sötétkék \\n{057CEA}Világoskék \\n{33FF33}Zöld \\n{FF0000}Piros \\n{CDF917}Sárga \\n{FF00EA}rózsaszín \\nVissza\", \"Felrak!\", \"Mégse\");
   }
   if(listitem == 2) // Paintjobs
   {
      ShowPlayerDialog(playerid, car_DIALOG+3, DIALOG_STYLE_LIST, \"Festõmunkák\", \"{057CEA}stílus 1 \\n{CDF917}stílus 2 \\n{FF0000}stílus 3 \\nVissza\", \"Felrak!\", \"Mégse\");
            }
   if(listitem == 3) // Nitro
   {
            AddVehicleComponent(car,1010);
            }
   if(listitem == 4) // Hydraulic
   {
            AddVehicleComponent(car,1087);
            }
   if(listitem == 5) // AutoTuning
   {
new idcarro;
idcarro = GetPlayerVehicleID(playerid);
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 562)
{
AddVehicleComponent(idcarro,1046);
AddVehicleComponent(idcarro,1171);
AddVehicleComponent(idcarro,1149);
AddVehicleComponent(idcarro,1035);
AddVehicleComponent(idcarro,1147);
AddVehicleComponent(idcarro,1036);
AddVehicleComponent(idcarro,1040);
ChangeVehiclePaintjob(idcarro, 2);
ChangeVehicleColor(idcarro, 6, 6);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
{
AddVehicleComponent(idcarro,1028);
AddVehicleComponent(idcarro,1169);
AddVehicleComponent(idcarro,1141);
AddVehicleComponent(idcarro,1032);
AddVehicleComponent(idcarro,1138);
AddVehicleComponent(idcarro,1026);
AddVehicleComponent(idcarro,1027);
ChangeVehiclePaintjob(idcarro, 2);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 565)
{
AddVehicleComponent(idcarro,1046);
AddVehicleComponent(idcarro,1153);
AddVehicleComponent(idcarro,1150);
AddVehicleComponent(idcarro,1054);
AddVehicleComponent(idcarro,1049);
AddVehicleComponent(idcarro,1047);
AddVehicleComponent(idcarro,1051);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 559)
{
AddVehicleComponent(idcarro,1065);
AddVehicleComponent(idcarro,1160);
AddVehicleComponent(idcarro,1159);
AddVehicleComponent(idcarro,1067);
AddVehicleComponent(idcarro,1162);
AddVehicleComponent(idcarro,1069);
AddVehicleComponent(idcarro,1071);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 1);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 561)
{
AddVehicleComponent(idcarro,1064);
AddVehicleComponent(idcarro,1155);
AddVehicleComponent(idcarro,1154);
AddVehicleComponent(idcarro,1055);
AddVehicleComponent(idcarro,1158);
AddVehicleComponent(idcarro,1056);
AddVehicleComponent(idcarro,1062);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 558)
{
AddVehicleComponent(idcarro,1089);
AddVehicleComponent(idcarro,1166);
AddVehicleComponent(idcarro,1168);
AddVehicleComponent(idcarro,1088);
AddVehicleComponent(idcarro,1164);
AddVehicleComponent(idcarro,1090);
AddVehicleComponent(idcarro,1094);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 575)
{
AddVehicleComponent(idcarro,1044);
AddVehicleComponent(idcarro,1174);
AddVehicleComponent(idcarro,1176);
AddVehicleComponent(idcarro,1042);
AddVehicleComponent(idcarro,1099);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 0);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 534)
{
AddVehicleComponent(idcarro,1126);
    AddVehicleComponent(idcarro,1179);
AddVehicleComponent(idcarro,1180);
AddVehicleComponent(idcarro,1122);
AddVehicleComponent(idcarro,1101);
AddVehicleComponent(idcarro,1125);
AddVehicleComponent(idcarro,1123);
AddVehicleComponent(idcarro,1100);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 536)
{
AddVehicleComponent(idcarro,1104);
AddVehicleComponent(idcarro,1182);
AddVehicleComponent(idcarro,1184);
AddVehicleComponent(idcarro,1108);
AddVehicleComponent(idcarro,1107);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 1);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 567)
{
AddVehicleComponent(idcarro,1129);
AddVehicleComponent(idcarro,1189);
AddVehicleComponent(idcarro,1187);
AddVehicleComponent(idcarro,1102);
AddVehicleComponent(idcarro,1133);
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
ChangeVehiclePaintjob(idcarro, 2);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
{
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,1087);
AddVehicleComponent(idcarro,1081);
AddVehicleComponent(idcarro,1139);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 400)
{
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,1087);
AddVehicleComponent(idcarro,1018);
AddVehicleComponent(idcarro,1013);
AddVehicleComponent(idcarro,1081);
AddVehicleComponent(idcarro,1086);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 401)
{
AddVehicleComponent(idcarro,1086);
AddVehicleComponent(idcarro,1139);
AddVehicleComponent(idcarro,1081);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,1087);
AddVehicleComponent(idcarro,1012);
AddVehicleComponent(idcarro,1013);
AddVehicleComponent(idcarro,1042);
AddVehicleComponent(idcarro,1043);
AddVehicleComponent(idcarro,1018);
AddVehicleComponent(idcarro,1006);
AddVehicleComponent(idcarro,1007);
AddVehicleComponent(idcarro,1017);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 576)
{
ChangeVehiclePaintjob(idcarro,2);
AddVehicleComponent(idcarro,1191);
AddVehicleComponent(idcarro,1193);
AddVehicleComponent(idcarro,1010);
AddVehicleComponent(idcarro,1018);
AddVehicleComponent(idcarro,1081);
AddVehicleComponent(idcarro,1087);
AddVehicleComponent(idcarro,1134);
AddVehicleComponent(idcarro,1137);
}
else
{
AddVehicleComponent(idcarro,nitro);
AddVehicleComponent(idcarro,rodawire);
AddVehicleComponent(idcarro,suspensao);
}
            }
}
return 1;
}
if(dialogid == car_DIALOG+1) // Wheels
{
if(response)
{
   if(listitem == 0) // Style 1
   {
   AddVehicleComponent(car,1084);
   }
   if(listitem == 1) // Style 2
   {
   AddVehicleComponent(car,1073);
   }
   if(listitem == 2) // Style 3
   {
   AddVehicleComponent(car,1075);
   }
   if(listitem == 3) // Style 4
   {
   AddVehicleComponent(car,1077);
   }
   if(listitem == 4) // Style 5
   {
   AddVehicleComponent(car,1079);
   }
   if(listitem == 5) // Style 6
   {
   AddVehicleComponent(car,1080);
   }
   if(listitem == 6) // Back
           {
   ShowPlayerDialog(playerid, car_DIALOG, DIALOG_STYLE_LIST, \"Tuning Menü\", \"{057CEA}Kerekek\\n{FF0000}Szinek\\n{33FF33}Festõmunkák\\n{CDF917}Nitro\\n{33CCFF}Hidrólika\\n{FFFFFF}AutoTuning\", \"Választ\", \"Mégse\");
   }
}
return 1;
}
if(dialogid == car_DIALOG+2) // Colors
{
if(response)
{
   if(listitem == 0) // Black
   {
   ChangeVehicleColor(car,0,0);
   }
   if(listitem == 1) // White
   {
   ChangeVehicleColor(car,1,1);
   }
   if(listitem == 2) // Dark Blue
   {
   ChangeVehicleColor(car,425,425);
   }
   if(listitem == 3) // Light Blue
   {
   ChangeVehicleColor(car,2,2);
   }
   if(listitem == 4) // Green
   {
   ChangeVehicleColor(car,16,16);
   }
   if(listitem == 5) // Red
   {
   ChangeVehicleColor(car,3,3);
   }
   if(listitem == 6) // Yellow
   {
   ChangeVehicleColor(car,6,6);
   }
   if(listitem == 7) // Pink
   {
   ChangeVehicleColor(car,146,146);
   }
   if(listitem == 8) // Back
   {
   ShowPlayerDialog(playerid, car_DIALOG, DIALOG_STYLE_LIST, \"Tuning Menü\", \"{057CEA}Kerekek\\n{FF0000}Szinek\\n{33FF33}Festõmunkák\\n{CDF917}Nitro\\n{33CCFF}Hidrólika\\n{FFFFFF}AutoTuning\", \"Választ\", \"Mégse\");
   }
}
return 1;
}
if(dialogid == car_DIALOG+3) // Paintjobs
{
if(response)
{
   if(listitem == 0) // Style 1
   {
   ChangeVehiclePaintjob(car,0);
   }
   if(listitem == 1) // Style 2
   {
   ChangeVehiclePaintjob(car,1);
   }
   if(listitem == 2) // Style 3
   {
   ChangeVehiclePaintjob(car,2);
   }
   if(listitem == 4) // Back
   {
   ShowPlayerDialog(playerid, car_DIALOG, DIALOG_STYLE_LIST, \"Tuning Menü\", \"{057CEA}Kerekek\\n{FF0000}Szinek\\n{33FF33}Festõmunkák\\n{CDF917}Nitro\\n{33CCFF}Hidrólika\\n{FFFFFF}AutoTuning\", \"Választ\", \"Mégse\");
   }
}
}
if(dialogid == dialog_1)
{
SetPlayerSkin(playerid,strval(inputtext));
SendClientMessage(playerid,piros,\"A Skined Skieresen lecserélted!\");
return 1;
}
if(dialogid == 2)
{
    if(response)
    {
   new Float:vX, Float:vY, Float:vZ, Float:vA;
   SetVehicleNumberPlate(veh, inputtext);
   GetVehiclePos(veh,vX,vY,vZ);
            GetVehicleZAngle(veh,vA);
           SetVehicleToRespawn(veh);
            SetVehiclePos(veh,vX,vY,vZ);
             PutPlayerInVehicle(playerid,veh,0);
            SetVehicleZAngle(veh,vA);
   return 1;
}
if(dialogid == bugdialog && response){
    if(!inputtext[0]) return ShowPlayerDialog(playerid,bugdialog,DIALOG_STYLE_INPUT,\"BUG/Hiba jelentése\", \"Nem írtál be szöveget!\",\"Elküld\",\"Mégse\");
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
        new File:pos=fopen(\"bug.txt\", io_append);
//====Dátum=====
        new Year, Month, Day;
getdate(Year, Month, Day);
//====Idõ=====
new Hour, Minute, Second;
gettime(Hour, Minute, Second);
        format(string, 256, \"\\n\\r[Dátum: %02d/%02d/%d][idõ: %02d:%02d:%02d]  %s bejelentése: %s\\n\\r\",Day, Month, Year, Hour, Minute, Second, name, inputtext);
        fwrite(pos, string);
        fclose(pos);
SendClientMessage(playerid,0xFFFF00AA,\"Jelentés elküldve!\");
return 1;
}
return 1;
}
if ( dialogid == Weapons_Dialog )
{
    if ( response )
    {
        ResetPlayerWeapons( playerid );
   switch( listitem )
   {
       case 0: GivePlayerWeapon( playerid, 33, 99999 ),SendClientMessage( playerid, 0xFFBF00FF, \"Hallövõldözés:{FFFFFF} A kiválasztott {FFBF00}Country Rifle{FFFFFF} mint a fegyver!\");
       case 1: GivePlayerWeapon( playerid, 34, 99999 ),SendClientMessage( playerid, 0xFFBF00FF, \"Hallövõldözés:{FFFFFF} A kiválasztott {FFBF00}Sniper{FFFFFF} mint a fegyver!\");
       case 2: GivePlayerWeapon( playerid, 31, 99999 ),SendClientMessage( playerid, 0xFFBF00FF, \"Hallövõldözés:{FFFFFF} A kiválasztott {FFBF00}M4{FFFFFF} mint a fegyver!\");
       case 3: GivePlayerWeapon( playerid, 30, 99999 ),SendClientMessage( playerid, 0xFFBF00FF, \"Hallövõldözés:{FFFFFF} A kiválasztott {FFBF00}AK47{FFFFFF} mint a fegyver!\");
   }
   GetPlayerPos( playerid, OnArrow[ 0 ][ playerid ], OnArrow[ 1 ][ playerid ] ,OnArrow[ 2 ][ playerid ] );
        Shooting[ playerid ] = 1;
        PlayerObjects[playerid] = 20;
        Objects_Hit2[ playerid ] = 0;
        LoadAimObjects( playerid );
    for(new i=0; i<=20; i++)
   {
      new rand_val = random( sizeof( Random_Object_Speed ) );
       MovePlayerObject(playerid, A_Objects[playerid], 790.6284, AimObject[pObjectY][playerid], AimObject[pObjectZ][playerid], Random_Object_Speed[rand_val]);
   }
   GameTextForPlayer( playerid, \"~r~~n~~n~~n~~n~~n~~n~~n~Elso lövés!\", 2000, 3 );
}
 
}
return 0;
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal