10.03.2012, 07:17
Hey there can anyone tell me how to trans a fs into to the gm
this fs i want trans http://pastebin.com/LthJgaFc.
this fs i want trans http://pastebin.com/LthJgaFc.
go at the top of your script, any custom functions (CheckMoney), place at the bottom of your script.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;
}