Иконка ресурса

ReAmx Super 1.8

Нет прав для скачивания
Сообщения
1,697
Реакции
1,510
Помог
25 раз(а)
Where ReAPI?
20 Июл 2019
А всё, увидел include <reapi>

Молодец, так держать!
 
Сообщения
278
Реакции
137
fl0wer,

Where Reapi?

Я не совсем уверен, что ты говоришь.
Я пытался изменить много команд, которые я знаю. Вы можете помочь мне, если это будет недостаточно.
 
Сообщения
1,697
Реакции
1,510
Помог
25 раз(а)
Delete this new const g_maxclipammo[] and new const weapons[33][]

Why CurWeapon event? There is RG_CBasePlayer_ResetMaxSpeed

Lots of ammo functions instead rg_set_user_bpammo

A lot of copy-paste
 
Сообщения
38
Реакции
29
Помог
4 раз(а)
PurposeLess, Getting rid of cstrike module. use rg_add_account to set amount of money.
to get amount of money use get_member (m_iAccount).
cs_set_user_plant sort of not needed.

hamsandwich / fakemeta not used here at all.

The event of taking damage can be replaced by - RG_CBasePlayer_TakeDamage.

About the speed event already written fl0wer
 
Сообщения
278
Реакции
137
fl0wer,
I did a lot of things you explained but there is a problem about 'unammo' actually rg_set_user_bpammo.
I don't understand how can I use it to make his/her ammo infinity?
 
Сообщения
1,697
Реакции
1,510
Помог
25 раз(а)
Сообщения
278
Реакции
137
Is it good?
I still couldn't use rg_set_user_bpammo.

Код:
public event_curweapon(id)
{
    if(g_unammo[id])
    {
        static weapon;
        weapon = read_data(2);

        static clip;
        clip = rg_get_weapon_info(weapon, WI_GUN_CLIP_SIZE);

        if(clip < 0)
        {
            return;
        }

        static activeitem;
        activeitem = get_member(id, m_pActiveItem);
        set_member(activeitem, m_Weapon_iClip, clip + 1);
    }
}
 
Сообщения
1,697
Реакции
1,510
Помог
25 раз(а)
PurposeLess, i said about
rg_give_item(id, "ammo_9mm");
rg_give_item(id, "ammo_9mm");
rg_give_item(id, "ammo_9mm");
rg_give_item(id, "ammo_9mm");
rg_give_item(id, "ammo_9mm");
rg_give_item(id, "ammo_9mm");
rg_give_item(id, "ammo_9mm");
rg_give_item(id, "ammo_9mm");

You can get the weapon id of the given weapon for rg_set_user_bpammo
 
Сообщения
278
Реакции
137
fl0wer,
oh, i got it. I made it like this because it shows that giving a bullet.
I will use "rg_set_user_bpammo" in the next version.
 
Сообщения
500
Реакции
110
Помог
16 раз(а)
How about creating a menu with a selection of players
 
Сообщения
500
Реакции
110
Помог
16 раз(а)
PurposeLess, i mean can u create menu with players names,when i can choice player and use command? like this
17878
 
Сообщения
1,697
Реакции
1,510
Помог
25 раз(а)
PurposeLess, you can use %n with player index instead of get_user_name.
 
Сообщения
1,697
Реакции
1,510
Помог
25 раз(а)
PurposeLess, "same text %n", iPlayer
14 Авг 2019
PurposeLess,
rg_give_item(id, "weapon_m3");
rg_set_user_bpammo(id, WEAPON_M3, 32);
Can be replaced to
rg_set_user_bpammo(id, WEAPON_M3, rg_get_iteminfo(rg_give_item(id, "weapon_m3"), ItemInfo_iMaxAmmo1);
But I'd check for null of the created item.
14 Авг 2019
Код:
            rg_set_user_bpammo(id, WEAPON_GLOCK18, 120);
            rg_set_user_bpammo(id, WEAPON_USP, 100);
            rg_set_user_bpammo(id, WEAPON_P228, 52);
            rg_set_user_bpammo(id, WEAPON_DEAGLE, 35);
            rg_set_user_bpammo(id, WEAPON_FIVESEVEN, 100);
            rg_set_user_bpammo(id, WEAPON_ELITE, 120);
            rg_set_user_bpammo(id, WEAPON_M3, 32);
            rg_set_user_bpammo(id, WEAPON_XM1014, 32);
            rg_set_user_bpammo(id, WEAPON_TMP, 120);
            rg_set_user_bpammo(id, WEAPON_MAC10, 100);
            rg_set_user_bpammo(id, WEAPON_MP5N, 120);
            rg_set_user_bpammo(id, WEAPON_P90, 120);
            rg_set_user_bpammo(id, WEAPON_UMP45, 100);
            rg_set_user_bpammo(id, WEAPON_FAMAS, 90);
            rg_set_user_bpammo(id, WEAPON_GALIL, 90);
            rg_set_user_bpammo(id, WEAPON_AK47, 90);
            rg_set_user_bpammo(id, WEAPON_M4A1, 90);
            rg_set_user_bpammo(id, WEAPON_SG552, 90);
            rg_set_user_bpammo(id, WEAPON_AUG, 90);
            rg_set_user_bpammo(id, WEAPON_SCOUT, 90);
            rg_set_user_bpammo(id, WEAPON_SG550, 90);
            rg_set_user_bpammo(id, WEAPON_AWP, 30);
            rg_set_user_bpammo(id, WEAPON_G3SG1, 90);
            rg_set_user_bpammo(id, WEAPON_M249, 90);
Maybe loop with my example above?
14 Авг 2019
Too many
client_print_color(0, 0, "%L", LANG_PLAYER, "REAMX_SUPER_TAKEMONEY_PLAYER_P", name, money, name2);
console_print(id, "[AMX_TAKEMONEY] %L", id, "REAMX_SUPER_TAKEMONEY_PLAYER_C", money, name2);
Maybe add a func with both of this funcs and call only one?
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу