Advertisement
toribio

toribio

May 3rd, 2009
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. forward Aumentar();
  2.  
  3. new Tempo = 0;
  4.  
  5. public OnPlayerCommandText(playerid, cmdtext[])
  6. {
  7.     if(strcmp(cmdtext, "/aumentartempo", true) == 0)
  8.     {
  9.         Aumentar();
  10.         return 1;
  11.     }
  12.     return 0;
  13. }
  14.  
  15. public Aumentar()
  16. {
  17.     if(Tempo == 100)
  18.     {
  19.         Tempo = 0;
  20.         SendClientMessage(j, branco, "O tempo chegou a 100");
  21.     } else {
  22.         Tempo++;
  23.         SetTimer("Aumentar", 1000, false);
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement