10.03.2012, 08:12
This on top of your script:
This under OnGameModeInIt
This under OnGameModeExit
Under OnPlayerConnect
under OnPlayerDisconnect
under OnPlayerUpdate
and under everything in your script
If this did help you I would like to have rep from you =)
also if need more help, ask
Код:
new Text:Cash[MAX_PLAYERS]; new Text:Dollar; new Check;
Код:
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); return 1; }
Код:
KillTimer(Check);
Код:
Cash[playerid] = TextDrawCreate(511.500000, 78.000000, "00000000"); TextDrawBackgroundColor(Cash[playerid], 255); TextDrawFont(Cash[playerid], 3); TextDrawLetterSize(Cash[playerid], 0.599999, 2.000000); TextDrawSetOutline(Cash[playerid], 0); TextDrawSetProportional(Cash[playerid], 1); TextDrawSetShadow(Cash[playerid], 1); SetTimerEx("CheckMoney", 2000, true, "i", playerid); TextDrawShowForPlayer(playerid, Dollar); return 1; }
Код:
TextDrawHideForPlayer(playerid, Cash[playerid]); TextDrawHideForPlayer(playerid, Dollar); return 1; }
Код:
SetTimerEx("CheckMoney", 2000, true, "i", playerid);
Код:
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; }
also if need more help, ask