Guest User

Administración por click

a guest
Nov 25th, 2013
2,088
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 26.42 KB | None | 0 0
  1. /*
  2. Sistema de administración por click - Click admin system
  3. Creado por Deryan - Krabe - Created by Deryan
  4. */
  5.  
  6. // -----------------------------------------------------------------------------
  7. #include <a_samp>
  8. // -----------------------------------------------------------------------------
  9. #define DIALOG_CLICK            500
  10. #define DIALOG_CLICK_DINERO     501
  11. #define DIALOG_CLICK_NIVEL      502
  12. #define DIALOG_CLICK_FACCION    503
  13. #define DIALOG_CLICK_VIP        504
  14. #define DIALOG_CLICK_COINS      505
  15. #define DIALOG_CLICK_SKIN       506
  16. #define DIALOG_CLICK_TELEPORT   507
  17. #define DIALOG_CLICK_MATAR      508
  18. #define DIALOG_CLICK_REVIVIR    509
  19. #define DIALOG_CLICK_CONGELAR   510
  20. #define DIALOG_CLICK_IR         511
  21. #define DIALOG_CLICK_TRAER      512
  22. #define DIALOG_CLICK_VIDA       513
  23. #define DIALOG_CLICK_CHALECO    514
  24. #define DIALOG_CLICK_KICKEAR    515
  25. #define DIALOG_CLICK_BANEAR     516
  26. // -----------------------------------------------------------------------------
  27. new pclicked[MAX_PLAYERS], bool:congelado[MAX_PLAYERS];
  28. // -----------------------------------------------------------------------------
  29. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  30. {
  31.     pclicked[playerid] = clickedplayerid;
  32.     if(!IsPlayerAdmin(playerid)) return 1;
  33.     ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  34.     PlayerPlaySound(playerid, 1058, 0,0,0);//sonido de entrada
  35.     return 1;
  36. }
  37. // -----------------------------------------------------------------------------
  38. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  39. {
  40.     if(dialogid == DIALOG_CLICK)
  41.     {
  42.         if(!response) return PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  43.         switch(listitem)
  44.         {
  45.             case 0:
  46.             {
  47.                 ShowPlayerDialog(playerid, DIALOG_CLICK_DINERO, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar dinero", "{FFFFFF}Ingresa la cantidad de dinero a enviar", "Enviar", "Atras");
  48.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  49.             }
  50.             case 1:
  51.             {
  52.                 ShowPlayerDialog(playerid, DIALOG_CLICK_NIVEL, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar nivel", "{FFFFFF}Ingresa el nivel que le quieres otorgar", "Aceptar", "Atras");
  53.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  54.             }
  55.             case 2:
  56.             {
  57.                 ShowPlayerDialog(playerid, DIALOG_CLICK_FACCION, DIALOG_STYLE_LIST, "{FFFFFF}Administración - Dar facción", "» Quitar facción\n» Policia\n» Líder Policia", "Aceptar", "Atras");
  58.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  59.             }
  60.             case 3:
  61.             {
  62.                 ShowPlayerDialog(playerid, DIALOG_CLICK_VIP, DIALOG_STYLE_LIST, "{FFFFFF}Administración - Sistema VIP", "» Quitar vip\n» Dar vip", "Aceptar", "Atras");
  63.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  64.             }
  65.             case 4:
  66.             {
  67.                 ShowPlayerDialog(playerid, DIALOG_CLICK_COINS, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar coins", "{FFFFFF}Ingresa la cantidad de coins que quieres darle", "Aceptar", "Atras");
  68.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  69.             }
  70.             case 5:
  71.             {
  72.                 ShowPlayerDialog(playerid, DIALOG_CLICK_SKIN, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar Skin", "{FFFFFF}Ingresa la id de el skin 0-299", "Aceptar", "Atras");
  73.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  74.             }
  75.             case 6:
  76.             {
  77.                 ShowPlayerDialog(playerid, DIALOG_CLICK_TELEPORT, DIALOG_STYLE_LIST, "{FFFFFF}Administración - Teleport", "» San Fierro\n» Las venturas\n» Los santos", "Aceptar", "Atras");
  78.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  79.             }
  80.             case 7:
  81.             {
  82.                 ShowPlayerDialog(playerid, DIALOG_CLICK_MATAR, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Matar usuario", "{FFFFFF}¿estás seguro que deseas matarlo?", "Aceptar", "Cancelar");
  83.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  84.             }
  85.             case 8:
  86.             {
  87.                 ShowPlayerDialog(playerid, DIALOG_CLICK_REVIVIR, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Revivir usuario", "{FFFFFF}¿estás seguro que deseas revivirlo?", "Aceptar", "Cancelar");
  88.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  89.             }
  90.             case 9:
  91.             {
  92.                 ShowPlayerDialog(playerid, DIALOG_CLICK_CONGELAR, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Congelar/descongelar", "{FFFFFF}¿Estás seguro que deseas congelar al usuario?", "Aceptar", "Cancelar");
  93.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  94.             }
  95.             case 10:
  96.             {
  97.                 ShowPlayerDialog(playerid, DIALOG_CLICK_IR, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Ir al usuario", "{FFFFFF}Confirma para ir a la posición del usuario", "Aceptar", "Cancelar");
  98.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  99.             }
  100.             case 11:
  101.             {
  102.                 ShowPlayerDialog(playerid, DIALOG_CLICK_TRAER, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Traer usuario", "{FFFFFF}Confirma para traer al usuario a tu posición", "Aceptar", "Cancelar");
  103.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  104.             }
  105.             case 12:
  106.             {
  107.                 ShowPlayerDialog(playerid, DIALOG_CLICK_VIDA, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Vida", "{FFFFFF}Confirma para darle vida al usuario", "Aceptar", "Cancelar");
  108.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  109.             }
  110.             case 13:
  111.             {
  112.                 ShowPlayerDialog(playerid, DIALOG_CLICK_CHALECO, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Chaleco", "{FFFFFF}Confirma para darle armadura al usuario", "Aceptar", "Cancelar");
  113.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  114.             }
  115.             case 14:
  116.             {
  117.                 ShowPlayerDialog(playerid, DIALOG_CLICK_KICKEAR, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Kickear usuario", "{FFFFFF}¿Estás seguro que quieres kickear a este usuario?", "Aceptar", "Cancelar");
  118.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  119.             }
  120.             case 15:
  121.             {
  122.                 ShowPlayerDialog(playerid, DIALOG_CLICK_BANEAR, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Banear usuario", "{FFFFFF}¿Estás seguro que quieres banear a este usuario?", "Aceptar", "Cancelar");
  123.                 PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
  124.             }
  125.         }
  126.     }
  127.     if(dialogid == DIALOG_CLICK_DINERO)
  128.     {
  129.         switch(response)
  130.         {
  131.             case 0:
  132.             {
  133.                 ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  134.                 PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  135.             }
  136.             case 1:
  137.             {
  138.                 if(!IsNumeric(inputtext)) return ShowPlayerDialog(playerid, DIALOG_CLICK_NIVEL, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar dinero", "{FFFFFF}Solo escribe el numero, no carácteres", "Enviar", "Atras");
  139.                 if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_CLICK_DINERO, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar dinero", "{FFFFFF}Debes ingresar una cantidad...", "Enviar", "Atras");
  140.                 GivePlayerMoney(pclicked[playerid], strval(inputtext));
  141.                 PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  142.                 new string[70 + MAX_PLAYER_NAME];
  143.                 format(string, sizeof(string), "El administrador {FBFB04}%s {FFFFFF}te dió {6CDF20}$%d{FFFFFF}",PlayerName(playerid), strval(inputtext));
  144.                 SendClientMessage(pclicked[playerid], -1, string);
  145.                 format(string, sizeof(string), "Le diste a {FBFB04}%s {6CDF20}$%d{FFFFFF}",PlayerName(pclicked[playerid]), strval(inputtext));
  146.                 SendClientMessage(playerid, -1, string);
  147.             }
  148.         }
  149.     }
  150.     if(dialogid == DIALOG_CLICK_NIVEL)
  151.     {
  152.         switch(response)
  153.         {
  154.             case 0:
  155.             {
  156.                 ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  157.                 PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  158.             }
  159.             case 1:
  160.             {
  161.                 if(!IsNumeric(inputtext)) return ShowPlayerDialog(playerid, DIALOG_CLICK_NIVEL, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar nivel", "{FFFFFF}Solo escribe el numero, no carácteres", "Enviar", "Atras");
  162.                 if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_CLICK_NIVEL, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar nivel", "{FFFFFF}Debes ingresar una nivel...", "Enviar", "Atras");
  163.                 SetPlayerScore(pclicked[playerid], strval(inputtext));
  164.                 PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  165.                 new string[70 + MAX_PLAYER_NAME];
  166.                 format(string, sizeof(string), "El administrador {FBFB04}%s {FFFFFF}te estableció nivel {00C0FF}%d",PlayerName(playerid), strval(inputtext));
  167.                 SendClientMessage(pclicked[playerid], -1, string);
  168.                 format(string, sizeof(string), "Le estableciste nivel {00C0FF}%d{FFFFFF} a {FBFB04}%s", strval(inputtext), PlayerName(pclicked[playerid]));
  169.                 SendClientMessage(playerid, -1, string);
  170.             }
  171.         }
  172.     }
  173.     if(dialogid == DIALOG_CLICK_FACCION)
  174.     {
  175.         if(!response) return PlayerPlaySound(playerid, 1084, 0,0,0), ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  176.         {
  177.             switch(listitem)
  178.             {
  179.                 case 0:
  180.                 {
  181.                     //Informacion[pclicked[playerid]][Miembro] = 0;
  182.                     //Informacion[pclicked[playerid]][Lider] = 0;
  183.                     PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  184.                     new string[70 + MAX_PLAYER_NAME];
  185.                     format(string, sizeof(string), "El administrador {FBFB04}%s{FFFFFF} te quitó la facción que tenias",PlayerName(playerid));
  186.                     SendClientMessage(pclicked[playerid], -1, string);
  187.                     format(string, sizeof(string), "Le quitaste la facción a {FBFB04}%s{FFFFFF}", PlayerName(pclicked[playerid]));
  188.                     SendClientMessage(playerid, -1, string);
  189.                 }
  190.                 case 1:
  191.                 {
  192.                     //Informacion[pclicked[playerid]][Miembro] = 1;
  193.                     PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  194.                     new string[70 + MAX_PLAYER_NAME];
  195.                     format(string, sizeof(string), "El administrador {FBFB04}%s{FFFFFF} te estableció la facción SAPD",PlayerName(playerid));
  196.                     SendClientMessage(pclicked[playerid], -1, string);
  197.                     format(string, sizeof(string), "Le estableciste la facción de SAPD a {FBFB04}%s{FFFFFF}", PlayerName(pclicked[playerid]));
  198.                     SendClientMessage(playerid, -1, string);
  199.                 }
  200.                 case 2:
  201.                 {
  202.                     //Informacion[pclicked[playerid]][Lider] = 1;
  203.                     //Informacion[pclicked[playerid]][Miembro] = 1;
  204.                     PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  205.                     new string[70 + MAX_PLAYER_NAME];
  206.                     format(string, sizeof(string), "El administrador {FBFB04}%s{FFFFFF} te estableció líder de la facción SAPD",PlayerName(playerid));
  207.                     SendClientMessage(pclicked[playerid], -1, string);
  208.                     format(string, sizeof(string), "Le estableciste líder de la facción de SAPD a {FBFB04}%s{FFFFFF}", PlayerName(pclicked[playerid]));
  209.                     SendClientMessage(playerid, -1, string);
  210.                 }
  211.             }
  212.         }
  213.     }
  214.     if(dialogid == DIALOG_CLICK_VIP)
  215.     {
  216.         if(!response) return PlayerPlaySound(playerid, 1084, 0,0,0), ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  217.         {
  218.             switch(listitem)
  219.             {
  220.                 case 0:
  221.                 {
  222.                     //Informacion[pclicked[playerid]][Vip] = 0;
  223.                     PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  224.                     new string[70 + MAX_PLAYER_NAME];
  225.                     format(string, sizeof(string), "El administrador {FBFB04}%s{FFFFFF} te quitó tu cuenta VIP", PlayerName(playerid));
  226.                     SendClientMessage(pclicked[playerid], -1, string);
  227.                     format(string, sizeof(string), "Le quitaste la cuenta VIP a {FBFB04}%s{FFFFFF}", PlayerName(pclicked[playerid]));
  228.                     SendClientMessage(playerid, -1, string);
  229.                 }
  230.                 case 1:
  231.                 {
  232.                     //Informacion[pclicked[playerid]][Vip] = 1;
  233.                     PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  234.                     new string[70 + MAX_PLAYER_NAME];
  235.                     format(string, sizeof(string), "El administrador %s te estableció una cuenta VIP", PlayerName(playerid));
  236.                     SendClientMessage(pclicked[playerid], 0xFBFB04FF, string);
  237.                     format(string, sizeof(string), "Le estableciste una cuenta VIP a %s", PlayerName(pclicked[playerid]));
  238.                     SendClientMessage(playerid, 0xFBFB04FF, string);
  239.                 }
  240.             }
  241.         }
  242.     }
  243.     if(dialogid == DIALOG_CLICK_COINS)
  244.     {
  245.         switch(response)
  246.         {
  247.             case 0:
  248.             {
  249.                 ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  250.                 PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  251.             }
  252.             case 1:
  253.             {
  254.                 if(!IsNumeric(inputtext)) return ShowPlayerDialog(playerid, DIALOG_CLICK_NIVEL, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar coins", "{FFFFFF}Solo escribe el numero, no carácteres", "Aceptar", "Atras");
  255.                 if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_CLICK_NIVEL, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar coins", "{FFFFFF}Debes ingresar una cantidad...", "Aceptar", "Atras");
  256.                 //Informacion[pclicked[playerid]][Coins] = strval(inputtext);
  257.                 PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  258.                 new string[70 + MAX_PLAYER_NAME];
  259.                 format(string, sizeof(string), "El administrador {FBFB04}%s{FFFFFF} te regaló {FBFB04}%d{FFFFFF} coins", PlayerName(playerid), strval(inputtext));
  260.                 SendClientMessage(pclicked[playerid], -1, string);
  261.                 format(string, sizeof(string), "Le regalaste {FBFB04}%d{FFFFFF} coins a {FBFB04}%s{FFFFFF}", strval(inputtext), PlayerName(pclicked[playerid]));
  262.                 SendClientMessage(playerid, -1, string);
  263.             }
  264.         }
  265.     }
  266.     if(dialogid == DIALOG_CLICK_SKIN)
  267.     {
  268.         switch(response)
  269.         {
  270.             case 0:
  271.             {
  272.                 ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  273.                 PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  274.             }
  275.             case 1:
  276.             {
  277.                 if(!IsNumeric(inputtext)) return ShowPlayerDialog(playerid, DIALOG_CLICK_SKIN, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar skin", "{FFFFFF}Solo escribe el numero, no carácteres", "Aceptar", "Atras");
  278.                 if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_CLICK_SKIN, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar skin", "{FFFFFF}Debes ingresar una numero de skin...", "Aceptar", "Atras");
  279.                 SetPlayerSkin(pclicked[playerid], strval(inputtext));
  280.                 //Informacion[pclicked[playerid]][Skin] = strval(inputtext);
  281.                 PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  282.                 new string[70 + MAX_PLAYER_NAME];
  283.                 format(string, sizeof(string), "El administrador {FBFB04}%s{FFFFFF} te regaló el skin {FBFB04}%d{FFFFFF}", PlayerName(playerid), strval(inputtext));
  284.                 SendClientMessage(pclicked[playerid], -1, string);
  285.                 format(string, sizeof(string), "Le regalaste el skin {FBFB04}%d{FFFFFF} a {FBFB04}%s{FFFFFF}", strval(inputtext), PlayerName(pclicked[playerid]));
  286.                 SendClientMessage(playerid, -1, string);
  287.             }
  288.         }
  289.     }
  290.     if(dialogid == DIALOG_CLICK_TELEPORT)
  291.     {
  292.         if(!response) return PlayerPlaySound(playerid, 1084, 0,0,0), ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  293.         {
  294.             switch(listitem)
  295.             {
  296.                 case 0:
  297.                 {
  298.                     SetPlayerPos(pclicked[playerid], -1604.0071,718.3127,11.7042);//san fierro
  299.                     PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  300.                     SendClientMessage(playerid, 0x6CDF20FF, "Jugador teleportado a San Fierro correctamente");
  301.                     SendClientMessage(pclicked[playerid], 0xA64FB0FF, "Fuiste teleportado a San Fierro por un administrador");
  302.                     SetPlayerVirtualWorld(playerid, 0);
  303.                     SetPlayerInterior(playerid, 0);
  304.                 }
  305.                 case 1:
  306.                 {
  307.                     SetPlayerPos(pclicked[playerid], 2287.5430,2426.3452,10.8203);//las venturas
  308.                     PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  309.                     SendClientMessage(playerid, 0x6CDF20FF, "Jugador teleportado a Las venturas correctamente");
  310.                     SendClientMessage(pclicked[playerid], 0xA64FB0FF, "Fuiste teleportado a Las venturas por un administrador");
  311.                     SetPlayerVirtualWorld(playerid, 0);
  312.                     SetPlayerInterior(playerid, 0);
  313.                 }
  314.                 case 2:
  315.                 {
  316.                     SetPlayerPos(pclicked[playerid], 1484.2617,-1744.8719,13.5469);//los santos
  317.                     PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  318.                     SendClientMessage(playerid, 0x6CDF20FF, "Jugador teleportado a Los santos correctamente");
  319.                     SendClientMessage(pclicked[playerid], 0xA64FB0FF, "Fuiste teleportado a Los santos por un administrador");
  320.                     SetPlayerVirtualWorld(playerid, 0);
  321.                     SetPlayerInterior(playerid, 0);
  322.                 }
  323.             }
  324.         }
  325.     }
  326.     if(dialogid == DIALOG_CLICK_MATAR)
  327.     {
  328.         switch(response)
  329.         {
  330.             case 0:
  331.             {
  332.                 ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  333.                 PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  334.             }
  335.             case 1:
  336.             {
  337.                 SetPlayerHealth(pclicked[playerid], 0.0);
  338.                 PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  339.                 SendClientMessage(pclicked[playerid], 0xA64FB0FF, "Un administrador te mató");
  340.                 SendClientMessage(playerid, 0x6CDF20FF, "Mataste al jugador correctamente");
  341.             }
  342.         }
  343.     }
  344.     if(dialogid == DIALOG_CLICK_REVIVIR)
  345.     {
  346.         switch(response)
  347.         {
  348.             case 0:
  349.             {
  350.                 ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  351.                 PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  352.             }
  353.             case 1:
  354.             {
  355.                 //Informacion[playerid][Agonizando] = 0;
  356.                 SetPlayerHealth(pclicked[playerid], 100.0);
  357.                 PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
  358.                 SendClientMessage(pclicked[playerid], 0xA64FB0FF, "Un administrador te re-animó y se te devolvieron las armas");
  359.                 SendClientMessage(playerid, 0x6CDF20FF, "Jugador reanimado");
  360.             }
  361.         }
  362.     }
  363.     if(dialogid == DIALOG_CLICK_CONGELAR)
  364.     {
  365.         switch(response)
  366.         {
  367.             case 0:
  368.             {
  369.                 ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  370.                 PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  371.             }
  372.             case 1:
  373.             {
  374.                 if(congelado[pclicked[playerid]] == false) TogglePlayerControllable(pclicked[playerid], 0), congelado[pclicked[playerid]] = true;
  375.                 else if(congelado[pclicked[playerid]] == true) TogglePlayerControllable(pclicked[playerid], 1), congelado[pclicked[playerid]] = false;
  376.             }
  377.         }
  378.     }
  379.     if(dialogid == DIALOG_CLICK_IR)
  380.     {
  381.         switch(response)
  382.         {
  383.             case 0:
  384.             {
  385.                 ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  386.                 PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  387.             }
  388.             case 1:
  389.             {
  390.                 new Float:p[3], interior = GetPlayerInterior(pclicked[playerid]), vw = GetPlayerVirtualWorld(pclicked[playerid]);
  391.                 GetPlayerPos(pclicked[playerid], p[0],p[1],p[2]);
  392.                 SetPlayerPos(playerid, p[0],p[1],p[2]);
  393.                 SetPlayerVirtualWorld(playerid, vw);
  394.                 SetPlayerInterior(playerid, interior);
  395.             }
  396.         }
  397.     }
  398.     if(dialogid == DIALOG_CLICK_TRAER)
  399.     {
  400.         switch(response)
  401.         {
  402.             case 0:
  403.             {
  404.                 ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  405.                 PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  406.             }
  407.             case 1:
  408.             {
  409.                 new Float:p[3], interior = GetPlayerInterior(playerid), vw = GetPlayerVirtualWorld(playerid);
  410.                 GetPlayerPos(playerid, p[0],p[1],p[2]);
  411.                 SetPlayerPos(pclicked[playerid], p[0],p[1],p[2]);
  412.                 SetPlayerVirtualWorld(pclicked[playerid], vw);
  413.                 SetPlayerInterior(pclicked[playerid], interior);
  414.             }
  415.         }
  416.     }
  417.     if(dialogid == DIALOG_CLICK_VIDA)
  418.     {
  419.         switch(response)
  420.         {
  421.             case 0:
  422.             {
  423.                 ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  424.                 PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  425.             }
  426.             case 1:
  427.             {
  428.                 SetPlayerHealth(pclicked[playerid], 100.0);
  429.             }
  430.         }
  431.     }
  432.     if(dialogid == DIALOG_CLICK_CHALECO)
  433.     {
  434.         switch(response)
  435.         {
  436.             case 0:
  437.             {
  438.                 ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  439.                 PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  440.             }
  441.             case 1:
  442.             {
  443.                 SetPlayerArmour(pclicked[playerid], 100.0);
  444.             }
  445.         }
  446.     }
  447.     if(dialogid == DIALOG_CLICK_KICKEAR)
  448.     {
  449.         switch(response)
  450.         {
  451.             case 0:
  452.             {
  453.                 ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  454.                 PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  455.             }
  456.             case 1:
  457.             {
  458.                 KickEx(pclicked[playerid]);
  459.             }
  460.         }
  461.     }
  462.     if(dialogid == DIALOG_CLICK_BANEAR)
  463.     {
  464.         switch(response)
  465.         {
  466.             case 0:
  467.             {
  468.                 ShowPlayerDialog(playerid, DIALOG_CLICK, DIALOG_STYLE_LIST, "{FFFFFF}Sistema de administración por click","» Dar dinero\n» Dar nivel\n» Dar facción\n» Dar VIP\n» Dar Coins\n» Dar skin\n» Teleportar\n» Matar\n» Revivir\n» Congelar - Descongelar\n» Ir\n» Traer\n» Vida\n» Chaleco\n» Kickear\n» Banear","Aplicar", "Cancelar");
  469.                 PlayerPlaySound(playerid, 1084, 0,0,0);//atras
  470.             }
  471.             case 1:
  472.             {
  473.                 Ban(pclicked[playerid]);
  474.             }
  475.         }
  476.     }
  477.     return 0;
  478. }
  479. // -----------------------------------------------------------------------------
  480. PlayerName(playerid)
  481. {
  482.     new sz_playerName[MAX_PLAYER_NAME], i_pos;
  483.     GetPlayerName(playerid, sz_playerName, MAX_PLAYER_NAME);
  484.     while ((i_pos = strfind(sz_playerName, "_", false, i_pos)) != -1) sz_playerName[i_pos] = ' ';
  485.     return sz_playerName;
  486. }
  487. // -----------------------------------------------------------------------------
  488. stock IsNumeric(const string[])
  489. {
  490.     for (new i = 0, j = strlen(string); i < j; i++)
  491.     {
  492.         if (string[i] > '9' || string[i] < '0') return 0;
  493.     }
  494.     return 1;
  495. }
  496. // -----------------------------------------------------------------------------
  497. stock KickEx(playerid)
  498. {
  499.     SetTimerEx("KickPublic", 500, 0, "d", playerid);
  500.     return 1;
  501. }
  502.  
  503. forward KickPublic(playerid);
  504. public KickPublic(playerid) Kick(playerid);
Advertisement
Add Comment
Please, Sign In to add comment