Jump to content

mR.KerigaN

Membru
  • Posts

    25
  • Joined

  • Last visited

    Never

Posts posted by mR.KerigaN

  1. if(AdminDuty[damagedid] == 1 || HelperDuty[damagedid] == 1)

        {

        new Float:playerHealth = 0;

        GetPlayerHealth ( playerid, playerHealth );

        SetPlayerHealth(playerid, ( playerHealth - 35.0 ) );

        SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Nu ai voie sa ataci un admin / helper on duty !");

        SendClientMessage(playerid,COLOR_LIGHTRED,"Ai primit -15 HP !");

        }

    Pui asta la OnPlayerGiveDamage

  2. Nume: mR.KerigaN

    Nume tutorial: Super V.I.P

    Descriere:Comanda: /makesvip1,/makesvip2,/makesvip3,/makesvip4 la /makesvip1 sa iti dea Deagle 150 gloante(sa nu dispara la respawn)

    /makesvip2 Deagle 200 gloante+Mp5 150 Gloante(sa nu dispara la respawn)

    /makesvip3 Deagle 200 gloante+Mp5 200 gloante+M4 150 gloante(sa nu dispara la respawn)

    /makesvip4 Deagle 200gl+M4 200 gl+Sniper 20 glonate(sa nu dispara la respawn)

  3. Nume: mR.KerigaN

    Nume tutorial: Arme pe rank

    Descriere: la toate gangurile la rank 1 sa dea arma Deagle cu gloante 100

    La rank 2 sa dea Deagle gloante 150 si Mp5 gloante 100

    La rank 3 sa dea deagle 200 si m4 100 gloante

    La rank 4 sa dea M4 150 gloante mp5 100 gloante si deagle 150 gloante

    La rank 5 sa dea M4 150 gloante mp5 150 gloante si deagle 150 gloante

    Rank 6 sa dea M4 200gloante mp5 200 gloante si deagle 200gloante

  4. Nick: mR.KerigaN

    Problema: am un dealership...creeze masina incerc sa o parchez si nu imi parcheaza masina..si lafel si la buy ma urc in ia dau buy si nu mi-o cumpara.. ajutati-ma va rog

    Erori / warnings: -

    Lini/script: -

    Ai incercat sa rezolvi singur ?: Da

  5. //-----------------------------------------------------------------------------------------------------

    if(strcmp(cmd, "/bonustrivia", true) == 0)

        {

          if(IsPlayerConnected(playerid))

          {

          SendClientMessage(playerid, COLOR_GREY,"# Level 1 # - 25 correct answers - 100.000$ + 5 respect points.");

        SendClientMessage(playerid, COLOR_GREY,"# Level 2 # - 50 corrent answers - 150.000$ + 10 respect points.");

        SendClientMessage(playerid, COLOR_GREY,"# Level 3 # - 100 correct answers - 300.000$ + 20 respect points.");

        SendClientMessage(playerid, COLOR_GREY,"# Level 4 # - 200 correct answers - 1.000.000$ + 50 respect points.");

        new triviarewards = PlayerInfo[playerid][TriviaReward];

        if(PlayerInfo[playerid][TriviaSkill] == 0)

        {

          SendClientMessage(playerid, COLOR_YELLOW2,"** You are level 1 **");

          format(string, 256 ,"* Correct answers [%d/25] *", triviarewards);

          SendClientMessage(playerid, COLOR_LIGHTRED, string);

          return 1;

        }

        if(PlayerInfo[playerid][TriviaSkill] == 1)

        {

          SendClientMessage(playerid, COLOR_YELLOW2,"** You are level 2 **");

          format(string, 256 ,"* Correct answers [%d/50] *", triviarewards);

          SendClientMessage(playerid, COLOR_LIGHTRED, string);

          return 1;

        }

        if(PlayerInfo[playerid][TriviaSkill] == 2)

        {

          SendClientMessage(playerid, COLOR_YELLOW2,"** You are level 3 **");

          format(string, 256 ,"* Correct answers [%d/100] *", triviarewards);

          SendClientMessage(playerid, COLOR_LIGHTRED, string);

          return 1;

        }

        if(PlayerInfo[playerid][TriviaSkill] == 3)

        {

          SendClientMessage(playerid, COLOR_YELLOW2,"** You are level 4 **");

          format(string, 256 ,"* Correct answers [%d/200] *", triviarewards);

          SendClientMessage(playerid, COLOR_LIGHTRED, string);

          return 1;

        }

        }

        return 1;

        }

  6. Nick: mR.KerigaN

    Problema: la comanda /bonustrivia cand raspund corect nu imi seteaza pe 1/25 2/25 si asa mai deaparte ramane 0/25

    Erori / warnings: Nu imi da erori

    Lini/script: -

    Ai incercat sa rezolvi singur ?: Da

  7. Nick: mR.KerigaN

    Problema: Tag Mismatch

    Erori / warnings:C:\Users\C.I.P\Desktop\Reclame\PRONION\GodFather.pwn(51750) : warning 213: tag mismatch

    Lini/script:  if(PlayerInfo[playerid][pGift] == 1)

      {

            SendClientMessage(playerid, COLOR_GREY, "You don`t have a gift. ");

            return 1; }

        if ( premiu == 0 ) {

            PlayerInfo[playerid][pPills] += 150;

            PlayerInfo[playerid][pGift] = 1;

            SendClientMessage(playerid, 0xFF0033FF, "» Gift: {FFFFFF}Felicitari ai castigat 150 Pills.");

            SaveAccounts(); OnPlayerUpdateEx(playerid);

          }

    Ai incercat sa rezolvi singur ?: Da

  8. Nume: mR.KerigaN

    Nume tutorial: /jobs

    Descriere: cand dai /jobs sa iti apara un dialog cu urmatoarele joburi 1.Detectiv || 2.Lawyer || 3.Whore || 4.Drug Dealer || 5. Car Jacker || 6.Car Mechanic || 7.BodyGuard || 8.Arm Dealer || 9.Car Dealer || 10.Boxer || 11.Paper Boy || 12.Trucker || 13.Farmer || 14.Garbage Collector si cand le selectezi sa iti dea jobul :)

  9. Nick: mR.KerigaN

    Problema: am o problema la comanda /hac care repara toate masinile dupa server cand dau /hac repara doar masinile care sunt conduse

    Erori / warnings: nu imi da erori

    Lini/script: if(strcmp(cmd, "/hac", true) == 0 ||strcmp(cmd, "/hac", true) == 0)

    {

        GetPlayerName(playerid, sendername, sizeof(sendername));

        if(IsPlayerConnected(playerid))

        {

            if(AdminDuty[playerid] == 1 && PlayerInfo[playerid][pAdmin] >= 1||HelperDuty[playerid] == 1 && PlayerInfo[playerid][pHelper] >= 2 )

            {

            //format(string, sizeof(string), "{FFFFFF}Admin{FF9900} %s {FFFFFF}has repair all cars.", sendername);

        //SendClientMessageToAll(0xFF7171FF, string);

        new Float:x, Float:y, Float:z;

        GetPlayerPos(playerid,x,y,z);

                for(new i = 0; i < MAX_PLAYERS; i ++)

    {

        if(IsPlayerConnected(i))

        {

                        if(IsPlayerInRangeOfPoint(i, 30000000000000000000000000000000000000000000000000000000000, x, y, z))

        {

            RepairCar = GetPlayerVehicleID(i);

        SetVehicleHealth(i, 1000.0);

        RepairVehicle(RepairCar);

        format(string, sizeof(string), "{FF0000} %s {FFFFFF}repaired all cars.", sendername);

        SendClientMessage(i,0xFF7171FF, string);

    }

    }

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_RED, "Nu esti Helper/Admin on Duty!");

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!");

    }

    return 1;

    }

    Ai incercat sa rezolvi singur ?: Da

  10. Nick: mR.KerigaN

    Problema: am bagat comanda /makect sa imi dea arme si skin de politist si cand dau /makect imi da armele dar nu si skinul..

    Erori / warnings: nu imi da erori..

    Lini/script: if(strcmp(cmd, "/makect", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}Foloseste{FFFFFF}: /makect [playerid/PartOfName]");

    return 1;

    }

    giveplayerid = ReturnUser(tmp);

    if (PlayerInfo[playerid][pAdmin] >= 1)

    {

        if(IsPlayerConnected(playerid))

        {

            if(playerid != INVALID_PLAYER_ID)

            {

            new name[MAX_PLAYER_NAME];

        GetPlayerName(playerid, name, sizeof(name));

        new nameee[MAX_PLAYER_NAME];

        GetPlayerName(giveplayerid, nameee, sizeof(nameee));

    GivePlayerWeapon(giveplayerid, 24, 999);

    GivePlayerWeapon(giveplayerid, 29, 999);

    GivePlayerWeapon(giveplayerid, 31, 999);

    GivePlayerWeapon(giveplayerid, 16, 5);

    SetPlayerHealth(giveplayerid, 500);

    SetPlayerArmour(giveplayerid, 100);

    SetPlayerSkin(giveplayerid, 287);

    format(string, 128, "{0080FF}AdmWarning: {FF8000}[%d]%s {FFFFFF}i-a dat MAKET lui {FF8000}[%d]%s. (/maket)",playerid,name,giveplayerid,nameee);

    ABroadCast(COLOR_YELLOW,string,5);

                        }

    }

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat!");

    }

    }

    return 1;

    }

    Ai incercat sa rezolvi singur ?: Da

  11. Nick: mR.KerigaN

    Problema: comanda /startduel

    Erori / warnings: (48065) error 029: invalid expression, assumed zero ||| (48065)error 029: invalid expression, assumed zero

    Lini/script: CMD:startduel(playerid, params[]) // test fiind numele comenzii

    {

        SendClientMessage(playerid, COLOR_WHITE, "Numaratoarea inversa a fost declansata.");

    CountDownTimer = SetTimer("CountDown", 1000, false); // false inseamna ca nu se va mai repeta, insa daca vreti sa se repete, folositi true.

        return 1;

    }

    Ai incercat sa rezolvi singur ?: da..

  12. Nick: mR.KerigaN

    Problema: 

    Erori / warnings: C:\Users\C.I.P\Desktop\Reclame\X-ARENA\gamemodes\gtamp.pwn(54836) : error 029: invalid expression, assumed zero

    C:\Users\C.I.P\Desktop\Reclame\X-ARENA\gamemodes\gtamp.pwn(54836) : error 029: invalid expression, assumed zero

    C:\Users\C.I.P\Desktop\Reclame\X-ARENA\gamemodes\gtamp.pwn(54836) : warning 215: expression has no effect

    C:\Users\C.I.P\Desktop\Reclame\X-ARENA\gamemodes\gtamp.pwn(54837) : error 029: invalid expression, assumed zero

    Lini/script:  GetPlayerPos(playerid, X,Y,Z);

    new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 60000);

    CreatedCars[CreatedCar] = carid;

    CreatedCar ++;

    Ai incercat sa rezolvi singur ?: da...

  13. public OnPlayerCommandText(playerid, cmdtext[])

    {

    if (strcmp("/lv", cmdtext, true, 10) == 0)

    {

    SendClientMessage(playerid,0xFFFFFFFF,"Ai fost teleportat in LasVenturas");

    SetPlayerPoss(playerid,25,2603.3767,1878.4918,10.8203,175.7315,0,0,0,0,0,0);

    return 1;

    }

    return 0;

    }

  14. Nick: mR.KerigaN

    Problema:  imi da niste warning..si nu stiu cum sa le fac..

    Erori / warnings: C:\Users\C.I.P\Desktop\Reclame\X-ARENA\gamemodes\godfather.pwn(43) : warning 215: expression has no effect

    C:\Users\C.I.P\Desktop\Reclame\X-ARENA\gamemodes\godfather.pwn(101) : warning 215: expression has no effect

    Lini/script:  SendClientMessage(playerid,0,"Ai fost teleportat in LasVenturas");

    SetPlayerPoss(playerid,25,2603.3767,1878.4918,10.8203,175.7315,0,0,0,0,0,0);

    Ai incercat sa rezolvi singur ?: da..

  15. Nick: mR.KerigaN

    Problema: am incercat sa bag un sistem anti c-bug am bagat tot si cand bag ce am scris ingrosat si subliniat imi da stopped working... dc?

    #include <a_samp>

    #define C_BUG_TIME 5

    #define COLOR_RED 0xAA3333AA

    #define COLOR_LIGHTRED 0xFF6347AA

    #undef MAX_PLAYERS

    #define MAX_PLAYERS 200

    new P_CBUG_TICKS[MAX_PLAYERS];

    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

    {

      new playername[MAX_PLAYER_NAME];

      GetPlayerName(playerid, playername, sizeof(playername));

      if(newkeys & KEY_FIRE && oldkeys & KEY_CROUCH && IsCbugWeapon(playerid))

      {

    P_CBUG_TICKS[playerid] ++;

    if(P_CBUG_TICKS[playerid] > C_BUG_TIME)

    {

                new str2[128];

                format(str2, sizeof(str2), "Jucatorul %s abuzeaza de C-Bug!", playername);

                SendClientMessageToAll(COLOR_RED, str2);

                SendClientMessage(playerid,COLOR_LIGHTRED,"Atentie! Va rugam sa nu abuzati de C-Bug pentru a nu fi sanctionat!");

    P_CBUG_TICKS[playerid] = 0;

    new Float:Health; GetPlayerHealth(playerid,Health); SetPlayerHealth(playerid,Health-25);

      }

      }

      return 1;

    }

    stock IsCbugWeapon(playerid)

    {

        new weaponID = GetPlayerWeapon(playerid);

        if(weaponID == 22 || weaponID == 24 || weaponID == 25 || weaponID == 27)

    {

        return 1;

    }

        return 0;

    }

    Erori / warnings: imi da stopped working

    Lini/script: -

    Ai incercat sa rezolvi singur ?:

  16. Nick: mR.KerigaN

    Problema: imi spune sa definesc cmd o definesc si dupa imi da inca 7 erori dc?

    Erori / warnings: C:\Users\C.I.P\Desktop\PRONION BY RIO\gamemodes\GodFather.pwn(18988) : error 017: undefined symbol "cmd"

    Lini/script: if(strcmp(cmd,"/job",true) == 0)

    Ai incercat sa rezolvi singur ?: da

  17. Nick: mR.KerigaN

    Problema:  erori..cum se rezolva?

    Erori / warnings: D:\Descarcari\Server bun GFZONE\gamemodes\gf.pwn(5284) : error 029: invalid expression, assumed zero

    D:\Descarcari\Server bun GFZONE\gamemodes\gf.pwn(5285) : error 001: expected token: ";", but found "{"

    Lini/script:public OnPlayerConnect(playerid)

    {

    public OnPlayerConnect(playerid)

    {

    Ai incercat sa rezolvi singur ?: da

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.