Textdraw :3
#5

pawn Код:
new Text:ScoreTD[MAX_PLAYERS];

public OnGameModeInit()
{
    ScoreTD[playerid] = TextDrawCreate(240.0, 580.0, "~r~Your score: _");
    return 1;
}

stock GivePlayerScore(playerid, score)
{
    new string[1 + 6 + 18];
    format(string, sizeof(string), "~r~Your score: ~w~%i", score);
    TextDrawSetString(ScoreTD[playerid], string);
    return SetPlayerScore(playerid, GetPlayerScore(playerid) + score));
}

//\\o_+
//\\Replace there you give someone score with "GivePlayerScore"
//\\You maybe have "SetPlayerScore(playerid, GetPlayerScore(playerid) + 1));"
//\\Change that to "GivePlayerScore(playerid, 1);"
Edit: PS: You must add TextDrawShowForPlayer somewhere, like on OnPlayerSpawn
Reply


Messages In This Thread
Textdraw :3 - by iGetty - 03.07.2011, 02:08
Re: Textdraw :3 - by =WoR=Varth - 03.07.2011, 02:13
Re: Textdraw :3 - by iGetty - 03.07.2011, 02:20
Re: Textdraw :3 - by =WoR=Varth - 03.07.2011, 02:26
Re: Textdraw :3 - by Laronic - 03.07.2011, 02:31
Re: Textdraw :3 - by iGetty - 03.07.2011, 02:34
Re: Textdraw :3 - by iGetty - 03.07.2011, 02:41
Re: Textdraw :3 - by Laronic - 03.07.2011, 02:44
Re: Textdraw :3 - by iGetty - 03.07.2011, 02:48
Re: Textdraw :3 - by Laronic - 03.07.2011, 02:55

Forum Jump:


Users browsing this thread: 2 Guest(s)