10.06.2012, 09:52
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;
}
or you want to count how much players are in team blue without the command /blue?