Advertisement
Parix

Timer infinito (Delle volte finisce)

Dec 14th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. forward TLivello2(playerid)
  2.  
  3. SetTimerEx("TLivello2", 1000, true, "i", playerid); // <--------- Timer
  4.  
  5. public TLivello2(playerid)
  6. {
  7. if(GetPlayerScore(playerid) == 2)
  8. {
  9. GameTextForPlayer(playerid, "Livello 2!", 5000, 1);
  10. new INI:File2 = INI_Open(TrofeiUtente(playerid));
  11. INI_WriteInt(File2,"Livello2",1);
  12. INI_Close(File2);
  13. KillTimer(TLivello2(playerid));
  14. }
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement