Jump to content

Cum fac o comanda de /heal


Alex136Rx

Recommended Posts

In primul rand, foloseste ZCMD Proccesor care il poti procura de aici.

Dupa ce ai descarcat ZCMD, il adaugi in pawno -> includes

 

Deschizi Panwo, si selectezi GM-ul, apoi scrii la inceputul gm-ului:

#include < zcmd >

Dupa ce ai facut toate astea, vine o parte care trebuie gandita, de pilda:

1. Iti alegi un loc in GM, oricunde (numai nu intr-un public/stock/define...).

2. Incepi comanda asa:

CMD:comanda(playerid, params[])
{
    //Ce vrei sa faca comanda
    return 1; // Pentru a confirma comanda
}

In cazul tau:

CMD:heal(playerid, params[])
{
    GetPlayerHealth(playerid, numar); //In loc de numar pui un numar de la 0-100 (Se confirma viata ce o daruiesti jucatorului)
    return 1;
}

3. Compiliezi GameMode-ul.

4. Done!

242086.png

Link to comment
Share on other sites

GetPlayerHealth(playerid, numar); //In loc de numar pui un numar de la 0-100 (Se confirma viata ce o daruiesti jucatorului)

 

Esti sigur ca engleza ta este buna?

Scuze, ma cam grabeam :))

 

SetPlayerHealth(playerid, viata);

 

P.S : Vezi ca aveai un model de respectat . :D

Asa e corect...

242086.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.