Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Jul 4th, 2009 | Syntax: None | Size: 0.66 KB | Hits: 28 | Expires: Never
Copy text to clipboard
  1. forward Tutorial(playerid,status);
  2.  
  3. new tutstatus[MAX_PLAYERS];
  4. public Tutorial(status,playerid);
  5. {
  6.         if(status == 0)
  7.         {
  8.                 // What you want here
  9.                 SetTimerEx("Tutorial",5000,0,"ii",playerid,tutstatus[playerid]+1);
  10.                 return 1;
  11.         }
  12.         if(status == 1)
  13.         {
  14.                 // what you want here
  15.                 SetTimerEx("Tutorial",5000,0,"ii",playerid,tutstatus[playerid]+1);
  16.                 return 1;
  17.         }
  18.         // repeat if(status ...) until you're done.    
  19. }
  20.  
  21. // To start the cycle, just call Tutorial(playerid,tutstatus[playerid]); Remember to set the players tutstatus to 0 when they connect to the server, this means they will always start from the beginning of the cycle, not where the previous player finished.