SA-MP Forums Archive
[FilterScript] Colored Money - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Colored Money (/showthread.php?tid=553066)



Colored Money - Hwang - 27.12.2014



Hi, I have prepared such a system to create a more pleasing appearance, I wish you good use.


IMAGE



DOWNLOAD

CLICK ME!



Re: Colored Money - Write - 27.12.2014

Should make this an include and go like

SetMoneyColor(0xFFFFFFFF);

Good job anyhow.


Re: Colored Money - AgusZ - 28.12.2014

Simple! Good job anyways


Re: Colored Money - Hwang - 28.12.2014

Thanks for comments.


Re: Colored Money - Pottus - 28.12.2014

Don't use textdraws dude use playertextdraws and this should be an include not a filterscript.


AW: Colored Money - Flori - 28.12.2014

Nice one.


Re: Colored Money - BaggyB - 28.12.2014

OMG, I think it's a lot of work to make this shit possible, you da real mvp


Re: Colored Money - iLuXing - 28.12.2014

format(_yeniPara, sizeof _yeniPara, "$%08i", GetPlayerMoney(playerid);


use this formatted your

PHP код:
    if(GetPlayerMoney(playerid) >= 0             && GetPlayerMoney(playerid) <= 9)        { format(_yeniParasizeof _yeniPara"$0000000%i",     GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
    else if(
GetPlayerMoney(playerid) >= 10       && GetPlayerMoney(playerid) <= 99)       { format(_yeniParasizeof _yeniPara"$000000%i",      GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
    else if(
GetPlayerMoney(playerid) >= 100      && GetPlayerMoney(playerid) <= 999)      { format(_yeniParasizeof _yeniPara"$00000%i",       GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
    else if(
GetPlayerMoney(playerid) >= 1000     && GetPlayerMoney(playerid) <= 9999)     { format(_yeniParasizeof _yeniPara"$0000%i",        GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
    else if(
GetPlayerMoney(playerid) >= 10000    && GetPlayerMoney(playerid) <= 99999)    { format(_yeniParasizeof _yeniPara"$000%i",         GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
    else if(
GetPlayerMoney(playerid) >= 100000   && GetPlayerMoney(playerid) <= 999999)   { format(_yeniParasizeof _yeniPara"$00%i",          GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
    else if(
GetPlayerMoney(playerid) >= 1000000  && GetPlayerMoney(playerid) <= 9999999)  { format(_yeniParasizeof _yeniPara"$0%i",           GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }
    else if(
GetPlayerMoney(playerid) >= 10000000 && GetPlayerMoney(playerid) <= 99999999) { format(_yeniParasizeof _yeniPara"$%i",            GetPlayerMoney(playerid)); TextDrawSetString(RenkliPara[playerid], _yeniPara[0]); }} 



Re: Colored Money - UltraScripter - 28.12.2014

good job but can you upload it to pastebin?