Jump to content

Question

Posted

Salut baieti.

Am o problema si nu stiu cum sa o rezolv va rog ajutati-ma.

Cand un civil face kill pe cop/player lui ii apare Current Wanted Lvl 1 si ii apare si steluta cum trebuie totul ok pana aici insa la Cop cand scrie /wanted nu ii apare wantedu respectiv-ului player. Iar cand da wanted cu /su merge totul ok pana cand il baga in jail iar in jail daca iti omori colegul de celula iei wanted si as vrea sa nu poata lua wanted cand este in jail acel player.

Multumesc foarte mult.

Daca ma-ti putea ajuta as fi foarte recunoscator.

2 answers to this question

Recommended Posts

Posted

eu am vz ca pe tote sv-urile rpg Gf rp cand iti omori colegu de celuca ei WD ...

Si casa arate la /wanted...

ia comanda

[pawn]if(strcmp(cmd, "/wanted", true) == 0)

{

    if(IsPlayerConnected(playerid))

  {

if(gTeam[playerid] == 2 || IsACop(playerid))

{

        new count = 0;

SendClientMessage(playerid, COLOR_LIGHTGREEN, "Wanted Suspects:");

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

{

if(IsPlayerConnected(i))

{

    if(WantedLevel >= 1)

    {

      GetPlayerName(i, giveplayer, sizeof(giveplayer));

        format(string, sizeof(string), "[%d]%s - Wanted Level: [%d]", i,giveplayer,WantedLevel);

SendClientMessage(playerid, COLOR_WHITE, string);

count++;

}

}

}

if(count == 0)

{

    SendClientMessage(playerid, COLOR_LIGHTRED, "* Currently no suspect online.");

}

}

    else

    {

          SendClientMessage(playerid, COLOR_WHITE, " You are not a Cop !");

    }

}

return 1;

}[/pawn]

RomaniaTurnuStunt

70%

Posted

In primul rand pentru treaba cu kill in jail, pune la PlayerJailed asta -> SetPlayerHealth(playerid,65535); Cu asta toti playerii din jail vor avea viata 65335 sau incearca asta [pawn]new Float:health;

        GetPlayerHealth(playerid,health);

        if (health < 100)

        {

            SetPlayerHealth(playerid, 65535);

        }

    }

 

    return 1;

}[/pawn]

In legatura cu wantedul, mai verifica odata scriptul sa nu fie ceva scris aiurea, daca nu, posteaza aici liniile

Guest
This topic is now closed to further replies.
×
×
  • 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.