15.07.2013, 13:48
So i made textdraw for money in bank. Script is working good, bu I dont know why but all players see bank money. I see money from all players on server. Can you help me? Here is my script:
OnPlayerSpawn
OnPlayerSpawn
Код:
format(statusbanka, sizeof(statusbanka), "$%i", APlayerData[playerid][BankMoney]); Novac = TextDrawCreate(499.000000, 108.000000, statusbanka); TextDrawBackgroundColor(Novac, 255); TextDrawFont(Novac, 3); TextDrawLetterSize(Novac, 0.509999, 1.600000); TextDrawColor(Novac, 65535); TextDrawSetOutline(Novac, 1); TextDrawSetProportional(Novac, 1); TextDrawSetSelectable(Novac, 0); APlayerData[playerid][Duznost] = 0; TextDrawHideForAll(Text:Novac); SetTimerEx("CheckBank", 2000, true, "i", playerid); */
Код:
public CheckBank(playerid) { format(statusbanka, sizeof(statusbanka), "$%i", APlayerData[playerid][BankMoney]); TextDrawSetString(Text:Novac, statusbanka); TextDrawShowForPlayer(playerid, Text:Novac); TextDrawShowForPlayer(playerid, Text:Banka); return 1; }