Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Sistema de administración por click - Click admin system
- Creado por Deryan - Krabe - Created by Deryan
- */
- // -----------------------------------------------------------------------------
- #include <a_samp>
- // -----------------------------------------------------------------------------
- #define DIALOG_CLICK 500
- #define DIALOG_CLICK_DINERO 501
- #define DIALOG_CLICK_NIVEL 502
- #define DIALOG_CLICK_FACCION 503
- #define DIALOG_CLICK_VIP 504
- #define DIALOG_CLICK_COINS 505
- #define DIALOG_CLICK_SKIN 506
- #define DIALOG_CLICK_TELEPORT 507
- #define DIALOG_CLICK_MATAR 508
- #define DIALOG_CLICK_REVIVIR 509
- #define DIALOG_CLICK_CONGELAR 510
- #define DIALOG_CLICK_IR 511
- #define DIALOG_CLICK_TRAER 512
- #define DIALOG_CLICK_VIDA 513
- #define DIALOG_CLICK_CHALECO 514
- #define DIALOG_CLICK_KICKEAR 515
- #define DIALOG_CLICK_BANEAR 516
- // -----------------------------------------------------------------------------
- new pclicked[MAX_PLAYERS], bool:congelado[MAX_PLAYERS];
- // -----------------------------------------------------------------------------
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- pclicked[playerid] = clickedplayerid;
- if(!IsPlayerAdmin(playerid)) return 1;
- 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");
- PlayerPlaySound(playerid, 1058, 0,0,0);//sonido de entrada
- return 1;
- }
- // -----------------------------------------------------------------------------
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_CLICK)
- {
- if(!response) return PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, DIALOG_CLICK_DINERO, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar dinero", "{FFFFFF}Ingresa la cantidad de dinero a enviar", "Enviar", "Atras");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIALOG_CLICK_NIVEL, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar nivel", "{FFFFFF}Ingresa el nivel que le quieres otorgar", "Aceptar", "Atras");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 2:
- {
- 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");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 3:
- {
- ShowPlayerDialog(playerid, DIALOG_CLICK_VIP, DIALOG_STYLE_LIST, "{FFFFFF}Administración - Sistema VIP", "» Quitar vip\n» Dar vip", "Aceptar", "Atras");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 4:
- {
- ShowPlayerDialog(playerid, DIALOG_CLICK_COINS, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar coins", "{FFFFFF}Ingresa la cantidad de coins que quieres darle", "Aceptar", "Atras");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 5:
- {
- ShowPlayerDialog(playerid, DIALOG_CLICK_SKIN, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar Skin", "{FFFFFF}Ingresa la id de el skin 0-299", "Aceptar", "Atras");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 6:
- {
- ShowPlayerDialog(playerid, DIALOG_CLICK_TELEPORT, DIALOG_STYLE_LIST, "{FFFFFF}Administración - Teleport", "» San Fierro\n» Las venturas\n» Los santos", "Aceptar", "Atras");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 7:
- {
- ShowPlayerDialog(playerid, DIALOG_CLICK_MATAR, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Matar usuario", "{FFFFFF}¿estás seguro que deseas matarlo?", "Aceptar", "Cancelar");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 8:
- {
- ShowPlayerDialog(playerid, DIALOG_CLICK_REVIVIR, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Revivir usuario", "{FFFFFF}¿estás seguro que deseas revivirlo?", "Aceptar", "Cancelar");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 9:
- {
- ShowPlayerDialog(playerid, DIALOG_CLICK_CONGELAR, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Congelar/descongelar", "{FFFFFF}¿Estás seguro que deseas congelar al usuario?", "Aceptar", "Cancelar");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 10:
- {
- 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");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 11:
- {
- 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");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 12:
- {
- ShowPlayerDialog(playerid, DIALOG_CLICK_VIDA, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Vida", "{FFFFFF}Confirma para darle vida al usuario", "Aceptar", "Cancelar");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 13:
- {
- ShowPlayerDialog(playerid, DIALOG_CLICK_CHALECO, DIALOG_STYLE_MSGBOX, "{FFFFFF}Administración - Chaleco", "{FFFFFF}Confirma para darle armadura al usuario", "Aceptar", "Cancelar");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 14:
- {
- 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");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- case 15:
- {
- 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");
- PlayerPlaySound(playerid, 1083, 0,0,0);//adelante
- }
- }
- }
- if(dialogid == DIALOG_CLICK_DINERO)
- {
- switch(response)
- {
- case 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");
- PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- }
- case 1:
- {
- 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");
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_CLICK_DINERO, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar dinero", "{FFFFFF}Debes ingresar una cantidad...", "Enviar", "Atras");
- GivePlayerMoney(pclicked[playerid], strval(inputtext));
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- new string[70 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "El administrador {FBFB04}%s {FFFFFF}te dió {6CDF20}$%d{FFFFFF}",PlayerName(playerid), strval(inputtext));
- SendClientMessage(pclicked[playerid], -1, string);
- format(string, sizeof(string), "Le diste a {FBFB04}%s {6CDF20}$%d{FFFFFF}",PlayerName(pclicked[playerid]), strval(inputtext));
- SendClientMessage(playerid, -1, string);
- }
- }
- }
- if(dialogid == DIALOG_CLICK_NIVEL)
- {
- switch(response)
- {
- case 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");
- PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- }
- case 1:
- {
- 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");
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_CLICK_NIVEL, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar nivel", "{FFFFFF}Debes ingresar una nivel...", "Enviar", "Atras");
- SetPlayerScore(pclicked[playerid], strval(inputtext));
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- new string[70 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "El administrador {FBFB04}%s {FFFFFF}te estableció nivel {00C0FF}%d",PlayerName(playerid), strval(inputtext));
- SendClientMessage(pclicked[playerid], -1, string);
- format(string, sizeof(string), "Le estableciste nivel {00C0FF}%d{FFFFFF} a {FBFB04}%s", strval(inputtext), PlayerName(pclicked[playerid]));
- SendClientMessage(playerid, -1, string);
- }
- }
- }
- if(dialogid == DIALOG_CLICK_FACCION)
- {
- 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");
- {
- switch(listitem)
- {
- case 0:
- {
- //Informacion[pclicked[playerid]][Miembro] = 0;
- //Informacion[pclicked[playerid]][Lider] = 0;
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- new string[70 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "El administrador {FBFB04}%s{FFFFFF} te quitó la facción que tenias",PlayerName(playerid));
- SendClientMessage(pclicked[playerid], -1, string);
- format(string, sizeof(string), "Le quitaste la facción a {FBFB04}%s{FFFFFF}", PlayerName(pclicked[playerid]));
- SendClientMessage(playerid, -1, string);
- }
- case 1:
- {
- //Informacion[pclicked[playerid]][Miembro] = 1;
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- new string[70 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "El administrador {FBFB04}%s{FFFFFF} te estableció la facción SAPD",PlayerName(playerid));
- SendClientMessage(pclicked[playerid], -1, string);
- format(string, sizeof(string), "Le estableciste la facción de SAPD a {FBFB04}%s{FFFFFF}", PlayerName(pclicked[playerid]));
- SendClientMessage(playerid, -1, string);
- }
- case 2:
- {
- //Informacion[pclicked[playerid]][Lider] = 1;
- //Informacion[pclicked[playerid]][Miembro] = 1;
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- new string[70 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "El administrador {FBFB04}%s{FFFFFF} te estableció líder de la facción SAPD",PlayerName(playerid));
- SendClientMessage(pclicked[playerid], -1, string);
- format(string, sizeof(string), "Le estableciste líder de la facción de SAPD a {FBFB04}%s{FFFFFF}", PlayerName(pclicked[playerid]));
- SendClientMessage(playerid, -1, string);
- }
- }
- }
- }
- if(dialogid == DIALOG_CLICK_VIP)
- {
- 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");
- {
- switch(listitem)
- {
- case 0:
- {
- //Informacion[pclicked[playerid]][Vip] = 0;
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- new string[70 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "El administrador {FBFB04}%s{FFFFFF} te quitó tu cuenta VIP", PlayerName(playerid));
- SendClientMessage(pclicked[playerid], -1, string);
- format(string, sizeof(string), "Le quitaste la cuenta VIP a {FBFB04}%s{FFFFFF}", PlayerName(pclicked[playerid]));
- SendClientMessage(playerid, -1, string);
- }
- case 1:
- {
- //Informacion[pclicked[playerid]][Vip] = 1;
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- new string[70 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "El administrador %s te estableció una cuenta VIP", PlayerName(playerid));
- SendClientMessage(pclicked[playerid], 0xFBFB04FF, string);
- format(string, sizeof(string), "Le estableciste una cuenta VIP a %s", PlayerName(pclicked[playerid]));
- SendClientMessage(playerid, 0xFBFB04FF, string);
- }
- }
- }
- }
- if(dialogid == DIALOG_CLICK_COINS)
- {
- switch(response)
- {
- case 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");
- PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- }
- case 1:
- {
- 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");
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_CLICK_NIVEL, DIALOG_STYLE_INPUT, "{FFFFFF}Administración - Dar coins", "{FFFFFF}Debes ingresar una cantidad...", "Aceptar", "Atras");
- //Informacion[pclicked[playerid]][Coins] = strval(inputtext);
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- new string[70 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "El administrador {FBFB04}%s{FFFFFF} te regaló {FBFB04}%d{FFFFFF} coins", PlayerName(playerid), strval(inputtext));
- SendClientMessage(pclicked[playerid], -1, string);
- format(string, sizeof(string), "Le regalaste {FBFB04}%d{FFFFFF} coins a {FBFB04}%s{FFFFFF}", strval(inputtext), PlayerName(pclicked[playerid]));
- SendClientMessage(playerid, -1, string);
- }
- }
- }
- if(dialogid == DIALOG_CLICK_SKIN)
- {
- switch(response)
- {
- case 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");
- PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- }
- case 1:
- {
- 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");
- 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");
- SetPlayerSkin(pclicked[playerid], strval(inputtext));
- //Informacion[pclicked[playerid]][Skin] = strval(inputtext);
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- new string[70 + MAX_PLAYER_NAME];
- format(string, sizeof(string), "El administrador {FBFB04}%s{FFFFFF} te regaló el skin {FBFB04}%d{FFFFFF}", PlayerName(playerid), strval(inputtext));
- SendClientMessage(pclicked[playerid], -1, string);
- format(string, sizeof(string), "Le regalaste el skin {FBFB04}%d{FFFFFF} a {FBFB04}%s{FFFFFF}", strval(inputtext), PlayerName(pclicked[playerid]));
- SendClientMessage(playerid, -1, string);
- }
- }
- }
- if(dialogid == DIALOG_CLICK_TELEPORT)
- {
- 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");
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerPos(pclicked[playerid], -1604.0071,718.3127,11.7042);//san fierro
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- SendClientMessage(playerid, 0x6CDF20FF, "Jugador teleportado a San Fierro correctamente");
- SendClientMessage(pclicked[playerid], 0xA64FB0FF, "Fuiste teleportado a San Fierro por un administrador");
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, 0);
- }
- case 1:
- {
- SetPlayerPos(pclicked[playerid], 2287.5430,2426.3452,10.8203);//las venturas
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- SendClientMessage(playerid, 0x6CDF20FF, "Jugador teleportado a Las venturas correctamente");
- SendClientMessage(pclicked[playerid], 0xA64FB0FF, "Fuiste teleportado a Las venturas por un administrador");
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, 0);
- }
- case 2:
- {
- SetPlayerPos(pclicked[playerid], 1484.2617,-1744.8719,13.5469);//los santos
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- SendClientMessage(playerid, 0x6CDF20FF, "Jugador teleportado a Los santos correctamente");
- SendClientMessage(pclicked[playerid], 0xA64FB0FF, "Fuiste teleportado a Los santos por un administrador");
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, 0);
- }
- }
- }
- }
- if(dialogid == DIALOG_CLICK_MATAR)
- {
- switch(response)
- {
- case 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");
- PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- }
- case 1:
- {
- SetPlayerHealth(pclicked[playerid], 0.0);
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- SendClientMessage(pclicked[playerid], 0xA64FB0FF, "Un administrador te mató");
- SendClientMessage(playerid, 0x6CDF20FF, "Mataste al jugador correctamente");
- }
- }
- }
- if(dialogid == DIALOG_CLICK_REVIVIR)
- {
- switch(response)
- {
- case 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");
- PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- }
- case 1:
- {
- //Informacion[playerid][Agonizando] = 0;
- SetPlayerHealth(pclicked[playerid], 100.0);
- PlayerPlaySound(playerid, 1057, 0, 0, 0), PlayerPlaySound(pclicked[playerid], 1057, 0, 0, 0);//éxito
- SendClientMessage(pclicked[playerid], 0xA64FB0FF, "Un administrador te re-animó y se te devolvieron las armas");
- SendClientMessage(playerid, 0x6CDF20FF, "Jugador reanimado");
- }
- }
- }
- if(dialogid == DIALOG_CLICK_CONGELAR)
- {
- switch(response)
- {
- case 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");
- PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- }
- case 1:
- {
- if(congelado[pclicked[playerid]] == false) TogglePlayerControllable(pclicked[playerid], 0), congelado[pclicked[playerid]] = true;
- else if(congelado[pclicked[playerid]] == true) TogglePlayerControllable(pclicked[playerid], 1), congelado[pclicked[playerid]] = false;
- }
- }
- }
- if(dialogid == DIALOG_CLICK_IR)
- {
- switch(response)
- {
- case 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");
- PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- }
- case 1:
- {
- new Float:p[3], interior = GetPlayerInterior(pclicked[playerid]), vw = GetPlayerVirtualWorld(pclicked[playerid]);
- GetPlayerPos(pclicked[playerid], p[0],p[1],p[2]);
- SetPlayerPos(playerid, p[0],p[1],p[2]);
- SetPlayerVirtualWorld(playerid, vw);
- SetPlayerInterior(playerid, interior);
- }
- }
- }
- if(dialogid == DIALOG_CLICK_TRAER)
- {
- switch(response)
- {
- case 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");
- PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- }
- case 1:
- {
- new Float:p[3], interior = GetPlayerInterior(playerid), vw = GetPlayerVirtualWorld(playerid);
- GetPlayerPos(playerid, p[0],p[1],p[2]);
- SetPlayerPos(pclicked[playerid], p[0],p[1],p[2]);
- SetPlayerVirtualWorld(pclicked[playerid], vw);
- SetPlayerInterior(pclicked[playerid], interior);
- }
- }
- }
- if(dialogid == DIALOG_CLICK_VIDA)
- {
- switch(response)
- {
- case 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");
- PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- }
- case 1:
- {
- SetPlayerHealth(pclicked[playerid], 100.0);
- }
- }
- }
- if(dialogid == DIALOG_CLICK_CHALECO)
- {
- switch(response)
- {
- case 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");
- PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- }
- case 1:
- {
- SetPlayerArmour(pclicked[playerid], 100.0);
- }
- }
- }
- if(dialogid == DIALOG_CLICK_KICKEAR)
- {
- switch(response)
- {
- case 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");
- PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- }
- case 1:
- {
- KickEx(pclicked[playerid]);
- }
- }
- }
- if(dialogid == DIALOG_CLICK_BANEAR)
- {
- switch(response)
- {
- case 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");
- PlayerPlaySound(playerid, 1084, 0,0,0);//atras
- }
- case 1:
- {
- Ban(pclicked[playerid]);
- }
- }
- }
- return 0;
- }
- // -----------------------------------------------------------------------------
- PlayerName(playerid)
- {
- new sz_playerName[MAX_PLAYER_NAME], i_pos;
- GetPlayerName(playerid, sz_playerName, MAX_PLAYER_NAME);
- while ((i_pos = strfind(sz_playerName, "_", false, i_pos)) != -1) sz_playerName[i_pos] = ' ';
- return sz_playerName;
- }
- // -----------------------------------------------------------------------------
- stock IsNumeric(const string[])
- {
- for (new i = 0, j = strlen(string); i < j; i++)
- {
- if (string[i] > '9' || string[i] < '0') return 0;
- }
- return 1;
- }
- // -----------------------------------------------------------------------------
- stock KickEx(playerid)
- {
- SetTimerEx("KickPublic", 500, 0, "d", playerid);
- return 1;
- }
- forward KickPublic(playerid);
- public KickPublic(playerid) Kick(playerid);
Advertisement
Add Comment
Please, Sign In to add comment