Changing textdraw
#4

pawn Код:
new
    g_Blues = 0,
    Text:g_Textdraw
;

    if(strcmp(cmdtext, "/blue", true) == 0)
    {
        if(GetPVarInt(playerid, "blue") == 1) return 1; // Why add one again if the player already did this command
        SetPVarInt(playerid, "blue", 1);
        g_Blues++;
        new TD_String[20];
        format(TD_String, sizeof TD_String, "Blue: %d", g_Blues);
        TextDrawSetString(g_Textdraw, TD_String);
        return 1;
    }
You want this?

or you want to count how much players are in team blue without the command /blue?
Reply


Messages In This Thread
Changing textdraw - by lithuania154 - 10.06.2012, 09:46
Re: Changing textdraw - by JaKe Elite - 10.06.2012, 09:49
Re: Changing textdraw - by lithuania154 - 10.06.2012, 09:51
Re: Changing textdraw - by ReVo_ - 10.06.2012, 09:52
Re: Changing textdraw - by ReVo_ - 10.06.2012, 09:56
Re : Changing textdraw - by ricardo178 - 10.06.2012, 09:57
Re: Changing textdraw - by lithuania154 - 10.06.2012, 10:08

Forum Jump:


Users browsing this thread: 1 Guest(s)