Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.66 KB | None | 0 0
  1. cmd:takemeth(playerid, params[])
  2. {
  3.     MethStage[playerid] = 1;
  4.     SetTimerEx("MethStageTimer", 3000, true, "d" playerid);
  5. }
  6.  
  7. forward MethStageTimer();
  8. public MethStageTimer()
  9. {
  10.     if(MethStage[playerid] == 1)
  11.     {
  12.         // do the stage 1 stuff
  13.         MethStage[playerid] = 2; // makes sure the timer will do meth stage 2 when it repeats
  14.        
  15.     }
  16.     else if(MethStage[playerid] == 2)
  17.     {
  18.         // do the stage 2 stuff
  19.         MethStage[playerid] = 3; // makes sure the timer will do meth stage 2 when it repeats
  20.  
  21.     }
  22.     if(MethStage[playerid] == 3)
  23.     {
  24.         // do the stage 3 stuff
  25.         MethStage[playerid] = 4; // makes sure the timer will do meth stage 2 when it repeats
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement