Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 11th, 2012  |  syntax: None  |  size: 2.49 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Comandos para admin
  2. Agregar:
  3.  
  4. - /agl ponerlo en /ah 4
  5. Sirve para dar Licencias a un jugador (CMD Admin)
  6.  
  7. - Crear cmd /congelartodos y que sea para /ah 9
  8. Sirve para congelar a todos los Usuarios
  9.  
  10. - Crear cmd /descongelartodos y que sea para /ah 9
  11. Sirve para descongelar a todos los Usuarios
  12.  
  13.  
  14. CMD /FLY2 para /ah 1
  15.  
  16.         if(strcmp(cmd, "/fly2", true) == 0)
  17.         {
  18.             if(IsPlayerConnected(playerid))
  19.             {
  20.                         if (PlayerInfo[playerid][pAdmin] >= 1)
  21.                         {
  22.                                 if(ConFly[playerid] == 1) { ConFly[playerid] = 0; SendClientMessage(playerid, COLOR_GRAD1, "    Vuelo DesActivado."); }
  23.                                 else if(ConFly[playerid] == 0) { ConFly[playerid] = 1; SendClientMessage(playerid, COLOR_GRAD1, "       Vuelo Activado. Debes Salta para volar. Usa /fly para desactivar."); }
  24.                                 return 1;
  25.                         }
  26.                         else
  27.                         {
  28.                                 SendClientMessage(playerid, COLOR_GRAD1, "   No eres un admin !");
  29.                         }
  30.                 }
  31.                 return 1;
  32.         }
  33.  
  34.         if (strcmp(cmd, "/fly", true) == 0)
  35.         {
  36.             if(IsPlayerConnected(playerid))
  37.             {
  38.                         if (PlayerInfo[playerid][pAdmin] >= 1)
  39.                         {
  40.                                 new Float:px, Float:py, Float:pz, Float:pa;
  41.                                 GetPlayerFacingAngle(playerid,pa);
  42.                                 if(pa >= 0.0 && pa <= 22.5) //n1
  43.                                 {
  44.                                         GetPlayerPos(playerid, px, py, pz);
  45.                                         SetPlayerPos(playerid, px, py+30, pz+5);
  46.                                 }
  47.                                 if(pa >= 332.5 && pa < 0.0) //n2
  48.                                 {
  49.                                         GetPlayerPos(playerid, px, py, pz);
  50.                                         SetPlayerPos(playerid, px, py+30, pz+5);
  51.                                 }
  52.                                 if(pa >= 22.5 && pa <= 67.5) //nw
  53.                                 {
  54.                                         GetPlayerPos(playerid, px, py, pz);
  55.                                         SetPlayerPos(playerid, px-15, py+15, pz+5);
  56.                                 }
  57.                                 if(pa >= 67.5 && pa <= 112.5) //w
  58.                                 {
  59.                                         GetPlayerPos(playerid, px, py, pz);
  60.                                         SetPlayerPos(playerid, px-30, py, pz+5);
  61.                                 }
  62.                                 if(pa >= 112.5 && pa <= 157.5) //sw
  63.                                 {
  64.                                         GetPlayerPos(playerid, px, py, pz);
  65.                                         SetPlayerPos(playerid, px-15, py-15, pz+5);
  66.                                 }
  67.                                 if(pa >= 157.5 && pa <= 202.5) //s
  68.                                 {
  69.                                         GetPlayerPos(playerid, px, py, pz);
  70.                                         SetPlayerPos(playerid, px, py-30, pz+5);
  71.                                 }
  72.                                 if(pa >= 202.5 && pa <= 247.5)//se
  73.                                 {
  74.                                         GetPlayerPos(playerid, px, py, pz);
  75.                                         SetPlayerPos(playerid, px+15, py-15, pz+5);
  76.                                 }
  77.                                 if(pa >= 247.5 && pa <= 292.5)//e
  78.                                 {
  79.                                         GetPlayerPos(playerid, px, py, pz);
  80.                                         SetPlayerPos(playerid, px+30, py, pz+5);
  81.                                 }
  82.                                 if(pa >= 292.5 && pa <= 332.5)//e
  83.                                 {
  84.                                         GetPlayerPos(playerid, px, py, pz);
  85.                                         SetPlayerPos(playerid, px+15, py+15, pz+5);
  86.                                 }
  87.                         }
  88.                         else
  89.                         {
  90.                                 SendClientMessage(playerid, COLOR_GRAD1, "   No eres un administrador !");
  91.                         }
  92.                 }
  93.                 return 1;
  94.         }