tessék ez átszínezi kékre a $ és fehérre az összeget
////////////////////////////////////////////////////////////////////////////////
/*
_____ _ _
|_ _| | | | |
| | _ __ ___| |_ _ __| | ___ ___
| | | \'_ \\ / __| | | | |/ _` |/ _ | __|
_| |_| | | | (__| | |_| | (_| | __|__ \\
\\___/|_| |_|\\___|_|\\__,_|\\__,_|\\___|___/
*/
#include <a_samp>
////////////////////////////////////////////////////////////////////////////////
/*
_ _
| \\ | |
| \\| | _____ _____
| . ` |/ _ \\ \\ /\\ / / __|
| |\\ | __/\\ V V /\\__ \\
\\_| \\_/\\___| \\_/\\_/ |___/
*/
new Text:Cash[MAX_PLAYERS];
new Text:Dollar;
new Check;
////////////////////////////////////////////////////////////////////////////////
/*
___ _ _ _ _
/ _ \\ | | (_) | | (_)
/ /_\\ \\ ___| |_ ___ ____ _| |_ _ ___ _ __
| _ |/ __| __| \\ \\ / / _` | __| |/ _ \\| \'_ \\
| | | | (__| |_| |\\ V / (_| | |_| | (_) | | | |
\\_| |_/\\___|\\__|_| \\_/ \\__,_|\\__|_|\\___/|_| |_|
*/
public OnFilterScriptInit()
{
print(\" _ ___ /^^. /^. /^^._\");
print(\" _ _@)@) . ,,/ \'` ~ `\'~~ \', `..\");
print(\" _/o._ _ _ _/~`.`...\'~. ./~~..,\'`\',\'\',.,\' \' ~:\");
print(\" / `,\'.~,~.~ . , . , ~|, ,/ .,\' , ,. .. ,,. `, ~._\");
print(\"( \' _\' _ \'_` _ \' . , `._/ .\' ..\' \' ` ` `.. `, ._\");
print(\" ~V~ V~ V~ V~ ~. ` \' . \' , \' .,.,\'\'`.,.\'\'`.,.``. \', ._\");
print(\" _/. /. /. /._/, . \' , `_/~._ .\' .,. ,, , _/~._ `. `. \'., ._\");
print(\" < ~ ~ \'~`\'~\'`, ., . `_: ::: ._ \' `_/ ::: ._ `.,\' . \', ._\");
print(\" . \' `_ \'`_ _ \',/ _::_::_ . _ _/ _::_::_ . `.,\'.,`., .-,-,-,_,_,\");
print(\" `\'~~ `\'~~ `\'~~ `\'~~ .(_)(_)(_)/ `~~\' .(_)(_)(_)/ ~\'`._.._,._,\'_;_;_;_;_;\");
print(\" _____________________________________________________________________________ \");
print(\"| |\");
print(\"| Colored Moneys |\");
print(\"| Created by Darky |\");
print(\"| ________________ |\");
print(\"| LOADED ! |\");
print(\"| |\");
print(\"|_____________________________________________________________________________|\");
return 1;
}
////////////////////////////////////////////////////////////////////////////////
/*
______ _ _ _ _
| _ \\ | | (_) | | (_)
| | | |___ ______ _ ___| |_ ___ ____ _| |_ _ ___ _ __
| | | / _ \\_ / _` |/ __| __| \\ \\ / / _` | __| |/ _ \\| \'_ \\
| |/ / __// / (_| | (__| |_| |\\ V / (_| | |_| | (_) | | | |
|___/ \\___/___\\__,_|\\___|\\__|_| \\_/ \\__,_|\\__|_|\\___/|_| |_|
*/
public OnFilterScriptExit()
{
print(\" _ ___ /^^. /^. /^^._\");
print(\" _ _@)@) . ,,/ \'` ~ `\'~~ \', `..\");
print(\" _/o._ _ _ _/~`.`...\'~. ./~~..,\'`\',\'\',.,\' \' ~:\");
print(\" / `,\'.~,~.~ . , . , ~|, ,/ .,\' , ,. .. ,,. `, ~._\");
print(\"( \' _\' _ \'_` _ \' . , `._/ .\' ..\' \' ` ` `.. `, ._\");
print(\" ~V~ V~ V~ V~ ~. ` \' . \' , \' .,.,\'\'`.,.\'\'`.,.``. \', ._\");
print(\" _/. /. /. /._/, . \' , `_/~._ .\' .,. ,, , _/~._ `. `. \'., ._\");
print(\" < ~ ~ \'~`\'~\'`, ., . `_: ::: ._ \' `_/ ::: ._ `.,\' . \', ._\");
print(\" . \' `_ \'`_ _ \',/ _::_::_ . _ _/ _::_::_ . `.,\'.,`., .-,-,-,_,_,\");
print(\" `\'~~ `\'~~ `\'~~ `\'~~ .(_)(_)(_)/ `~~\' .(_)(_)(_)/ ~\'`._.._,._,\'_;_;_;_;_;\");
print(\" _____________________________________________________________________________ \");
print(\"| |\");
print(\"| Colored Moneys |\");
print(\"| Created by Darky |\");
print(\"| ________________ |\");
print(\"| UNLOADED ! |\");
print(\"| |\");
print(\"|_____________________________________________________________________________|\");
KillTimer(Check);
return 1;
}
////////////////////////////////////////////////////////////////////////////////
/*
______ _ _ _
| ___ \\ | | | (_)
| |_/ /_ _| |__ | |_ ___ ___
| __/| | | | \'_ \\| | |/ __/ __|
| | | |_| | |_) | | | (__\\__ \\
\\_| \\__,_|_.__/|_|_|\\___|___/
*/
public OnPlayerConnect(playerid)
{
Dollar = TextDrawCreate(499.000000, 78.000000, \"~b~$\");
TextDrawBackgroundColor(Dollar, 255);
TextDrawFont(Dollar, 3);
TextDrawLetterSize(Dollar, 0.539999, 2.000000);
TextDrawColor(Dollar, 945269247);
TextDrawSetOutline(Dollar, 0);
TextDrawSetProportional(Dollar, 1);
TextDrawSetShadow(Dollar, 1);
////////////////////////////////////////////////////////////////////////////////
Cash[playerid] = TextDrawCreate(511.500000, 78.000000, \"00000000\");
TextDrawBackgroundColor(Cash[playerid], 255);
TextDrawFont(Cash[playerid], 3);
TextDrawLetterSize(Cash[playerid], 0.577999, 2.000000);
TextDrawSetOutline(Cash[playerid], 1);
TextDrawSetProportional(Cash[playerid], 1);
TextDrawSetShadow(Cash[playerid], 1);
////////////////////////////////////////////////////////////////////////////////
TextDrawShowForPlayer(playerid, Dollar);
SetTimerEx(\"CheckMoney\", 2000, true, \"i\", playerid);
return 1;
}
////////////////////////////////////////////////////////////////////////////////
public OnPlayerDisconnect(playerid)
{
TextDrawHideForPlayer(playerid, Cash[playerid]);
TextDrawHideForPlayer(playerid, Dollar);
return 1;
}
////////////////////////////////////////////////////////////////////////////////
public OnPlayerUpdate(playerid)
{
SetTimerEx(\"CheckMoney\", 2000, true, \"i\", playerid);
return 1;
}
////////////////////////////////////////////////////////////////////////////////
forward CheckMoney(playerid);
public CheckMoney(playerid)
{
new string[128];
format(string, sizeof(string), \"~w~%08d\", GetPlayerMoney(playerid));
TextDrawSetString(Cash[playerid], string);
TextDrawShowForPlayer(playerid, Cash[playerid]);
return 1;
}
////////////////////////////////////////////////////////////////////////////////