Herkese merhaba bi eklenti isteğim olucak ct'lerdeki botlar için otomatik rastgele silah ve tabanca verebilen bi eklenti arıyorum t lerde hiçbir işlem yapılmayacak yardımcı olabilcek varsa şimdiden teşekürler.
Dc adresimiz : Tıhğla
)

(13-03-2023, 01:49)PRO-F?TEROL Adlı Kullanıcıdan Alıntı: Herkese merhaba bi eklenti isteğim olucak ct'lerdeki botlar için otomatik rastgele silah ve tabanca verebilen bi eklenti arıyorum t lerde hiçbir işlem yapılmayacak yardımcı olabilcek varsa şimdiden teşekürler.
#include <amxmodx>
#include <reapi>
new const szWeapon[][][] = {
{ "weapon_ak47", 1 }, { "weapon_m4a1", 1 }, { "weapon_awp", 1 },
{ "weapon_deagle", 2 }, { "weapon_usp", 2 }, { "weapon_glock18", 2 }
};
public plugin_init() {
register_plugin("BotWeaponGive", "1.0", "QuryWesT");
RegisterHookChain(RG_CSGameRules_RestartRound, "@sGetRandom", .post = false);
}
@sGetRandom(const IP_IDs) {
if(is_user_bot(IP_IDs) || get_member(IP_IDs,m_iTeam) == TEAM_CT) {
for(new i=0; i < sizeof(szWeapon);i++) {
if(szWeapon[i][1][0] == 1) {
new szRandom = random_num(0, charsmax(szWeapon));
rg_give_item(IP_IDs, szWeapon[szRandom]);
set_task(3.0, "@sSetRandom", IP_IDs);
}
}
}
}
@sSetRandom(const IP_IDs) {
if(is_user_bot(IP_IDs) || get_member(IP_IDs,m_iTeam) == TEAM_CT) {
for(new i=0; i < sizeof(szWeapon);i++) {
if(szWeapon[i][1][0] == 2) {
new szRandom = random_num(0, charsmax(szWeapon));
rg_give_item(IP_IDs, szWeapon[szRandom]);
set_task(3.0, "sSetRandom", IP_IDs);
}
}
}
}
(13-03-2023, 04:14)QuryWesT Adlı Kullanıcıdan Alıntı:Eklenti : Botsilah.sma(13-03-2023, 01:49)PRO-F?TEROL Adlı Kullanıcıdan Alıntı: Herkese merhaba bi eklenti isteğim olucak ct'lerdeki botlar için otomatik rastgele silah ve tabanca verebilen bi eklenti arıyorum t lerde hiçbir işlem yapılmayacak yardımcı olabilcek varsa şimdiden teşekürler.
Denermisiniz:PHP Kod:#include <amxmodx>
#include <reapi>
new const szWeapon[][][] = {
{ "weapon_ak47", 1 }, { "weapon_m4a1", 1 }, { "weapon_awp", 1 },
{ "weapon_deagle", 2 }, { "weapon_usp", 2 }, { "weapon_glock18", 2 }
};
public plugin_init() {
register_plugin("BotWeaponGive", "1.0", "QuryWesT");
RegisterHookChain(RG_CSGameRules_RestartRound, "@sGetRandom", .post = false);
}
@sGetRandom(const IP_IDs) {
if(is_user_bot(IP_IDs) || get_member(IP_IDs,m_iTeam) == TEAM_CT) {
for(new i=0; i < sizeof(szWeapon);i++) {
if(szWeapon[i][1][0] == 1) {
new szRandom = random_num(0, charsmax(szWeapon));
rg_give_item(IP_IDs, szWeapon[szRandom]);
set_task(3.0, "@sSetRandom", IP_IDs);
}
}
}
}
@sSetRandom(const IP_IDs) {
if(is_user_bot(IP_IDs) || get_member(IP_IDs,m_iTeam) == TEAM_CT) {
for(new i=0; i < sizeof(szWeapon);i++) {
if(szWeapon[i][1][0] == 2) {
new szRandom = random_num(0, charsmax(szWeapon));
rg_give_item(IP_IDs, szWeapon[szRandom]);
set_task(3.0, "sSetRandom", IP_IDs);
}
}
}
}
erleme Hatasi,Eklenti kodlari Bozuk.!