Deathrun Shop

Архів · 2013 Файл є alibimag Плагіни 2 170

Архівний матеріал ya-cs.ru (2013). Російською. Плагіни й збірки можуть не працювати з ReHLDS та AMXX 1.10.

Deathrun Shop v1.0.6

– By @.SizNeR
(Last Update: 21-09-13)


Описание: Новый плагин Deathrun Shop для вашего CS 1.6 сервера, когда Спец убивает Террориста ему дается 3 очка, но совсем другая ситуация когда противника убито в голову тогда же вы получите 5 очков, все это легко настраиваться кварами в cs плагине.

Чат команды:

say /points "player" - покажет сколько очков у игрока.
say /gamble "amount" - возможность выиграть случайно дополнительные очки.
say /send "player" "amount" - перевести игроку свои очки
say /shop - открыть shop menu.
say /drshop - открыть shop menu.

Консольные команды:
amx_give_points “player” “amount” – передать очки игроку Admin with ADMIN_IMMUNITY flag (editable by the “ADMIN_ACCESS” define)
amx_take_points “player” “amount” – Отобрать очки у игрока Admin with ADMIN_IMMUNITY flag (editable by the “ADMIN_ACCESS” define)

Cvars:

dr_shop_enabled (Default: 1) - Enable(1)/Disable(0) the shop.
dr_kill (Default: 3) - количество очков за убийство
dr_hs_kill (Default: 5) - количество очков за убийство в голову
dr_health_cost (Default: 25) - цена жизней
dr_armor_cost (Default: 10) - цена брони

.: Menus :.
Health Menu: Open the shop health menu.

25 HP: Buy 25 health points. Default Cost: 25 points
50 HP: Buy 50 health points. Default Cost: 50 points
75 HP: Buy 75 health points. Default Cost: 75 points
100 HP: Buy 100 health points. Default Cost: 100 points
125 HP: Buy 125 health points. Default Cost: 125 points

Armor Menu: Open the shop armor menu.

25 AP: Buy 25 armor points. Default Cost: 10 points
50 AP: Buy 50 armor points. Default Cost: 20 points
75 AP: Buy 75 armor points. Default Cost: 30 points
100 AP: Buy 100 armor points. Default Cost: 40 points
125 AP: Buy 125 armor points. Default Cost: 50 points

Weapons Menu: Open the shop weapons menu.

MP5 Navy: Buy a mp5 navy. Default Cost: 100 points
Ak47: Buy an ak47. Default Cost: 130 points
M4a1: Buy a m4a1. Default Cost: 130 points
Scout: Buy a scout. Default Cost: 110 points
Awp: Buy a awp. Default Cost: 200 points

Powers Menu: Open the shop powers menu.

Gravity: Buy a gravity. Default Time: 15 seconds. Default Cost: 60 points
Godmode: Buy a godmode. Default Time: 7 seconds. Default Cost: 70 points
Auto bunnyhop: Buy a auto bunnyhop. Time: One round. Default Cost: 50 points
Speed: Buy a speed. Time: 15 seconds. Default Cost: 60 points

Natives
dr_get_user_points(index): Get the user points
dr_set_user_points(index, amount): Set the user points
dr_save_user_points(index): Save the user points

API Example

Спойлер

#include
#include

public plugin_init()
{
register_plugin( “API Example”, “-“, “@.SizNeR” );

register_clcmd( “say”, “CmdHandleSay” );
}

public CmdHandleSay( client )
{
if ( !is_user_connected( client ) )
return 1;

new szMessage[ 30 ];

read_argv( 1, szMessage, charsmax( szMessage ) );

if ( equali( szMessage, “/givepoints” ) )
{
dr_give_user_points( client, 3000 );

return 1;
}

else if ( equali( szMessage, “/takepoints” ) )
{
dr_take_user_points( client, 3000 );

return 1;
}

else if ( equali( szMessage, “/savepoints” ) )
{
dr_save_user_points( client );

return 1;
}

return 0;
}

stock dr_take_user_points( index, amount )
{
dr_set_user_points( index, dr_get_user_points( index ) – amount );
}

stock dr_give_user_points( index, amount )
{
dr_set_user_points( index, dr_get_user_points( index ) + amount );
}

Change Log

Спойлер

v1.0.6 (21-09-13)
– Fixed bugs.
v1.0.6 (20-09-13)
– Edit the DeathMsg Event public.
– Updated multi-language file.
+ Added ES translation, thanks to niqo.
v1.0.6 (19-09-13)
– Updated multi-language file.
+ Added French translation, thanks to ANTICHRISTUS.
v1.0.6 (18-09-13)
– Changed the Cash System to Shop System.
– Added DeathrunShop include. (View in attachments)
– Prices in shop changed.
– New multi-language file.
v1.0.5 (19-08-13)
– Updated multi-language file.
+ Serbian translation added. Thanks to slypire.
v1.0.5 (11-08-13)
– Updated multi-language file.
+ Estonian translation added. Thanks to liivar07.
v1.0.5 (03-08-13)
– Added speed to powers menu.
v1.0.4 (30-07-13)
– Updated multi-language file.
+ Germans translation added. Thanks to UchihaSkills.
+ Fixed english translations little errors, and added polish translation. Thanks to naven.
v1.0.4 (27-07-13)
– Updated multi-language file.
+ Romanian translation added. Thanks to K1d0x.
v1.0.4 (08-07-13)
– Added a cvar to enable/disable the shop.
– Added a auto bunnyhop power to the powers menu.
– The multi-language file has updated.
v1.0.3 (02-07-13)
– Added dr_save_user_cash native.
– Added API Example.
v1.0.2 (06-27-13)
– Added multi language support
– Removed noclip from shop
– Removed fakemeta include
v1.0.1 (27-06-13)
– Changed fakemeta_util include to fakemeta include
– Added fun include
– Changed fm_ functions to fun functions
v1.0 (26-06-13)
– First public version

Мітки:

Коментарі 8

Ваш коментар

Коментар з’явиться після перевірки. E-mail не публікується.