Jump to content
  • 0

Ajutor >


VenoWW

Question

Problema intalnita (descriere):Vreau sa imi creez un sistem pentru playerii noi gen /surpriza si la playerii noi sa le dea 200 Ore + Coins Si sa le afiseze ceva de genul Promotia HZS,ai primit 200 ore + 10000000 coins .Acum da o fuga la /carshop si i-ati o masina .
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

In primul rand, poti sa-mi spui si mie ce inseamna HZS? :]]

 

In al doilea rand, creezi o variabila:

new FirstPromotion[MAX_PLAYERS];

Dupa care o introduci in dialogul de inregistrare, daca folosesti WOS, o sa fie in RegDialog.

FirstPromotion[playerid] = 1;

Si apoi introduci la OnPlayerDisconnect:

FirstPromotion[playerid] = 0; 

Daca folosesti zcmd, faci comanda asa:

CMD:surpriza(playerid, params[])
{
    if(FirstPromotion[playerid] == 0) return SendClientMessage(playerid, ~1, "Ai folosit deja aceasta promotie");
    else(FirstPromotion[playerid == 1)
    {
        //-----------------------------------------------------------------------------------------------------------
        PlayerInfo[playerid][Hours] += 200;  PlayerInfo[playerid][Coins] += 10000000;
        //-----------------------------------------------------------------------------------------------------------
    }
    return 1;
}
Edited by KnowN

242086.png

Link to comment
Share on other sites

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.