|
CS1.BG | DUST2 NOSHTA GARMI [RANKED PLAY] #1 45.144.155.113:27015 |
de_dust2 Играчи: 30/32 |
|
Cs-PlovdiV.com - Aim Attack | 93.123.16.4:27022 | aim_aztec | Играчи: 0/16 |
Give Flags VIP when under Top3
-
Infamous2018
Извън линия - Foreigner
- Мнения: 522
- Регистриран на: 08 Апр 2018, 16:56
- Се отблагодари: 14 пъти
- Получена благодарност: 21 пъти
Give Flags VIP when under Top3
Hello I need a plugin that gives VIP. It looks like this: The Player is under Top3 at /top15 Place. In my Server some Users are registered with Flag Y in ADMIN_ADMIN. I dont know how i can it explain. The Plugin should check when one of both are ADMIN_ADMIN Players and ADMIN_USER Players and they are at top3 that they get Flags "BIRT" (ADMIN_LEVEL_H, ADMIN_LEVEL_F, ADMIN_CHAT, ADMIN_RESERVATION)
I am using 1..8.3 Compiler. I hope really anyone can help me.
ADMIN_ADMIN (Flag Y) and ADMIN_USER (Flag Z)
I am using 1..8.3 Compiler. I hope really anyone can help me.
ADMIN_ADMIN (Flag Y) and ADMIN_USER (Flag Z)
-
iv69
Извън линия - Потребител
- Мнения: 744
- Регистриран на: 17 Мар 2018, 15:34
- Се отблагодари: 214 пъти
- Получена благодарност: 39 пъти
Give Flags VIP when under Top3
Maybe this:
https://amxx-bg.info/forum/viewtopic.php?f=33&t=5259
?
Test:
data/lang/topawards.txt:
Change this:
new const g_eFlags[][Flags] =
{
{ 100, "r" },
{ 30, "s" },
{ 10, "t" }
}
...it just gives flags - no VIP
p.s. I do not know what it means: are registered with Flag Y...?
https://amxx-bg.info/forum/viewtopic.php?f=33&t=5259
?
Test:
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <cromchat>
#include <csstats>
const IGNORE_FLAG = ADMIN_LEVEL_A
const Float:DELAY_ON_CONNECT = 0.3
const Float:DELAY_ON_MESSAGE = 5.0
enum _:Flags
{
Rank,
Flag[2]
}
new const g_eFlags[][Flags] =
{
{ 100, "r" },
{ 30, "s" },
{ 10, "t" }
}
new g_iFlag[33]
public plugin_init()
{
register_plugin("Top Awards", "1.0", "OciXCrom")
register_dictionary("topawards.txt")
CC_SetPrefix("&x04[Top Awards]")
}
public client_putinserver(id)
{
g_iFlag[id] = 0
set_task(DELAY_ON_CONNECT, "check_flags", id)
}
public check_flags(id)
{
if(!is_user_connected(id) || get_user_flags(id) & IGNORE_FLAG)
return
new iStats[8], iHits[8]
get_user_stats(id, iStats, iHits)
new iRank = iStats[7]
for(new i; i < sizeof(g_eFlags); i++)
{
if(iRank <= g_eFlags[i][Rank])
{
g_iFlag[id] = i
set_user_flags(id, read_flags(g_eFlags[i][Flag]))
set_task(DELAY_ON_MESSAGE, "send_message", id)
break
}
}
}
public send_message(id)
{
if(!is_user_connected(id))
return
CC_SendMessage(id, "%L", id, "TOPAWARD_GET", g_eFlags[g_iFlag[id]][Flag], g_eFlags[g_iFlag[id]][Rank])
}
Код за потвърждение: Избери целия код
[en]
TOPAWARD_GET = You received the flag &x03%s &x01for having reached &x04rank #%i&x01.
new const g_eFlags[][Flags] =
{
{ 100, "r" },
{ 30, "s" },
{ 10, "t" }
}
...it just gives flags - no VIP
p.s. I do not know what it means: are registered with Flag Y...?
Последно промяна от iv69 на 08 Май 2020, 11:40, променено общо 1 път.
-
Infamous2018
Извън линия - Foreigner
- Мнения: 522
- Регистриран на: 08 Апр 2018, 16:56
- Се отблагодари: 14 пъти
- Получена благодарност: 21 пъти
Give Flags VIP when under Top3
Код за потвърждение: Избери целия код
Change this:
new const g_eFlags[][Flags] =
{
{ 100, "r" },
{ 30, "s" },
{ 10, "t" }
}
it is work when i change it to :
Код за потвърждение: Избери целия код
new const g_eFlags[][Flags] =
{
{ 3, "t" },
{ 3, "r" },
{ 3, "b" }
}
-
iv69
Извън линия - Потребител
- Мнения: 744
- Регистриран на: 17 Мар 2018, 15:34
- Се отблагодари: 214 пъти
- Получена благодарност: 39 пъти
Give Flags VIP when under Top3
No. If you want to add, use this is:
{
{ 3, "brt" },
{ 3, "br" },
{ 3, "b" }
}
But it doesn't make sense ...
the number in front - is a place in the top. The plugin gives more options...
in your case, maybe this will help you:
{
{ 3, "z" },
{ 15, "b" }
}
Test?
{
{ 3, "brt" },
{ 3, "br" },
{ 3, "b" }
}
But it doesn't make sense ...
the number in front - is a place in the top. The plugin gives more options...
in your case, maybe this will help you:
{
{ 3, "z" },
{ 15, "b" }
}
Test?
-
Infamous2018
Извън линия - Foreigner
- Мнения: 522
- Регистриран на: 08 Апр 2018, 16:56
- Се отблагодари: 14 пъти
- Получена благодарност: 21 пъти
Give Flags VIP when under Top3
its confusing me.
{
{ 3, "z" },
{ 15, "b" }
}
why flag B ? ADMIN_RESERVATION - the only thing what i need is that they get flags to self time under top 3 "BIRT or BTR .
And why "z" i am really confused now. the problem are two things:
Flag Y = registred Users in my servers, many users are registered with this flag only (Y)
Flag Z = some users in top list could be there too without registered.
SO this is my problem.- the plugin should catch both and remove flag Y OR Z and change to BTR. SO how should i configurate it correctly?
. I mean ADMIN LEVEL H = FLAG T so i need to use FLAG T and FLAG R for showing /vips.
{
{ 3, "z" },
{ 15, "b" }
}
why flag B ? ADMIN_RESERVATION - the only thing what i need is that they get flags to self time under top 3 "BIRT or BTR .
And why "z" i am really confused now. the problem are two things:
Flag Y = registred Users in my servers, many users are registered with this flag only (Y)
Flag Z = some users in top list could be there too without registered.
SO this is my problem.- the plugin should catch both and remove flag Y OR Z and change to BTR. SO how should i configurate it correctly?
. I mean ADMIN LEVEL H = FLAG T so i need to use FLAG T and FLAG R for showing /vips.
-
iv69
Извън линия - Потребител
- Мнения: 744
- Регистриран на: 17 Мар 2018, 15:34
- Се отблагодари: 214 пъти
- Получена благодарност: 39 пъти
Give Flags VIP when under Top3
Sorry, my English is bad... ! I do not understand, I would like to help you... I use this plugin, and I'm happy with it.
Maybe another, with better English?! Sorry man.
Maybe another, with better English?! Sorry man.
-
Infamous2018
Извън линия - Foreigner
- Мнения: 522
- Регистриран на: 08 Апр 2018, 16:56
- Се отблагодари: 14 пъти
- Получена благодарност: 21 пъти
Give Flags VIP when under Top3
u are from uruguay? So i think u speaking spain.google translator ^^ U undertand it?
{
{3, "z"},
{15, "b"}
}
¿Por qué la bandera B? ADMIN_RESERVATION: lo único que necesito es que obtengan indicadores de tiempo libre debajo de los 3 "BIRT o BTR superiores.
Y por qué "z" estoy realmente confundido ahora. El problema son dos cosas:
Indicador Y = Usuarios registrados en mis servidores, muchos usuarios están registrados solo con este indicador (Y)
Marca Z = algunos usuarios en la lista superior también podrían estar allí sin registrarse.
Entonces, este es mi problema: el complemento debe capturar ambos y eliminar la bandera Y O Z y cambiar a BTR. Entonces, ¿cómo debo configurarlo correctamente?
. Me refiero a ADMIN LEVEL H = FLAG T, así que necesito usar FLAG T y FLAG R para mostrar / vips.
{
{3, "z"},
{15, "b"}
}
¿Por qué la bandera B? ADMIN_RESERVATION: lo único que necesito es que obtengan indicadores de tiempo libre debajo de los 3 "BIRT o BTR superiores.
Y por qué "z" estoy realmente confundido ahora. El problema son dos cosas:
Indicador Y = Usuarios registrados en mis servidores, muchos usuarios están registrados solo con este indicador (Y)
Marca Z = algunos usuarios en la lista superior también podrían estar allí sin registrarse.
Entonces, este es mi problema: el complemento debe capturar ambos y eliminar la bandera Y O Z y cambiar a BTR. Entonces, ¿cómo debo configurarlo correctamente?
. Me refiero a ADMIN LEVEL H = FLAG T, así que necesito usar FLAG T y FLAG R para mostrar / vips.
-
iv69
Извън линия - Потребител
- Мнения: 744
- Регистриран на: 17 Мар 2018, 15:34
- Се отблагодари: 214 пъти
- Получена благодарност: 39 пъти
Give Flags VIP when under Top3
Haha, I am Bulgarian, sorry for misleading you with the national flag! Sorry.
-
Infamous2018
Извън линия - Foreigner
- Мнения: 522
- Регистриран на: 08 Апр 2018, 16:56
- Се отблагодари: 14 пъти
- Получена благодарност: 21 пъти
Give Flags VIP when under Top3
{
{3, "z"},
{15, "b"}
}
¿Por qué la bandera B? ADMIN_RESERVATION: lo único que necesito es que obtengan indicadores de tiempo libre debajo de los 3 "BIRT o BTR началници.
Y por qué "z" estoy realmente confundido ahora. El problema son dos cosas:
Indicador Y = Usuarios registerdos en mis servidores, muchos usuarios están registerdos solo con este indiador (Y)
Marca Z = algunos usuarios en la list superior también podrían estar allí sin registrarse.
Entonces, este es mi problema: el complemento debe capturar ambos y eliminar la bandera Y O Z y cambiar a BTR. Entonces, ¿cómo debo конфигурация корекция?
, Ме рефинира ADMIN NEVEL H = FLAG T, както е необходимо да използвате FLAG T y FLAG R para mostrar / vips.
{3, "z"},
{15, "b"}
}
¿Por qué la bandera B? ADMIN_RESERVATION: lo único que necesito es que obtengan indicadores de tiempo libre debajo de los 3 "BIRT o BTR началници.
Y por qué "z" estoy realmente confundido ahora. El problema son dos cosas:
Indicador Y = Usuarios registerdos en mis servidores, muchos usuarios están registerdos solo con este indiador (Y)
Marca Z = algunos usuarios en la list superior también podrían estar allí sin registrarse.
Entonces, este es mi problema: el complemento debe capturar ambos y eliminar la bandera Y O Z y cambiar a BTR. Entonces, ¿cómo debo конфигурация корекция?
, Ме рефинира ADMIN NEVEL H = FLAG T, както е необходимо да използвате FLAG T y FLAG R para mostrar / vips.
-
OciXCrom
Извън линия - Администратор
- Мнения: 7206
- Регистриран на: 06 Окт 2016, 19:20
- Местоположение: /resetscore
- Се отблагодари: 117 пъти
- Получена благодарност: 1296 пъти
- Обратна връзка:
Give Flags VIP when under Top3
Код за потвърждение: Избери целия код
new const g_eFlags[][Flags] =
{
{ 3, "birt" }
}
-
- Подобни теми
- Отговори
- Преглеждания
- Последно мнение
-
- 3 Отговори
- 1984 Преглеждания
-
Последно мнение от atmax
-
- 10 Отговори
- 4151 Преглеждания
-
Последно мнение от OciXCrom
-
- 0 Отговори
- 267 Преглеждания
-
Последно мнение от nikolaydong
-
- 1 Отговори
- 1622 Преглеждания
-
Последно мнение от Infamous2018
-
- 0 Отговори
- 589 Преглеждания
-
Последно мнение от AfterLife
-
- 11 Отговори
- 3153 Преглеждания
-
Последно мнение от gadinkata
-
- 3 Отговори
- 1711 Преглеждания
-
Последно мнение от OciXCrom
Кой е на линия
Потребители разглеждащи този форум: 0 регистрирани и 5 госта