11.10.2011, 20:10
pawn Код:
new players = -1; // COLOCA ISTO NO TOPO
// NO TOPO DO ONPLAYERCONNECT
players++;
// NO FINAL DO GM
forward AtualizeTextDraws();
public AtualizeTextDraws()
{
new carol[128];
format(carol, sizeof(carol),"Players: %d/%d", players, GetMaxPlayers();
SendClientMessage(playerid, -1, carol);
return 1;
}
assim mandarб mensagem.
para colocar textdraw:
pawn Код:
new players = -1; // COLOCA ISTO NO TOPO
// NO TOPO DO ONPLAYERCONNECT
players++;
// NO FINAL DO GM
forward AtualizeTextDraws();
public AtualizeTextDraws()
{
new carol[128];
format(carol, sizeof(carol),"Players: %d/%d", players, GetMaxPlayers();
TextDrawSetcarol(textdrawqualquerlugar, carol);
TextDrawShowForAll(textdrawqualquerlugar);
return 1;
}