Yiin

Untitled

Jun 9th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. new ProcessRunning[MAX_PLAYERS];
  2. new PlayerVeiksmoTimer[MAX_PLAYERS];
  3.  
  4. forward SODINTIMEDI(playerid, treeid);
  5. public SODINTIMEDI(playerid, treeid) {
  6. #pragma unused playerid, treeid
  7. }
  8.  
  9. Process(playerid, time, procesaslt[], procesasen[]) {
  10. #pragma unused playerid, time, procesaslt, procesasen
  11. }
  12.  
  13. #define RunProcess:%0(%1,%2,%3,%4,%5,%6) do { if(!ProcessRunning[%1]) { PlayerVeiksmoTimer[%1] = SetTimerEx(#%0,%2,false,"i"#%5,%1,%6); Process(%1,%2,%3,%4); } } while(FALSE)
  14.  
  15. main() {
  16. RunProcess:SODINTIMEDI(1, 5000, "Sodini medi", "You are planting a tree", "i", 0);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment