Money-Config

Započeo GoodbyeSamp, Avgust 13, 2018, 17:46:51 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.


Money-Config
Pozdrav svima, danas vam predstavljam novi include koji sam malopre izradio.
Radi se o Money Configu, je baziran na tome sa svojim dodatnim textdrawovima prekrije default, ovo je takodje sluzi zbog antimoney hack-a.
Functions(example)
Manipluiranje bojama: http://prntscr.com/ki2qvy http://prntscr.com/ki2tm7
Rezolucije: Ovo je radjeno za 3 rezolucije koje mozete podesiti i prilagoditi svojoj skripti, 1. 1980 x 1080 x 16 2. 1024 x 728 x 32 3. 800 x 600 x 32
Money info: 1 tip: http://prntscr.com/ki2utl 2 tip: http://prntscr.com/ki2v0f
* Warning: Ovo nece raditi u slucaju ako igrac nije spawnan.
* Warning: Podesavanje rezolucije je namesteno prema skripti vi mozete uzeti kod i prepraviti na komandu kojom cete podesavati igracu ukoliko mu ne stima najbolje..
* Bugs: Meni radi, testirao na 3 razlicite skripte, ako nadjete prijavite.


Functions(pawn)
[pawn]
GetPlayerMoney(playerid);
GivePlayerMoney(playerid, money);
ResetPlayerMoney(playerid);
ChangeColorMoneyForPlayer(playerid, color);
[/pawn]
Example script
[pawn]
#include <a_samp>
#include <zcmd>
#include <money-config>

// U can edit resolution example how:
// if u want in default is 'type - 1'

#if defined MC_RESOLUTION
#undef MC_RESOLUTION
#define MC_RESOLUTION 1
#endif

// RESOLUTION TYPES:
// 1 - 1980 x 1080 x 16
// 2 - 1024 x 728 x 32
// 3 - 800 x 600 x 32

/* WARNING: U cant edit the max or min limit here, check in inc file. */

public OnPlayerSpawn(playerid)
{
   GivePlayerMoney(playerid, 50000);
   return true;
}
CMD:money1(playerid)
{
   return GivePlayerMoney(playerid, 200);
}
CMD:money2(playerid)
{
   return GivePlayerMoney(playerid, -200);
}
CMD:money3(playerid)
{
   return GivePlayerMoney(playerid, 200 + 50);
}
CMD:color(playerid)
{
   return ChangeColorMoneyForPlayer(playerid, 0xDD8E11FF);
}
CMD:getmoney(playerid)
{
   new money = GetPlayerMoney(playerid);
   return printf("%d",money);
}
[/pawn]



Nema sta, ne moze drugacije, sve kako spada, alignment na trojci, fino prekrije, nema zamerki 10/10 :)

Fino zivkovicu, fino :D
Facebook - Klik




Posluzice lepo
[pawn]
= Ex Owner & Developer у Acuzio Gaming Online Community
= Ex Developer у Perfect Gaming Community
= Ex Developer у Smart Project Community
= Ex Developer у Athlone Community[/pawn]

Ukoliko imate ideju za funkciju neku da dodam ali da ima veze za ovaj include, pisite. :D


Odlična ideja, još bolja realizacija haha, samo guraj, ja sam to imao kad i kad u planu da uradim, al te rezolucije zezaju...
Svaka čast..

SRALJE

new const MAX_MONEY = 9999999999,
          MIN_MONEY = -9999999999;

printf("max: %d", MAX_MONEY);
printf("min: %d", MIN_MONEY);

Out:
max: 1410065407
min: -1410065407


https://en.wikipedia.org/wiki/2,147,483,647

Citat: .ксундер poslato Avgust 14, 2018, 12:53:21 POSLE PODNE
SRALJE

new const MAX_MONEY = 9999999999,
          MIN_MONEY = -9999999999;

printf("max: %d", MAX_MONEY);
printf("min: %d", MIN_MONEY);

Out:
max: 1410065407
min: -1410065407


https://en.wikipedia.org/wiki/2,147,483,647
hmm bem ti anu znas :D


SetMaxMoney
SetMaxMoneyForPlayer
SetPlayerMoney
Unkovic.
- Ex. BlackStorm Founder, Owner & Developer
- Ex. Underground Developer.

Citat: Unkovic poslato Avgust 14, 2018, 20:49:06 POSLE PODNE
SetMaxMoney
SetMaxMoneyForPlayer
SetPlayerMoney
Explain, sa parametrima, i sta i kako si zamislio?