Jump to content

Question

Posted

Cand duc servieta la destinatie imi da bani si dupa ii scade la loc ...

[pawn]public OnPlayerEnterCheckpoint(playerid)

{

if(playerid == CashboxOwner)

{

    PlayerPlaySound(playerid, 1054, 0, 0, 0);

    KillTimer(DropValueTimer);

    new str[128], pName[MAX_PLAYER_NAME];

if(mode == 1)

{

    DisablePlayerCheckpoint(playerid);

}

    CashboxOwner = INVALID_PLAYER_ID;

GetPlayerName(playerid, pName, sizeof(pName));

format(str, 128, "%s (ID: %d) a dus servieta la destinatie si a castigat $%d", pName, playerid, CashboxValue);

SendClientMessageToAll(0xFFD700AA, str);

        format(str, 128, "~y~Felicitari! ~n~~r~ Ai castigat ~n~~g~$%d", CashboxValue);

GameTextForPlayer(playerid, str, 4000, 3);

DisablePlayerCheckpoint(playerid);

SendClientMessageToAll(0x0E68CAA, "Un nou event va incepe peste 10 minute!");

GivePlayerMoney(playerid, CashboxValue);

SetTimer("StartNewCashboxGame", 600000, 0);

IsGameStarted = 0;

}

return 1;

}[/pawn]

7 answers to this question

Recommended Posts

Posted

Daca pune la moneyhack 0, o sa se poata da bani cu hack fara sa dea reset. Mai bine incearca unde ai cashbox cu SafeGivePlayerMoney, ar trebui sa mearga, cel putin la mine merge.

Posted

pune #include <JunkBuster>

apoi scrie #define GivePlayerMoney JB_GivePlayerMoney

si in loc unde ai GivePlayerMoney pune si JB_ in fata si gata ;)

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.