whiplk

[CODE] - iCmd separation

Oct 21st, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.09 KB | None | 0 0
  1. //by Willian Luigi
  2.  
  3. public OnPlayerCommandText(playerid, commandid, params[]) <adm:players>
  4. {
  5.  
  6.     //comandos INICIO
  7.    
  8.         //comandos
  9.    
  10.     //comandos FINAL
  11.    
  12.     if (none(admin_level, playerid, bit4))
  13.         return 0;
  14.        
  15.        
  16.     state cmd:nv1;
  17.  
  18.  
  19.     return OnPlayerCommandText(playerid, commandid, params);
  20. }
  21. public OnPlayerCommandText(playerid, commandid, params[]) <adm:nv1>
  22. {
  23.     state cmd:players;
  24.    
  25.     //comandos INICIO
  26.    
  27.         //comandos
  28.        
  29.     //comandos FINAL
  30.    
  31.     if (getBit4(admin_level, playerid) == 1)
  32.         return 0;
  33.        
  34.  
  35.     state cmd:nv2;
  36.    
  37.  
  38.     return OnPlayerCommandText(playerid, commandid, params);
  39. }
  40. public OnPlayerCommandText(playerid, commandid, params[]) <adm:nv2>
  41. {
  42.     state cmd:players;
  43.  
  44.     //comandos INICIO
  45.    
  46.         //comandos
  47.        
  48.     //comandos FINAL
  49.  
  50.     if (getBit4(admin_level, playerid) == 2)
  51.         return 0;
  52.  
  53.  
  54.     state cmd:nv3;
  55.  
  56.  
  57.     return OnPlayerCommandText(playerid, commandid, params);
  58. }
  59. public OnPlayerCommandText(playerid, commandid, params[]) <adm:nv3>
  60. {
  61.     state cmd:players;
  62.  
  63.     //comandos INICIO
  64.  
  65.         //comandos
  66.        
  67.     //comandos FINAL
  68.  
  69.  
  70.     return 0;
  71. }
Advertisement
Add Comment
Please, Sign In to add comment