User
Pass
2FA
 
 

Cerere plugin tag
Go to page Previous  1, 2    
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message3904
jy0nsS

[Mentally Stable]



Status: Offline
(since 30-08-2017 16:06)
Joined: 26 Nov 2015
Posts: 222, Topics: 63
Location: Romania

Reputation: 75.4
Votes: 1

Post Posted: 20-05-2017, 16:30:43 | Translate post to: ... (Click for more languages)

UP
0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 20-05-2017, 19:09:42 | Translate post to: ... (Click for more languages)

Cauta publicul asta si inlocuieste-l cu asta :
Code:

public HookSayTeam(id)
{
read_args(g_typed, charsmax(g_typed))
remove_quotes(g_typed)

trim(g_typed)

if(equal(g_typed, "") || !is_user_connected(id))
return PLUGIN_HANDLED_MAIN

if(equal(g_typed, "/prefix"))
{
if(g_toggle[id])
{
g_toggle[id] = false
client_print(id, print_chat, "%L", LANG_SERVER, "PREFIX_OFF", in_prefix)
}
else
{
g_toggle[id] = true
client_print(id, print_chat, "%L", LANG_SERVER, "PREFIX_ON", in_prefix)
}

return PLUGIN_HANDLED_MAIN
}

if(!g_toggle[id])
return PLUGIN_CONTINUE

num_to_str(id, str_id, charsmax(str_id))

if((TrieGetString(client_prefix, str_id, temp_prefix, charsmax(temp_prefix)) && get_pcvar_num(g_say_characters) == 1) || (!TrieGetString(client_prefix, str_id, temp_prefix, charsmax(temp_prefix)) && get_pcvar_num(g_say_characters) == 2) || get_pcvar_num(g_say_characters) == 3)
{
if(check_say_characters(g_typed))
return PLUGIN_HANDLED_MAIN
}

get_user_name(id, g_name, charsmax(g_name))

g_team = cs_get_user_team(id)

if(temp_prefix[0])
{
formatex(g_message, charsmax(g_message), "^1%s^4%s^3 %s ^1: %s", sayteam_team_info[is_user_alive(id)][g_team], temp_prefix, g_name, g_typed)
}
else
{
formatex(g_message, charsmax(g_message), "^1%s^3%s ^1: %s", sayteam_team_info[is_user_alive(id)][g_team], g_name, g_typed)
}

get_pcvar_string(g_listen_flag, temp_cvar, charsmax(temp_cvar))

for(new i = 1; i <= g_maxplayers; i++)
{
if(!is_user_connected(i))
continue

if(get_user_team(id) == get_user_team(i))
{
if(is_user_alive(id) && is_user_alive(i) || !is_user_alive(id) && !is_user_alive(i))
{
send_message(g_message, id, i)
}
}
}

return PLUGIN_HANDLED_MAIN
}

Ori seteaza cvarul pe 0 g_listen = register_cvar("ap_listen", "0") ->> asa si dai restart la server ca sa se aplice.



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
jy0nsS

[Mentally Stable]



Status: Offline
(since 30-08-2017 16:06)
Joined: 26 Nov 2015
Posts: 222, Topics: 63
Location: Romania

Reputation: 75.4
Votes: 1

Post Posted: 20-05-2017, 20:02:14 | Translate post to: ... (Click for more languages)

Iti multumesc frumos. Mereu m-ai ajutat si mereu ai stiut ce faci, mult succes in continuare si multumesc inca o data.
Se poate da T/C !

0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by GoreSpintecatoru., 20 May 2017 18:26



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  
Go to page Previous  1, 2    


The time now is 30-07-2025, 06:18:59
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password