Topo do GM:
new tempo = 3;
Bota dentro da public OnPlayerCommandText:
pawn Код:
if (strcmp(cmdtext, "/contar", true)==0)
{
Contar();
SendClientMessage(playerid, -1, "Contagem iniciada!");
for(new i; i < MAX_PLAYERS; ++i) {
TogglePlayerControllable(i, false);
}
return true;
}
Bota no final do GM:
pawn Код:
forward Contar();
public Contar() {
if(!tempo) {
tempo = 3;
GameTextForAll("GO !", 2000, 4);
for(new i; i < MAX_PLAYERS; ++i) {
TogglePlayerControllable(i, true);
}
return false;
}
new s[128];
format(s, 128, "%i", tempo);
GameTextForAll(s, 2000, 4);
SetTimer("Contar", 1000, false);
tempo --;
return true;
}
Nгo testei sу adaptei...