[Help] how can i make coins system. IMAGES INCLUDED
#1

So here is what I need



I made Some Textdraw:

pawn Code:
#include <a_samp>

new Text:C;
new Text:Symbol;
new Text:One;
new Text:Ten;

public OnFilterScriptInit()
{
    // Cents:
    C = TextDrawCreate(613.000000, 86.000000, "C");
    TextDrawAlignment(C, 2);
    TextDrawBackgroundColor(C, 255);
    TextDrawFont(C, 1);
    TextDrawLetterSize(C, 0.460000, 1.200000);
    TextDrawColor(C, -65281);
    TextDrawSetOutline(C, 1);
    TextDrawSetProportional(C, 1);

    Symbol = TextDrawCreate(583.000000, 89.000000, ".");
    TextDrawAlignment(Symbol, 2);
    TextDrawBackgroundColor(Symbol, 255);
    TextDrawFont(Symbol, 1);
    TextDrawLetterSize(Symbol, 0.460000, 1.200000);
    TextDrawColor(Symbol, -65281);
    TextDrawSetOutline(Symbol, 1);
    TextDrawSetProportional(Symbol, 1);

    One = TextDrawCreate(596.000000, 77.000000, "0");
    TextDrawBackgroundColor(One, 255);
    TextDrawFont(One, 3);
    TextDrawLetterSize(One, 0.569998, 2.200000);
    TextDrawColor(One, -65281);
    TextDrawSetOutline(One, 1);
    TextDrawSetProportional(One, 1);

    Ten = TextDrawCreate(596.000000, 77.000000, "1");
    TextDrawAlignment(Ten, 3);
    TextDrawBackgroundColor(Ten, 255);
    TextDrawFont(Ten, 3);
    TextDrawLetterSize(Ten, 0.569999, 2.200000);
    TextDrawColor(Ten, -65281);
    TextDrawSetOutline(Ten, 1);
    TextDrawSetProportional(Ten, 1);

    return 1;
}

public OnFilterScriptExit()
{
    TextDrawHideForAll(C);
    TextDrawDestroy(C);
    TextDrawHideForAll(Symbol);
    TextDrawDestroy(Symbol);
    TextDrawHideForAll(One);
    TextDrawDestroy(One);
    TextDrawHideForAll(Ten);
    TextDrawDestroy(Ten);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, C);
    TextDrawShowForPlayer(playerid, Symbol);
    TextDrawShowForPlayer(playerid, One);
    TextDrawShowForPlayer(playerid, Ten);
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    TextDrawHideForPlayer(playerid, C);
    TextDrawHideForPlayer(playerid, Symbol);
    TextDrawHideForPlayer(playerid, One);
    TextDrawHideForPlayer(playerid, Ten);
    return 1;
}

public OnPlayerUpdate(playerid)
{
    return 1;
}
Reply


Messages In This Thread
[Help] how can i make coins system. IMAGES INCLUDED - by vakhtang - 04.06.2011, 17:06
Re: [Help] how can i make coins system. IMAGES INCLUDED - by bartje01 - 04.06.2011, 17:08
Re: [Help] how can i make coins system. IMAGES INCLUDED - by vakhtang - 04.06.2011, 17:10
Re: [Help] how can i make coins system. IMAGES INCLUDED - by LiamM - 05.06.2011, 00:20

Forum Jump:


Users browsing this thread: 1 Guest(s)