07.11.2012, 20:01
como ? alguem aer sabe ?
//No topo do GM
new PlayersOnline, textdrawstr;
//OnGameModeInit
"Tu vai colocar o textdraw aqui dentro"
//OnPlayerConnect
PlayersOnline ++;
format(textdrawstr, sizeof(textdrawstr), "Players Online: %02i", PlayersOnline);
TextDrawSetString(Text:Textid, PlayersOnline);
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Text:Textid); // Atualizar o TextDraw
}
}
//OnPlayerDisconnect
PlayersOnline ++;
format(textdrawstr, sizeof(textdrawstr), "Players Online: %02i", PlayersOnline);
TextDrawSetString(Text:Textid, PlayersOnline);
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Text:Textid); // Atualizar o TextDraw
}
}
pawn Код:
Creio que seja isso... |