Неверный раздел форума
hello dev
i have this but dont work correctly
can anone edit this to work
planting the bomb only for T
and defusing the bomb only for CT
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