Като се научиш да пишеш плъгини и имаш достатъчно познания да свържеш два такива.Добре но как да ги свържа?
OciXCrom's Custom Shop + API
-
OciXCrom
Извън линия - Администратор
- Мнения: 7206
- Регистриран на: 06 Окт 2016, 19:20
- Местоположение: /resetscore
- Се отблагодари: 117 пъти
- Получена благодарност: 1295 пъти
- Обратна връзка:
OciXCrom's Custom Shop + API
Защо да пуска отделна тема ако проблемът е свързан с плъгина?
-
Shoko
Извън линия - Потребител
- Мнения: 28
- Регистриран на: 07 Сеп 2020, 15:56
- Местоположение: Meowgik
- Се отблагодари: 5 пъти
- Обратна връзка:
-
OciXCrom
Извън линия - Администратор
- Мнения: 7206
- Регистриран на: 06 Окт 2016, 19:20
- Местоположение: /resetscore
- Се отблагодари: 117 пъти
- Получена благодарност: 1295 пъти
- Обратна връзка:
OciXCrom's Custom Shop + API
Все едно питаш как се играе футбол.
Просто пусни си заявка като нямаш нужните умения да го направиш сам.
Просто пусни си заявка като нямаш нужните умения да го направиш сам.
OciXCrom's Custom Shop + API
Is there a happy hour addon available somewhere where you get x amount of points for the cshop (if points are set to buy items)?
-
OciXCrom
Извън линия - Администратор
- Мнения: 7206
- Регистриран на: 06 Окт 2016, 19:20
- Местоположение: /resetscore
- Се отблагодари: 117 пъти
- Получена благодарност: 1295 пъти
- Обратна връзка:
OciXCrom's Custom Shop + API
fixed time (maybe 8pm - 9 pm) amount of normal points x multiplier (2 points x 3 = 6) maybe.
-
GGzBoy
Извън линия - Foreigner
- Мнения: 63
- Регистриран на: 28 Мар 2020, 16:42
- Се отблагодари: 16 пъти
- Получена благодарност: 1 път
OciXCrom's Custom Shop + API
Could you put this adrenaline-compatible store on capture the flag?
I tried to change it where you said but I get errors so I will post the .inc of the ctf
this addition would be very good since the mod is dominating
I tried to change it where you said but I get errors so I will post the .inc of the ctf
this addition would be very good since the mod is dominating
Код за потвърждение: Избери целия код
#if defined _jctf_included
#endinput
#endif
#define _jctf_included
#define _jctf_version 1.26
#pragma library jctf
/*
These are parsed in the iEvent var of the jctf_flag() forward.
*/
enum
{
/* Event | Forward variables used by event | Description of event */
FLAG_STOLEN = 0, /* iPlayer, iFlagTeam | iPlayer got iFlagTeam's flag from their base */
FLAG_PICKED, /* iPlayer, iFlagTeam | iPlayer picked iFlagTeam's flag from the ground */
FLAG_DROPPED, /* iPlayer, iFlagTeam | iPlayer dropped the iFlagTeam's flag by dying, disconnecting or manually */
FLAG_MANUALDROP, /* iPlayer, iFlagTeam | iPlayer dropped the iFlagTeam's flag manually (using /dropflag) */
FLAG_RETURNED, /* iPlayer, iFlagTeam, bAssist | iPlayer (bAssist ? "assisted on returning" : "returned") the iFlagTeam's flag */
FLAG_CAPTURED, /* iPlayer, iFlagTeam, bAssist | iPlayer (bAssist ? "assisted on capturing" : "captured") the iFlagTeam's flag */
FLAG_AUTORETURN, /* iFlagTeam | iFlagTeam's flag was automatically returned */
FLAG_ADMINRETURN /* iPlayer, iFlagTeam | iFlagTeam's flag was returned by admin iPlayer using the command */
};
/**
* This forward triggers when a team's flag changes status.
* This forward also triggers, for example, when a flag is captured, for the
* capturing player and also for the assisting ones, each having bAssist true/false acordingly.
*
* @param iEvent The event triggered (list above)
* @param iPlayer Index of player
* @param iFlagTeam The flag's team
* @param bool:bAssist Is true if the iPlayer is an assisting player for iEvent, false if not.
* @noreturn
*/
forward jctf_flag(iEvent, iPlayer, iFlagTeam, bool:bAssist);
/**
* This native returns the player's team
* NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
*
* @param id Index of player
* @return Index of team
*/
native jctf_get_team(id);
/**
* This native returns if the player is carrying the flag
* NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
*
* @param id Index of player
* @return 1 if player is carying the flag, 0 otherwise
*/
native jctf_get_flagcarrier(id);
/**
* This native returns the player's adrenaline amount.
* NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
*
* @param id Index of player
* @return Amount of adrenaline player has
*/
native jctf_get_adrenaline(id);
/**
* This native adds or substracts adrenaline from a player.
* NOTE: This can be used to set adrenaline too, you can empty it using -100 or fill it using 100 as iAdd.
* NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong.
*
* @param id Index of player
* @param iAdd How much adrenaline to add, can be negative to substract
* @param szReason[] (optional) if specified, it will print a center and console message to the player about amount received/lost
* @noreturn
*/
native jctf_add_adrenaline(id, iAdd, szReason[] = "");
-
Fatall
Извън линия - Потребител
- Мнения: 295
- Регистриран на: 30 Авг 2018, 09:35
- Местоположение: София
- Се отблагодари: 26 пъти
- Получена благодарност: 17 пъти
- Обратна връзка:
OciXCrom's Custom Shop + API
Кроме как мога да давам точки на всички.
Пример: cshop_points "@all" "200"
Пример: cshop_points "@all" "200"
Код за потвърждение: Избери целия код
<?php
$error_msg = "Database error in [page].php / ";
$error_msg .= mysqli_error ( $link )." / ";
$error_msg .= $query;
UpdateLog ( $error_msg , DB_ERROR_LOG_FILE );
?>
-
OciXCrom
Извън линия - Администратор
- Мнения: 7206
- Регистриран на: 06 Окт 2016, 19:20
- Местоположение: /resetscore
- Се отблагодари: 117 пъти
- Получена благодарност: 1295 пъти
- Обратна връзка:
OciXCrom's Custom Shop + API
viewtopic.php?f=21&t=1028
You want to use the adrenaline to buy items from the shop (instead of points/cash) or you want to be able to buy adrenaline from the shop?GGzBoy написа: ↑10 Дек 2020, 15:37 Could you put this adrenaline-compatible store on capture the flag?
I tried to change it where you said but I get errors so I will post the .inc of the ctf
this addition would be very good since the mod is dominating
Код за потвърждение: Избери целия код
#if defined _jctf_included #endinput #endif #define _jctf_included #define _jctf_version 1.26 #pragma library jctf /* These are parsed in the iEvent var of the jctf_flag() forward. */ enum { /* Event | Forward variables used by event | Description of event */ FLAG_STOLEN = 0, /* iPlayer, iFlagTeam | iPlayer got iFlagTeam's flag from their base */ FLAG_PICKED, /* iPlayer, iFlagTeam | iPlayer picked iFlagTeam's flag from the ground */ FLAG_DROPPED, /* iPlayer, iFlagTeam | iPlayer dropped the iFlagTeam's flag by dying, disconnecting or manually */ FLAG_MANUALDROP, /* iPlayer, iFlagTeam | iPlayer dropped the iFlagTeam's flag manually (using /dropflag) */ FLAG_RETURNED, /* iPlayer, iFlagTeam, bAssist | iPlayer (bAssist ? "assisted on returning" : "returned") the iFlagTeam's flag */ FLAG_CAPTURED, /* iPlayer, iFlagTeam, bAssist | iPlayer (bAssist ? "assisted on capturing" : "captured") the iFlagTeam's flag */ FLAG_AUTORETURN, /* iFlagTeam | iFlagTeam's flag was automatically returned */ FLAG_ADMINRETURN /* iPlayer, iFlagTeam | iFlagTeam's flag was returned by admin iPlayer using the command */ }; /** * This forward triggers when a team's flag changes status. * This forward also triggers, for example, when a flag is captured, for the * capturing player and also for the assisting ones, each having bAssist true/false acordingly. * * @param iEvent The event triggered (list above) * @param iPlayer Index of player * @param iFlagTeam The flag's team * @param bool:bAssist Is true if the iPlayer is an assisting player for iEvent, false if not. * @noreturn */ forward jctf_flag(iEvent, iPlayer, iFlagTeam, bool:bAssist); /** * This native returns the player's team * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong. * * @param id Index of player * @return Index of team */ native jctf_get_team(id); /** * This native returns if the player is carrying the flag * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong. * * @param id Index of player * @return 1 if player is carying the flag, 0 otherwise */ native jctf_get_flagcarrier(id); /** * This native returns the player's adrenaline amount. * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong. * * @param id Index of player * @return Amount of adrenaline player has */ native jctf_get_adrenaline(id); /** * This native adds or substracts adrenaline from a player. * NOTE: This can be used to set adrenaline too, you can empty it using -100 or fill it using 100 as iAdd. * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong. * * @param id Index of player * @param iAdd How much adrenaline to add, can be negative to substract * @param szReason[] (optional) if specified, it will print a center and console message to the player about amount received/lost * @noreturn */ native jctf_add_adrenaline(id, iAdd, szReason[] = "");
-
GGzBoy
Извън линия - Foreigner
- Мнения: 63
- Регистриран на: 28 Мар 2020, 16:42
- Се отблагодари: 16 пъти
- Получена благодарност: 1 път
OciXCrom's Custom Shop + API
use adrenaline to buy item in storeOciXCrom написа: ↑19 Дек 2020, 14:32viewtopic.php?f=21&t=1028
You want to use the adrenaline to buy items from the shop (instead of points/cash) or you want to be able to buy adrenaline from the shop?GGzBoy написа: ↑10 Дек 2020, 15:37 Could you put this adrenaline-compatible store on capture the flag?
I tried to change it where you said but I get errors so I will post the .inc of the ctf
this addition would be very good since the mod is dominating
Код за потвърждение: Избери целия код
#if defined _jctf_included #endinput #endif #define _jctf_included #define _jctf_version 1.26 #pragma library jctf /* These are parsed in the iEvent var of the jctf_flag() forward. */ enum { /* Event | Forward variables used by event | Description of event */ FLAG_STOLEN = 0, /* iPlayer, iFlagTeam | iPlayer got iFlagTeam's flag from their base */ FLAG_PICKED, /* iPlayer, iFlagTeam | iPlayer picked iFlagTeam's flag from the ground */ FLAG_DROPPED, /* iPlayer, iFlagTeam | iPlayer dropped the iFlagTeam's flag by dying, disconnecting or manually */ FLAG_MANUALDROP, /* iPlayer, iFlagTeam | iPlayer dropped the iFlagTeam's flag manually (using /dropflag) */ FLAG_RETURNED, /* iPlayer, iFlagTeam, bAssist | iPlayer (bAssist ? "assisted on returning" : "returned") the iFlagTeam's flag */ FLAG_CAPTURED, /* iPlayer, iFlagTeam, bAssist | iPlayer (bAssist ? "assisted on capturing" : "captured") the iFlagTeam's flag */ FLAG_AUTORETURN, /* iFlagTeam | iFlagTeam's flag was automatically returned */ FLAG_ADMINRETURN /* iPlayer, iFlagTeam | iFlagTeam's flag was returned by admin iPlayer using the command */ }; /** * This forward triggers when a team's flag changes status. * This forward also triggers, for example, when a flag is captured, for the * capturing player and also for the assisting ones, each having bAssist true/false acordingly. * * @param iEvent The event triggered (list above) * @param iPlayer Index of player * @param iFlagTeam The flag's team * @param bool:bAssist Is true if the iPlayer is an assisting player for iEvent, false if not. * @noreturn */ forward jctf_flag(iEvent, iPlayer, iFlagTeam, bool:bAssist); /** * This native returns the player's team * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong. * * @param id Index of player * @return Index of team */ native jctf_get_team(id); /** * This native returns if the player is carrying the flag * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong. * * @param id Index of player * @return 1 if player is carying the flag, 0 otherwise */ native jctf_get_flagcarrier(id); /** * This native returns the player's adrenaline amount. * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong. * * @param id Index of player * @return Amount of adrenaline player has */ native jctf_get_adrenaline(id); /** * This native adds or substracts adrenaline from a player. * NOTE: This can be used to set adrenaline too, you can empty it using -100 or fill it using 100 as iAdd. * NOTE: It doesn't check if player is actually a player, you could get plugin errors if you use it wrong. * * @param id Index of player * @param iAdd How much adrenaline to add, can be negative to substract * @param szReason[] (optional) if specified, it will print a center and console message to the player about amount received/lost * @noreturn */ native jctf_add_adrenaline(id, iAdd, szReason[] = "");
-
- Подобни теми
- Отговори
- Преглеждания
- Последно мнение
-
- 1 Отговори
- 80 Преглеждания
-
Последно мнение от Hurricane
-
- 0 Отговори
- 1106 Преглеждания
-
Последно мнение от WWUghRght
-
- 1 Отговори
- 1775 Преглеждания
-
Последно мнение от mi0
-
- 0 Отговори
- 950 Преглеждания
-
Последно мнение от RedFoxxx
-
- 9 Отговори
- 719 Преглеждания
-
Последно мнение от HeatoN
-
- 1 Отговори
- 1515 Преглеждания
-
Последно мнение от iv69
-
- 8 Отговори
- 2898 Преглеждания
-
Последно мнение от Infamous2018
Кой е на линия
Потребители разглеждащи този форум: 0 регистрирани и 11 госта