trans fs into gm
#5

This on top of your script:

Код:
new Text:Cash[MAX_PLAYERS];
new Text:Dollar;
new Check;
This under OnGameModeInIt

Код:
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;
}
This under OnGameModeExit

Код:
KillTimer(Check);
Under OnPlayerConnect
Код:
    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;
}
under OnPlayerDisconnect
Код:
    TextDrawHideForPlayer(playerid, Cash[playerid]);
    TextDrawHideForPlayer(playerid, Dollar);
    return 1;
}
under OnPlayerUpdate
Код:
SetTimerEx("CheckMoney", 2000, true, "i", playerid);
and under everything in your script

Код:
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;
}
If this did help you I would like to have rep from you =)
also if need more help, ask
Reply


Messages In This Thread
trans fs into gm - by N0FeaR - 10.03.2012, 07:17
Re: trans fs into gm - by dud - 10.03.2012, 07:25
Re: trans fs into gm - by N0FeaR - 10.03.2012, 07:53
Re: trans fs into gm - by Rac3r - 10.03.2012, 08:05
Re: trans fs into gm - by GNGification - 10.03.2012, 08:12
Re: trans fs into gm - by N0FeaR - 10.03.2012, 22:17

Forum Jump:


Users browsing this thread: 1 Guest(s)