Поиск planting bomb defusing bomb sounds

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
26
Реакции
8
Неверный раздел форума
hello dev
i have this but dont work correctly

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <csx>
#include <fakemeta>
#include <hamsandwich>




new Float:Defusing[33], Cooldown

new const PlantingSound[]= {

"csgo2021radio/planting.wav"
}

new const DefusingSound[]= {

"csgo2021radio/defusing.wav"

}
public plugin_precache()
{

precache_sound(PlantingSound)
precache_sound(DefusingSound)

}
public bomb_planting(id) {
new UserTeam = get_user_team(id);

new players[32],total, team_name[10]
get_user_team(id,team_name, 9)
get_players(players, total ,"ce", team_name) // No bots and Match team name
new name[32]
get_user_name(id,name,31)

for(new a=0; a < total; ++a)
{
if (UserTeam == 1) // TE
{
client_cmd(players[a], "spk %s",PlantingSound);
}
}
}

public bomb_defusing(id) {

static Float:ctime; ctime = get_gametime();
if(Defusing[id] > ctime) return;

Defusing[id] = ctime+get_pcvar_float(Cooldown)
new UserTeam = get_user_team(id);

new players[32],total, team_name[10]
get_user_team(id,team_name, 9)
get_players(players, total ,"ce", team_name) // No bots and Match team name

for(new a=0; a < total; ++a)
{
if (UserTeam == 2) // CT
{
client_cmd(players[a], "spk %s",DefusingSound);
}
}
}



/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/

can anone edit this to work

planting the bomb only for T

and defusing the bomb only for CT
 
Сообщения
32
Реакции
0
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <csx>
#include <fakemeta>
#include <hamsandwich>



new Float:Defusing[33], Cooldown
new const PlantingSound[]= {
"csgo2021radio/planting.wav"
}
new const DefusingSound[]= {
"csgo2021radio/defusing.wav"
}
public plugin_precache()
{
precache_sound(PlantingSound)
precache_sound(DefusingSound)
}
public bomb_planting(id) {
new UserTeam = cs_get_user_team(id);
new players[32],total, team_name[10]
get_user_team(id,team_name, 9)
get_players(players, total ,"ce", team_name) // No bots and Match team name
new name[32]
get_user_name(id,name,31)
for(new a=0; a < total; ++a)
{
if (UserTeam == CS_TEAM_T) // TE
{
client_cmd(players[a], "spk %s",PlantingSound);
}
}
}
public bomb_defusing(id) {
static Float:ctime; ctime = get_gametime();
if(Defusing[id] > ctime) return;
Defusing[id] = ctime+get_pcvar_float(Cooldown)
new UserTeam = cs_get_user_team(id);
new players[32],total, team_name[10]
get_user_team(id,team_name, 9)
get_players(players, total ,"ce", team_name) // No bots and Match team name
for(new a=0; a < total; ++a)
{
if (UserTeam == CS_TEAM_CT) // CT
{
client_cmd(players[a], "spk %s",DefusingSound);
}
}
}


/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/


here you go!
22 Фев 2025
remote1337, this was what u wanted?
 
Сообщения
26
Реакции
8
remote1337,

this error come

//// dev-plant-defuse.sma
//
dev-plant-defuse.sma(24) : warning 213: tag mismatch
dev-plant-defuse.sma(32) : warning 213: tag mismatch
dev-plant-defuse.sma(42) : warning 213: tag mismatch
dev-plant-defuse.sma(48) : warning 213: tag mismatch
 
Статус
В этой теме нельзя размещать новые ответы.

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

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