Szerző Téma: /animok /börtön bug  (Megtekintve 794 alkalommal)

/animok /börtön bug
« Dátum: 2012. november 06. - 19:10:19 »
0 Show voters
Üdv az a problémám hogy, mikor berakok egy illetõt a börtönbe akkor beírom a parancsot.
Például Beírom hogy /börtön 800 6
Akkor Nem ID 6 playert rakja a börtönbe hanem valaki mást. Ebben A Bugban kéne a Segítség A Jutalom Persze Jár Pluszocska!!!
Kódrész:
 
   if(strcmp(cmd, \"/börtön\", true) == 0 || strcmp(cmd, \"/borton\", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp))
   {
      SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLAT: /börtön [idõtartam] [indok]\");
      return 1;
   }
   new time = strval(tmp);
   if(time < 30 || time > 2000) { SendClientMessage(playerid, COLOR_GRAD2, \"Az idõtartam 30 másodperc és 2000 másodperc között legyen\"); return 1; }
   new suspect = GetClosestPlayer(playerid);
   new giveplayername[MAX_PLAYER_NAME];
   GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
   new length = strlen(cmdtext);
   while ((idx < length) && (cmdtext[idx] <= \' \'))
   {
   idx++;
   }
   new offset = idx;
   new result[64];
   while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
   {
   result[idx - offset] = cmdtext[idx];
   idx++;
   }
   result[idx - offset] = EOS;
   if(!strlen(result))
   {
   SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLAT: /börtön [idõtartam] [indok]\");
   return 1;
   }
   if(IsPlayerConnected(suspect))
   {
       if(PlayerToPoint(6.0, playerid, -1301.0054,2708.2629,50.1141))
       {
                if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
                {
                    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][szervTag] == 4 || PlayerInfo[playerid][szervLeader] == 4 || PlayerInfo[playerid][szervTag] == 2 || PlayerInfo[playerid][szervLeader] == 2)
            {
                         if(PlayerInfo[playerid][pRank] == 1) { SendClientMessage(playerid, COLOR_GREY, \"Kadét rangal nem tudsz lecsukni senkit!\"); return 1; }
               if(PlayerInfo[playerid][pRank] == 2) if(time > 2000) { SendClientMessage(playerid, COLOR_GRAD2, \"Õrmester (katonáknak 2es) ranggal csak 2000 mp-re tudsz lecsukni!\"); return 1; }
               if(PlayerInfo[playerid][pRank] == 3) if(time > 2000) { SendClientMessage(playerid, COLOR_GRAD2, \"Zászlós (katonáknak 3as) ranggal csak 2000 mp-re tudsz lecsukni!\"); return 1; }
               if(PlayerInfo[playerid][pRank] == 4) if(time > 2000) { SendClientMessage(playerid, COLOR_GRAD2, \"Hadmagy (katonáknak 4es) ranggal csak 2000 mp-re tudsz lecsukni!\"); return 1; }
               if(PlayerInfo[playerid][pRank] == 5) if(time > 2000) { SendClientMessage(playerid, COLOR_GRAD2, \"Ezredes (katonáknak 5ös) ranggal csak 2000 mp-re tudsz lecsukni!\"); return 1; }
               if(PlayerInfo[playerid][szervTag] == 4 || PlayerInfo[playerid][szervLeader] == 4) if(time > 2000) { SendClientMessage(playerid, COLOR_GRAD2, \"Mivel S.W.A.T tag vagy ezért 2000 másodpercig tudsz lecsukni!\"); return 1; }
               SafeResetPlayerWeapons(suspect);
               new nev[32];
               GetPlayerName(playerid, nev, sizeof(nev));
               format(stringx, sizeof(stringx), \"* %s lecsukott téged %d másodpercre | Oka: %s\", nev, time,result);
               SendClientMessage(suspect, COLOR_LIGHTBLUE, stringx);
               PlayerInfo[playerid][XP] += time/20;
               PlayerInfo[playerid][Penz] += (time/20)*25;
               SafeGivePlayerMoney(playerid, (time/20)*25);
               varoskassza -= (time/20)*25;
               format(stringx, sizeof(stringx), \"Lecsuktad %s %d másodpercre! Kaptál %d XP-t és %d$-t!\", rag(giveplayername,3), time, time/20, (time/20)*25);
               SendClientMessage(playerid, COLOR_LIGHTBLUE, stringx);
               format(stringx, sizeof(stringx),\"<< %s rendõr lecsukta %s %d másodpercre | Oka: %s >>\", nev, rag(giveplayername,3), time,result);
               ABroadCast(COLOR_ADMIN,stringx,2);
               new h,mi,s,y,m,d;
               getdate(y,m,d);
               gettime(h,mi,s);
               format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s rendõr lecsukta %s %d másodpercre | Oka: %s\",y,m,d,h,mi,s, nev, rag(giveplayername,3), time,result);
               LoOoG(stringx);
               if(PlayerToPoint(6.0, playerid, -1301.0054,2708.2629,50.1141)) SetPlayerVirtualWorld(suspect,0);
               new randomj;
               randomj = random(sizeof(RandomJailSpawn));
               SetPlayerPos(suspect, RandomJailSpawn[randomj][0], RandomJailSpawn[randomj][1], RandomJailSpawn[randomj][2]);
               SetPlayerInterior(suspect, 0);
               PlayerInfo[suspect][pJailTime] = time;
               PlayerInfo[suspect][pJailed] = 3;
               PlayerCuffed[suspect] = 0;
               PlayerCuffedTime[suspect] = 0;
               TogglePlayerControllable(suspect,1);
               ClearAnimations(giveplayerid);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy rendõr.\");
            }
         }
      }
      else SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy a börtönnél.\");
   }
   else
   {
         SendClientMessage(playerid, COLOR_GREY, \"Nincs senki a közelben.\");
      return 1;
   }
}
return 1;
}

 
2. Problémám /animok parancs....Bugol....beírom a parancsot ki is listázza az animációkat de ki írja nincs ilyen parancs vagy rosszul írtam be ennek a javításában kérnék segítséget még ezért is jár a pluszocska!
Animok Kódrész:
 
//---------------------------------[Animok]-----------------------//
if(JustDied[playerid] == 0)
{
if(strcmp(cmd, \"/animok\", true) == 0)
{
new nev[32];
GetPlayerName(playerid, nev, sizeof(nev));
new h,mi,s,y,m,d;
getdate(y,m,d);
gettime(h,mi,s);
format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s megnézte a szerveren elérhetõ animok listáját.\",y,m,d,h,mi,s,nev);
LoOoG(stringx);
    SendClientMessage(playerid, 0x000000, \"________________________________________________________________________________________________________________________\");
    SendClientMessage(playerid,COLOR_YELLOW2,\" /fallback /injured /push /handsup /bomb /lookout /részeg /getarrested /sup /leül2 /táraz /fekszik /fekszik2\");
        SendClientMessage(playerid,COLOR_YELLOW2,\"/kosár /headbutt /medic /spray /rabol /taichi /csók /telófelvesz /telólerak /crossarms /eszik /ráfog\");
        SendClientMessage(playerid,COLOR_YELLOW2,\"/deal /crack /fall /smoke /leül /beszél /tánc /lowbodypush/fucku /strip /hide /rókázik  /bat /highthrow\");
        SendClientMessage(playerid,COLOR_YELLOW2,\"/koface /akick /kostomach /rollfall /carjacked1 /carjacked2 /rcarjack1 /rcarjack2 /lcarjack1 /lcarjack2\");
        SendClientMessage(playerid,COLOR_YELLOW2,\"/lifejump /exhaust /leftslap /carlock /hoodfrisked /lightcig /röhög /tapcig /box /bíztat\");
        SendClientMessage(playerid,COLOR_YELLOW2,\"/kiabál /késel /cop /elbow /kneekick /airkick /gkick /gpunch /fstance /lowthrow /finger\");
        SendClientMessage(playerid,COLOR_YELLOW2,\"/pisil /lean /fut /hoki\");
        SendClientMessage(playerid, 0x000000, \"________________________________________________________________________________________________________________________\");
}
if(strcmp(cmd, \"/pisil\", true) == 0)
{
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
        PlayerInfo[playerid][szuksegtimer2] = 1;
        return 1;
    }
if(strcmp(cmd, \"/carjacked1\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"CAR_jackedLHS\",4.0,0,1,1,1,0);
         return 1;
    }
       if(strcmp(cmd, \"/carjacked2\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"CAR_jackedRHS\",4.0,0,1,1,1,0);
         return 1;
    }
   if(strcmp(cmd, \"/handsup\", true) == 0)
 {
ApplyAnimation(playerid, \"ROB_BANK\",\"SHP_HandsUp_Scr\", 4.0, 0, 1, 1, 1, 0);
        return 1;
    }
   if(strcmp(cmd, \"/telófelvesz\", true) == 0)
 {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
        return 1;
    }
   if(strcmp(cmd, \"/telólerak\", true) == 0)
 {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
        return 1;
    }
       if(strcmp(cmd, \"/részeg\", true) == 0 || strcmp(cmd, \"/reszeg\", true) == 0)
{
ApplyAnimation(playerid,\"PED\",\"WALK_DRUNK\",4.1,1,1,1,1,1);
return 1;
    }
       if (strcmp(\"/bomb\", cmdtext, true) == 0)
{
ClearAnimations(playerid);
ApplyAnimation(playerid, \"BOMBER\",\"BOM_Plant_Loop\",4.0,1,0,0,1,0); // Place Bomb
return 1;
}
       if (strcmp(\"/getarrested\", cmdtext, true) == 0)
{
      ApplyAnimation(playerid,\"ped\", \"ARRESTgun\", 4.0, 0, 1, 1, 1, -1); // Gun Arrest
  return 1;
    }
       if (strcmp(\"/röhög\", cmdtext, true) == 0 || strcmp(\"/rohog\", cmdtext, true) == 0)
{
          ApplyAnimation(playerid, \"RAPPING\", \"Laugh_01\", 4.0, 0, 0, 0, 0, 0); // Laugh
  return 1;
}
       if (strcmp(\"/lookout\", cmdtext, true) == 0)
{
          ApplyAnimation(playerid, \"SHOP\", \"ROB_Shifty\", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
  return 1;
}
       if (strcmp(\"/rabol\", cmdtext, true) == 0)
{
          ApplyAnimation(playerid, \"SHOP\", \"ROB_Loop_Threat\", 4.0, 1, 0, 0, 0, 0); // Rob
  return 1;
}
       if (strcmp(\"/crossarms\", cmdtext, true) == 0)
{
          ApplyAnimation(playerid, \"COP_AMBIENT\", \"Coplook_loop\", 4.0, 0, 1, 1, 1, -1); // Arms crossed
  return 1;
}
       if (strcmp(\"/fekszik\", cmdtext, true) == 0)
{
          ApplyAnimation(playerid,\"BEACH\", \"bather\", 4.0, 1, 0, 0, 0, 0); // Lay down
  return 1;
    }
       if (strcmp(\"/hide\", cmdtext, true) == 0)
{
          ApplyAnimation(playerid, \"ped\", \"cower\", 3.0, 1, 0, 0, 0, 0); // Taking Cover
  return 1;
}
       if (strcmp(\"/rókázik\", cmdtext, true) == 0 || strcmp(\"/rokazik\", cmdtext, true) == 0)
{
      ApplyAnimation(playerid, \"FOOD\", \"EAT_Vomit_P\", 3.0, 0, 0, 0, 0, 0); // Vomit BAH!
  return 1;
}
       if (strcmp(\"/eszik\", cmdtext, true) == 0)
{
      ApplyAnimation(playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0); // Eat Burger
  return 1;
}
       if (strcmp(\"/wave\", cmdtext, true) == 0)
{
      ApplyAnimation(playerid, \"ON_LOOKERS\", \"wave_loop\", 4.0, 1, 0, 0, 0, 0); // Wave
  return 1;
}
       if (strcmp(\"/slapass\", cmdtext, true) == 0)
{
         ApplyAnimation(playerid, \"SWEET\", \"sweet_ass_slap\", 4.0, 0, 0, 0, 0, 0); // Ass Slapping
   return 1;
}
       if (strcmp(\"/deal\", cmdtext, true) == 0)
{
          ApplyAnimation(playerid, \"DEALER\", \"DEALER_DEAL\", 4.0, 0, 0, 0, 0, 0); // Deal Drugs
  return 1;
}
       if (strcmp(\"/crack\", cmdtext, true) == 0)
{
          ApplyAnimation(playerid, \"CRACK\", \"crckdeth2\", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack
  return 1;
}
if(strcmp(cmd, \"/smoke\", true) == 0)
    {
        if (!strlen(cmdtext[7])) return SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /smoke [1-4]\");
       switch (cmdtext[7])
       {
           case \'1\': ApplyAnimation(playerid,\"SMOKING\", \"M_smklean_loop\", 4.0, 1, 0, 0, 0, 0); // male
           case \'2\': ApplyAnimation(playerid,\"SMOKING\", \"F_smklean_loop\", 4.0, 1, 0, 0, 0, 0); //female
           case \'3\': ApplyAnimation(playerid,\"SMOKING\",\"M_smkstnd_loop\", 4.0, 1, 0, 0, 0, 0); // standing-fucked
           case \'4\': ApplyAnimation(playerid,\"SMOKING\",\"M_smk_out\", 4.0, 1, 0, 0, 0, 0); // standing
           default: SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /smoke [1-4]\");
       }
       return 1;
    }
       if (strcmp(\"/leül\", cmdtext, true) == 0 || strcmp(\"/leul\", cmdtext, true) == 0)
{
          ApplyAnimation(playerid,\"BEACH\", \"ParkSit_M_loop\", 4.0, 1, 0, 0, 0, 0); // Sit
  return 1;
    }
       if(strcmp(cmd, \"/beszél\", true) == 0 || strcmp(cmd, \"/beszel\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"IDLE_CHAT\",4.0,1,0,0,1,1);
         return 1;
    }
       if(strcmp(cmd, \"/fucku\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"fucku\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/taichi\", true) == 0)
{
 ApplyAnimation(playerid,\"PARK\",\"Tai_Chi_Loop\",4.0,1,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/leül2\", true) == 0 || strcmp(cmd, \"/leul2\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"SEAT_down\",4.1,0,1,1,1,0);
         return 1;
    }
       if(strcmp(cmd, \"/fall\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"KO_skid_front\",4.1,0,1,1,1,0);
         return 1;
    }
    if(strcmp(cmd, \"/fallback\", true) == 0)
{
 ApplyAnimation(playerid, \"PED\",\"FLOOR_hit_f\", 4.0, 1, 0, 0, 0, 0);
         return 1;
    }
        if(strcmp(cmd, \"/csók\", true) == 0 || strcmp(cmd, \"/csok\", true) == 0)
{
 ApplyAnimation(playerid, \"KISSING\", \"Playa_Kiss_02\", 3.0, 1, 1, 1, 1, 0);
         return 1;
    }
       if(strcmp(cmd, \"/injured\", true) == 0)
{
 ApplyAnimation(playerid, \"SWEET\", \"Sweet_injuredloop\", 4.0, 1, 0, 0, 0, 0);
         return 1;
    }
       if(strcmp(cmd, \"/sup\", true) == 0)
    {
        if (!strlen(cmdtext[5])) return SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /sup [1-3]\");
       switch (cmdtext[5])
       {
           case \'1\': ApplyAnimation(playerid,\"GANGS\",\"hndshkba\",4.0,0,0,0,0,0);
            case \'2\': ApplyAnimation(playerid,\"GANGS\",\"hndshkda\",4.0,0,0,0,0,0);
            case \'3\': ApplyAnimation(playerid,\"GANGS\",\"hndshkfa_swt\",4.0,0,0,0,0,0);
           default: SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /sup [1-3]\");
       }
       return 1;
    }
       if(strcmp(cmd, \"/rap\", true) == 0)
    {
        if (!strlen(cmdtext[5])) return SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /rap [1-4]\");
       switch (cmdtext[5])
       {
           case \'1\': ApplyAnimation(playerid,\"RAPPING\",\"RAP_A_Loop\",4.0,1,0,0,0,0);
           case \'2\': ApplyAnimation(playerid,\"RAPPING\",\"RAP_C_Loop\",4.0,1,0,0,0,0);
           case \'3\': ApplyAnimation(playerid,\"GANGS\",\"prtial_gngtlkD\",4.0,1,0,0,0,0);
           case \'4\': ApplyAnimation(playerid,\"GANGS\",\"prtial_gngtlkH\",4.0,1,0,0,1,1);
           default: SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /rap [1-4]\");
       }
       return 1;
    }
       if(strcmp(cmd, \"/push\", true) == 0)
{
 ApplyAnimation(playerid,\"GANGS\",\"shake_cara\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/akick\", true) == 0)
{
 ApplyAnimation(playerid,\"POLICE\",\"Door_Kick\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/lowbodypush\", true) == 0)
{
 ApplyAnimation(playerid,\"GANGS\",\"shake_carSH\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/spray\", true) == 0)
{
 ApplyAnimation(playerid,\"SPRAYCAN\",\"spraycan_full\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/headbutt\", true) == 0)
{
 ApplyAnimation(playerid,\"WAYFARER\",\"WF_Fwd\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/medic\", true) == 0)
{
 ApplyAnimation(playerid,\"MEDIC\",\"CPR\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/koface\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"KO_shot_face\",4.0,0,1,1,1,0);
         return 1;
    }
       if(strcmp(cmd, \"/kostomach\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"KO_shot_stom\",4.0,0,1,1,1,0);
         return 1;
    }
       if(strcmp(cmd, \"/lifejump\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"EV_dive\",4.0,0,1,1,1,0);
         return 1;
    }
       if(strcmp(cmd, \"/exhaust\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"IDLE_tired\",3.0,1,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/leftslap\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"BIKE_elbowL\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/rollfall\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"BIKE_fallR\",4.0,0,1,1,1,0);
         return 1;
    }
       if(strcmp(cmd, \"/carlock\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"CAR_doorlocked_LHS\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/rcarjack1\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"CAR_pulloutL_LHS\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/lcarjack1\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"CAR_pulloutL_RHS\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/rcarjack2\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"CAR_pullout_LHS\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/lcarjack2\", true) == 0)
{
 ApplyAnimation(playerid,\"PED\",\"CAR_pullout_RHS\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/hoodfrisked\", true) == 0)
{
 ApplyAnimation(playerid,\"POLICE\",\"crm_drgbst_01\",4.0,0,1,1,1,0);
         return 1;
    }
       if(strcmp(cmd, \"/lightcig\", true) == 0)
{
 ApplyAnimation(playerid,\"SMOKING\",\"M_smk_in\",3.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/tapcig\", true) == 0)
{
 ApplyAnimation(playerid,\"SMOKING\",\"M_smk_tap\",3.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/bat\", true) == 0)
{
 ApplyAnimation(playerid,\"BASEBALL\",\"Bat_IDLE\",4.0,1,1,1,1,0);
         return 1;
    }
       if(strcmp(cmd, \"/box\", true) == 0)
{
 ApplyAnimation(playerid,\"GYMNASIUM\",\"GYMshadowbox\",4.0,1,1,1,1,0);
         return 1;
    }
       if(strcmp(cmd, \"/fekszik2\", true) == 0)
{
 ApplyAnimation(playerid,\"SUNBATHE\",\"Lay_Bac_in\",3.0,0,1,1,1,0);
         return 1;
    }
       if(strcmp(cmd, \"/bíztat\", true) == 0 || strcmp(cmd, \"/biztat\", true) == 0)
{
 ApplyAnimation(playerid,\"RIOT\",\"RIOT_CHANT\",4.0,1,1,1,1,0);
         return 1;
    }
       if(strcmp(cmd, \"/finger\", true) == 0)
{
 ApplyAnimation(playerid,\"RIOT\",\"RIOT_FUKU\",2.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/kiabál\", true) == 0 || strcmp(cmd, \"/kiabal\", true) == 0)
{
 ApplyAnimation(playerid,\"RIOT\",\"RIOT_shout\",4.0,1,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/cop\", true) == 0)
{
 ApplyAnimation(playerid,\"SWORD\",\"sword_block\",50.0,0,1,1,1,1);
         return 1;
    }
       if(strcmp(cmd, \"/elbow\", true) == 0)
{
 ApplyAnimation(playerid,\"FIGHT_D\",\"FightD_3\",4.0,0,1,1,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/kneekick\", true) == 0)
{
 ApplyAnimation(playerid,\"FIGHT_D\",\"FightD_2\",4.0,0,1,1,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/fstance\", true) == 0)
{
 ApplyAnimation(playerid,\"FIGHT_D\",\"FightD_IDLE\",4.0,1,1,1,1,0);
         return 1;
    }
       if(strcmp(cmd, \"/gpunch\", true) == 0)
{
 ApplyAnimation(playerid,\"FIGHT_B\",\"FightB_G\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/airkick\", true) == 0)
{
 ApplyAnimation(playerid,\"FIGHT_C\",\"FightC_M\",4.0,0,1,1,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/gkick\", true) == 0)
{
 ApplyAnimation(playerid,\"FIGHT_D\",\"FightD_G\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/lowthrow\", true) == 0)
{
 ApplyAnimation(playerid,\"GRENADE\",\"WEAPON_throwu\",3.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/highthrow\", true) == 0)
{
 ApplyAnimation(playerid,\"GRENADE\",\"WEAPON_throw\",4.0,0,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/dealstance\", true) == 0)
{
 ApplyAnimation(playerid,\"DEALER\",\"DEALER_IDLE\",4.0,1,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/késel\", true) == 0 || strcmp(cmd, \"/kesel\", true) == 0)
    {
        if (!strlen(cmdtext[7])) return SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /késel [1-4]\");
       switch (cmdtext[7])
       {
           case \'1\': ApplyAnimation(playerid,\"KNIFE\",\"KILL_Knife_Ped_Damage\",4.0,0,1,1,1,0);
           case \'2\': ApplyAnimation(playerid,\"KNIFE\",\"KILL_Knife_Ped_Die\",4.0,0,1,1,1,0);
           case \'3\': ApplyAnimation(playerid,\"KNIFE\",\"KILL_Knife_Player\",4.0,0,0,0,0,0);
           case \'4\': ApplyAnimation(playerid,\"KNIFE\",\"KILL_Partial\",4.0,0,1,1,1,1);
           default: SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /késel [1-4]\");
       }
       return 1;
    }
       if(strcmp(cmd, \"/kosár\", true) == 0 || strcmp(cmd, \"/kosar\", true) == 0)
    {
        if (!strlen(cmdtext[8])) return SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /kosár [1-6]\");
       switch (cmdtext[8])
       {
           case \'1\': ApplyAnimation(playerid,\"BSKTBALL\",\"BBALL_idleloop\",4.0,1,0,0,0,0);
           case \'2\': ApplyAnimation(playerid,\"BSKTBALL\",\"BBALL_Jump_Shot\",4.0,0,0,0,0,0);
           case \'3\': ApplyAnimation(playerid,\"BSKTBALL\",\"BBALL_pickup\",4.0,0,0,0,0,0);
           case \'4\': ApplyAnimation(playerid,\"BSKTBALL\",\"BBALL_run\",4.1,1,1,1,1,1);
           case \'5\': ApplyAnimation(playerid,\"BSKTBALL\",\"BBALL_def_loop\",4.0,1,0,0,0,0);
           case \'6\': ApplyAnimation(playerid,\"BSKTBALL\",\"BBALL_Dnk\",4.0,1,0,0,0,0);
           default: SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /kosár [1-6]\");
       }
       return 1;
    }
       if(strcmp(cmd, \"/táraz\", true) == 0 || strcmp(cmd, \"/taraz\", true) == 0)
    {
          if (strcmp(\"deagle\",cmdtext[8],true) == 0)
          {
            ApplyAnimation(playerid,\"COLT45\",\"colt45_reload\",4.0,0,0,0,0,1);
    }
    else if (strcmp(\"smg\",cmdtext[8],true) == 0 || strcmp(\"ak\",cmdtext[8],true) == 0 || strcmp(\"m4\",cmdtext[8],true) == 0)
          {
            ApplyAnimation(playerid,\"UZI\",\"UZI_reload\",4.0,0,0,0,0,0);
    }
       return 1;
    }
       if(strcmp(cmd, \"/gwalk\", true) == 0)
    {
        if (!strlen(cmdtext[6])) return SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /gwalk [1/2]\");
        new style = strval(cmdtext[6]);
          if (style == 1)
          {
            ApplyAnimation(playerid,\"PED\",\"WALK_gang1\",4.1,1,1,1,1,1);
    }
    else if (style == 2)
          {
            ApplyAnimation(playerid,\"PED\",\"WALK_gang2\",4.1,1,1,1,1,1);
    }
          else SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /gwalk [1/2]\");
       return 1;
    }
       if(strcmp(cmd, \"/ráfog\", true) == 0 || strcmp(cmd, \"/rafog\", true) == 0)
    {
        if (!strlen(cmdtext[5])) return SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT:: /ráfog [1-3]\");
       switch (cmdtext[5])
       {
           case \'1\': ApplyAnimation(playerid,\"PED\",\"gang_gunstand\",4.0,1,1,1,1,1);
           case \'2\': ApplyAnimation(playerid,\"PED\",\"Driveby_L\",4.0,0,1,1,1,1);
           case \'3\': ApplyAnimation(playerid,\"PED\",\"Driveby_R\",4.0,0,1,1,1,1);
           default: SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /ráfog [1-3]\");
       }
       return 1;
    }
       if(strcmp(cmd, \"/lean\", true) == 0)
    {
        if (!strlen(cmdtext[6])) return SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /lean [1-2]\");
       switch (cmdtext[6])
       {
           case \'1\': ApplyAnimation(playerid,\"GANGS\",\"leanIDLE\",4.0,0,1,1,1,0);
           case \'2\': ApplyAnimation(playerid,\"MISC\",\"Plyrlean_loop\",4.0,0,1,1,1,0);
           default: SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /lean [1-2]\");
       }
       return 1;
    }
       if(strcmp(cmd, \"/fut\", true) == 0)
    {
ApplyAnimation(playerid,\"PED\",\"sprint_civi\",1, 1, 1, 1, 1, 1);
       return 1;
    }
       if(strcmp(cmd, \"/clear\", true) == 0)
{
 ApplyAnimation(playerid, \"CARRY\", \"crry_prtial\", 1.0, 0, 0, 0, 0, 0);
         return 1;
    }
       if(strcmp(cmd, \"/strip\", true) == 0)
    {
        if (!strlen(cmdtext[7])) return SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /strip [A-G]\");
       switch (cmdtext[7])
       {
           case \'a\', \'A\': ApplyAnimation(playerid,\"STRIP\", \"strip_A\", 4.1, 1, 1, 1, 1, 1 );
           case \'b\', \'B\': ApplyAnimation(playerid,\"STRIP\", \"strip_B\", 4.1, 1, 1, 1, 1, 1 );
           case \'c\', \'C\': ApplyAnimation(playerid,\"STRIP\", \"strip_C\", 4.1, 1, 1, 1, 1, 1 );
           case \'d\', \'D\': ApplyAnimation(playerid,\"STRIP\", \"strip_D\", 4.1, 1, 1, 1, 1, 1 );
           case \'e\', \'E\': ApplyAnimation(playerid,\"STRIP\", \"strip_E\", 4.1, 1, 1, 1, 1, 1 );
           case \'f\', \'F\': ApplyAnimation(playerid,\"STRIP\", \"strip_F\", 4.1, 1, 1, 1, 1, 1 );
           case \'g\', \'G\': ApplyAnimation(playerid,\"STRIP\", \"strip_G\", 4.1, 1, 1, 1, 1, 1 );
           default: SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /strip [A-G]\");
       }
       return 1;
    }
       if(strcmp(cmd, \"/inbedright\", true) == 0)
{
 ApplyAnimation(playerid,\"INT_HOUSE\",\"BED_Loop_R\",4.0,1,0,0,0,0);
         return 1;
    }
       if(strcmp(cmd, \"/inbedleft\", true) == 0)
{
 ApplyAnimation(playerid,\"INT_HOUSE\",\"BED_Loop_L\",4.0,1,0,0,0,0);
         return 1;
    }
   if(strcmp(cmd, \"/tánc\", true) == 0 || strcmp(cmd, \"/tanc\", true) == 0)
 {
            tmp = strtok(cmdtext, idx);
   if(!strlen(tmp)) {
      SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /tánc [style 1-4]\");
      return 1;
   }
   new dancestyle;
   dancestyle = strval(tmp);
   if(dancestyle < 1 || dancestyle > 4) {
       SendClientMessage(playerid,COLOR_GRAD2,\"HASZNÁLAT: /tánc [style 1-4]\");
       return 1;
   }
   if(dancestyle == 1) {
       SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
   } else if(dancestyle == 2) {
       SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
   } else if(dancestyle == 3) {
       SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
   } else if(dancestyle == 4) {
       SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
   }
        return 1;
}
if(strcmp(cmd, \"/hoki\", true) == 0)
{
ApplyAnimation(playerid, \"PAULNMAC\", \"wank_loop\", 4.0, 1, 0, 0, 0, 0);
return 1;
}
}
if(strcmp(cmd, \"/leállít\", true) == 0 || strcmp(cmd, \"/leallit\", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
   if(IsPlayerInAnyVehicle(playerid))
   {
      if(engineOn[GetPlayerVehicleID(playerid)])
          {
              if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
         {
            return 1;
         }
         if(IsAnOwnableCar(idcar))
         {
             if(PlayerInfo[playerid][pPcarkey] == idcar) { }
            //else if(PlayerInfo[playerid][pPcarkey2] == idcar) { }
            //else if(PlayerInfo[playerid][pPcarkey3] == idcar) { }
            else { return 1; }
         }
         if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509)
         {
            return 1;
         }
         if(idcar == 59 || idcar == 60)
         {
            return 1;
         }
         if(IsAHarvest(idcar))
         {
             return 1;
         }
         if(Halaszhajo(idcar))
         {
             return 1;
         }
         if(IsAPlane(idcar))
         {
             return 1;
         }
         if(IsASweeper(idcar))
         {
             return 1;
         }
         engineOn[GetPlayerVehicleID(playerid)] = false;
         //RemovePlayerFromVehicle(playerid);
         TogglePlayerControllable(playerid, 0);
         GetPlayerName(playerid, sendername, sizeof(sendername));
         format(string, sizeof(string), \"* %s leállítja a motort\", sendername);
         ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
         gEngine[playerid] = 0;
         SetVehicleParamsEx(GetPlayerVehicleID(playerid), OFF, lights, alarm, doors, bonnet, boot, objective);
         return 1;
      }
   }
    }
    return 1;
}

Nem elérhető Casamiro

  • 1046
    • Profil megtekintése
/animok /börtön bug
« Válasz #1 Dátum: 2012. november 06. - 19:42:02 »
+1 Show voters
1. Azért mert az elsõ paraméter az az idõ, a második paraméter pedig az indok. Tehát sehol sem kér ID -t, az 5 méteres körzetedben lévõ legközelebbi játékost teszi börtönbe.
2.
if(strcmp(cmd, \"/animok\", true) == 0)
{
new nev[32];
GetPlayerName(playerid, nev, sizeof(nev));
new h,mi,s,y,m,d;
getdate(y,m,d);
gettime(h,mi,s);
format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s megnézte a szerveren elérhetõ animok listáját.\",y,m,d,h,mi,s,nev);
LoOoG(stringx);
    SendClientMessage(playerid, 0x000000, \"________________________________________________________________________________________________________________________\");
    SendClientMessage(playerid,COLOR_YELLOW2,\" /fallback /injured /push /handsup /bomb /lookout /részeg /getarrested /sup /leül2 /táraz /fekszik /fekszik2\");
        SendClientMessage(playerid,COLOR_YELLOW2,\"/kosár /headbutt /medic /spray /rabol /taichi /csók /telófelvesz /telólerak /crossarms /eszik /ráfog\");
        SendClientMessage(playerid,COLOR_YELLOW2,\"/deal /crack /fall /smoke /leül /beszél /tánc /lowbodypush/fucku /strip /hide /rókázik  /bat /highthrow\");
        SendClientMessage(playerid,COLOR_YELLOW2,\"/koface /akick /kostomach /rollfall /carjacked1 /carjacked2 /rcarjack1 /rcarjack2 /lcarjack1 /lcarjack2\");
        SendClientMessage(playerid,COLOR_YELLOW2,\"/lifejump /exhaust /leftslap /carlock /hoodfrisked /lightcig /röhög /tapcig /box /bíztat\");
        SendClientMessage(playerid,COLOR_YELLOW2,\"/kiabál /késel /cop /elbow /kneekick /airkick /gkick /gpunch /fstance /lowthrow /finger\");
        SendClientMessage(playerid,COLOR_YELLOW2,\"/pisil /lean /fut /hoki\");
        SendClientMessage(playerid, 0x000000, \"________________________________________________________________________________________________________________________\");
        return 1;
        }

Nem elérhető Kovacs_Richard

  • 1743
  • HRP Fejlesztő
  • Discord: Kovacs_Richard#0321
    • Profil megtekintése
    • Hun Role Play Web
/animok /börtön bug
« Válasz #2 Dátum: 2012. november 06. - 19:45:20 »
+1 Show voters
new suspect = GetClosestPlayer(playerid);

 
a hozzád legközelebbi játékos lesz a suspect ( akit berakna a börtönbe )
 
if(GetDistanceBetweenPlayers(playerid,suspect) < 5)

 
de csak akkor ha 5 yardon belül van...
a másikat Casamiro megválaszolta
Régóta nem tevékenykedem, mint SA-MP scripter.
HRP Fejlesztő.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal