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)
GetPlayerMoney(playerid);
GivePlayerMoney(playerid, money);
ResetPlayerMoney(playerid);
ChangeColorMoneyForPlayer(playerid, color);
Example script
#include
#include
#include
// 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);
}
Downolad
https://www.sendspace.com/file/od6n5w
https://pastebin.com/vLT1K5fq
lmao 42O
