It is currently 15 Dec 2018 09:27



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 9 posts ] 
 Admin prefix modificare 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 29 Jul 2018 12:28
Posts: 21
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Salut doresc sa stiu daca inafara de pluginul acesta https://forums.alliedmods.net/showthread.php?t=183491 mai exista un plugin care atribuie automat unu player care foloseste steam tag-ul (STEAM) NUME PLAYER , fara a mai adauga in acel admin_prefix.ini sa ii adaug steamid la fel si pentru playeri valve cei ce nu au steam si e doar player sa ii se atribuie tagul (JUCATOR SAU PLAYER ETC ) Nume si la admini sa aibe tagul admin cat si celor cu vip tagul vip ? Doar daca ma poate ajuta cineva am vazut pe un server care dabia am intrat pe el eu aveam steam si cand scriam imi aparea langa nume " ( STEAM ) Japonezul :" .


03 Aug 2018 11:21
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 30 Sep 2017 21:12
Posts: 52
Location: Resita
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Hmm mi se pare ca ar merge cu steam api, dar nu inteleg ce vrei tu mai exact..


03 Aug 2018 11:29
Profile multumesc WWW
Online
Moderator ajutator
Moderator ajutator
User avatar

Joined: 05 Jun 2016 22:04
Posts: 1133
Location: beyond the time
Detinator Steam: Da
Detinator server CS: GO/CSGO.WARED.RO
SteamID: DevilBoy_eXe
Reputatie: Moderator ajutator
Fond eXtream: 0
Sa mor daca am inteles ce vrei :))
Pe alliedmods nu vei gasi plugine care sa atribuie jucatorilor steam anumite chestii pentru ca cei de pe alliedmods nu ofera suport pentru nonsteam si e ilogic sa dai anumite beneficii la playeri steam daca tu ai server steam only
Uite aici Steam Bonus care foloseste niste functii din dproto (daca ai rehlds nu merge)
| Afiseaza codul
#include amxmodx
#include amxmisc
#include cstrike
#include fun
#include hamsandwich
#include ColorChat

public plugin_init() {

RegisterHam(Ham_Spawn, "player", "PlayerPostSpawn", 1);
}

public PlayerPostSpawn(id)
{
if (!is_user_connected(id) || !is_user_steam(id))
return HAM_HANDLED;

new MENU = menu_create ( "\ySTEAM BONUS \wMENU", "BONUS" );

menu_additem ( MENU, "ARME", "1", 0 );
menu_additem ( MENU, "HP", "2", 0 );

menu_setprop ( MENU, MPROP_EXIT, MEXIT_ALL );

menu_display ( id, MENU, 0 );
return HAM_IGNORED;
}

public BONUS(id,MENU,item)
{
if (!is_user_alive(id) || !is_user_steam(id))
return PLUGIN_HANDLED;

if (item == MENU_EXIT)
return PLUGIN_HANDLED;

new data [6], iName [64];
new access, callback;

menu_item_getinfo ( MENU, item, access, data,5, iName, 63, callback);

new key = str_to_num(data);

switch(key)
{
case 1:
{
ARME(id);
ColorChat (id, GREEN, "^1[^4Steam Bonus^1] Ai ales ^4ARME^1!");
}
case 2:
{
ColorChat (id, GREEN, "^1[^4Steam Bonus^1] Ai ales ^4HP^1!");
{
set_user_health(id, 150);
/*new CsArmorType:ArmorType
new iArmor = cs_get_user_armor(id, ArmorType)
cs_set_user_armor(id, iArmor + 50, ArmorType)*/
}
}
}
menu_destroy ( MENU );
return PLUGIN_HANDLED;
}

public ARME(id)
{

new menu = menu_create ("\rMENIU ARME", "ALEGE");
menu_additem(menu, "\yM4A1", "1");
menu_additem(menu, "\yAK-47", "2");
menu_additem(menu, "\wAWP", "3");

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0 );

return 1;
}

public ALEGE(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}

new data [6], szName [64];
new access, callback;
menu_item_getinfo (menu, item, access, data,charsmax (data), szName,charsmax (szName), callback);
new key = str_to_num (data);

new name[32]
get_user_name(id, name, 31);

switch (key)
{
case 1:
{
if( is_user_alive( id ) )
{
strip_user_weapons(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "weapon_m4a1");
cs_set_user_bpammo(id, CSW_M4A1, 90);
cs_set_user_bpammo(id, CSW_DEAGLE, 70);
}
}

case 2:
{
if( is_user_alive( id ) )
{
strip_user_weapons(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "weapon_ak47");
cs_set_user_bpammo(id, CSW_AK47, 90);
cs_set_user_bpammo(id, CSW_DEAGLE, 70);
}
}
case 3:
{
if( is_user_alive( id ) )
{
strip_user_weapons(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "weapon_awp");
cs_set_user_bpammo(id, CSW_AWP, 90);
cs_set_user_bpammo(id, CSW_DEAGLE, 70);
}
}
}

menu_destroy(menu);
return PLUGIN_HANDLED;
}

stock bool:is_user_steam(id)
{
static dp_pointer
if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider")))
{
server_cmd("dp_clientinfo %d", id)
server_exec()
return (get_pcvar_num(dp_pointer) == 2) ? true : false
}
return false
}

_________________


03 Aug 2018 11:30
Profile multumesc YIM WWW
Membru, skill 0
Membru, skill 0

Joined: 29 Jul 2018 12:28
Posts: 21
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Ma refer la tag

cum e admin_tag etc .
gen cand scrie admin x in chat ii apare [ OWNER ] NUmele adminului etc .

Eu vreau ca CEI CARE FOLOSESC STEAM SA AIBE TAGUL (STEAM) in fata cand scrie in chat pe "say" dar aici ma refer doar la cei cu steam nu si admini ,zic doar care au steam, efectiv cand eu intru pe server neavand admin / slot sau mai stiu eu ce cand scriu in chat sa apara tag-ul ( steam )

La cei care nu au steam sa le apara tag-ul ( PLAYER ) / (JUCATOR) sau mai stiu eu ce ,

La cei care au ADMIN sa le apara tag-ul [ADMIN]nume etc

Si la cei cu vip aici am vip silver si vip gold la fel cei ce poseda vip sa le apara tag-ul [VIP]

Vreau doar cand se scrie in chat nimic altceva , cum e rang_admin_chat doar ca la adminprefix acel plugin trebuie sa adaug pentru cei cu STEAM ,Steamid adica STEAM_0:0:12131321 ETC eu vreau ca cei cu steam care intra pe server neavand admin neavand vip , sa le dea automat acel tag fara sa stau sa adaug pe fiecare in parte .


03 Aug 2018 11:59
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 30 Sep 2017 21:12
Posts: 52
Location: Resita
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
JaponezuEnd wrote:
Ma refer la tag

cum e admin_tag etc .
gen cand scrie admin x in chat ii apare [ OWNER ] NUmele adminului etc .

Eu vreau ca CEI CARE FOLOSESC STEAM SA AIBE TAGUL (STEAM) in fata cand scrie in chat pe "say" dar aici ma refer doar la cei cu steam nu si admini ,zic doar care au steam, efectiv cand eu intru pe server neavand admin / slot sau mai stiu eu ce cand scriu in chat sa apara tag-ul ( steam )

La cei care nu au steam sa le apara tag-ul ( PLAYER ) / (JUCATOR) sau mai stiu eu ce ,

La cei care au ADMIN sa le apara tag-ul [ADMIN]nume etc

Si la cei cu vip aici am vip silver si vip gold la fel cei ce poseda vip sa le apara tag-ul [VIP]

Vreau doar cand se scrie in chat nimic altceva , cum e rang_admin_chat doar ca la adminprefix acel plugin trebuie sa adaug pentru cei cu STEAM ,Steamid adica STEAM_0:0:12131321 ETC eu vreau ca cei cu steam care intra pe server neavand admin neavand vip , sa le dea automat acel tag fara sa stau sa adaug pe fiecare in parte .


Pentru ce-i cu tag (STEAM) incearca asta https://forums.alliedmods.net/showthread.php?t=261044
Iara ca tag admin si VIp testezi daca is_user_admin sau un flag specific si la VIP testezi flag-ul.


03 Aug 2018 12:21
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 29 Jul 2018 12:28
Posts: 21
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Code:
#include <amxmodx>
#include <cstrike>

public plugin_init() {
   register_plugin("Steam Prefix", "1.0", "Alienware")
   register_message(get_user_msgid("SayText"), "setPrefix")
}

public setPrefix(msgId, msgDest, msgEnt) {
   new id = get_msg_arg_int(1)
       
   if(!is_user_connected(id))     
      return PLUGIN_CONTINUE
       
   if(is_user_steam(id)) {
      new szTmp[256], szTmp2[256]
      get_msg_arg_string(2, szTmp, charsmax( szTmp ) )
               
      new szPrefix[64] = "^x04[STEAM]"
               
      if(!equal(szTmp, "#Cstrike_Chat_All")) {
         add(szTmp2, charsmax(szTmp2), szPrefix)
         add(szTmp2, charsmax(szTmp2), " ")
         add(szTmp2, charsmax(szTmp2), szTmp)
      } else {
         add(szTmp2, charsmax(szTmp2), szPrefix)
         add(szTmp2, charsmax(szTmp2), "^x03 %s1^x01: %s2")
      }   
      set_msg_arg_string(2, szTmp2)
   }
   return PLUGIN_CONTINUE
}

stock bool:is_user_steam(id) {
   static dp_pointer
   if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider"))) {
      server_cmd("dp_clientinfo %d", id)
      server_exec()
      return (get_pcvar_num(dp_pointer) == 2) ? true : false
   }
   return false
}


am gasit acest plugin merge bine gen pentru cei cu steam apare prefixul iar cei care nu au steam nu le apar . faza e cand sciu in chat imi apare [STEAM] s1:s2 adica nu-mi apare numele nici mesajul


04 Aug 2018 14:40
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 04 Feb 2017 17:36
Posts: 71
Detinator Steam: Da
CS Status: Web Developer / Scripting AMXX.
Detinator server CS: nu
Fond eXtream: 0
Foloseste fixchat-ul asta .
Code:
#include <amxmodx>
#include <cstrike>

native csgor_get_user_rang(id, szout[], len);
native csgor_is_user_logged(id);

new g_maxplayers;
new g_saytxt;
new g_ghost;

public plugin_init()
{
   register_plugin("ChatFix CS:GO Remake", "3.1", "siriusmd99");
   g_ghost = register_cvar("amx_chatfix_ghostchat", "1")
   g_saytxt = get_user_msgid("SayText");
   g_maxplayers=get_maxplayers();
   register_clcmd("say", "HookSay")
   register_clcmd("say_team", "HookSay")
}


public HookSay(id)
{
   new g_typed[192]
   new g_message[192]
   new g_name[32]
   
   read_args(g_typed, charsmax(g_typed))
   remove_quotes(g_typed)
   
   trim(g_typed);
   
   if(equal(g_typed, "") || !is_user_connected(id) || !id)
   return PLUGIN_HANDLED;
   
   get_user_name(id, g_name, charsmax(g_name));
   
   new szArg[10], szTeamP[32]
   new bool:isTeam;
   read_argv(0,szArg,charsmax(szArg))
   new CsTeams:iTeam = cs_get_user_team(id);
   if(equali(szArg, "say_team"))
   {
      switch(iTeam)
      {
         case CS_TEAM_CT: formatex(szTeamP, charsmax(szTeamP), "(CT) ");
            case CS_TEAM_T: formatex(szTeamP, charsmax(szTeamP), "(Terrorist) ");
            case CS_TEAM_SPECTATOR: formatex(szTeamP, charsmax(szTeamP), "(Spectator) ");
         }
      isTeam = true;
   }
   
   
   if(csgor_is_user_logged(id))
   {
      new prefix[64]
      csgor_get_user_rang(id, prefix, charsmax(prefix));
      formatex(g_message, charsmax(g_message), "^1%s%s^4[%s]^3 %s :^1 %s", cs_get_user_team(id) == CS_TEAM_SPECTATOR ? isTeam ? "" : "*SPEC* " : (!is_user_alive(id) ? "*DEAD* " : ""), isTeam ? szTeamP : "",prefix, g_name, g_typed);
   }
   else
   {
      formatex(g_message, charsmax(g_message), "^1%s%s^3%s :^1 %s", cs_get_user_team(id) == CS_TEAM_SPECTATOR ? isTeam ? "" : "*SPEC* " : (!is_user_alive(id) ? "*DEAD* " : ""), isTeam ? szTeamP : "", g_name, g_typed);
   }

   new iCvar = get_pcvar_num(g_ghost)

   for(new i = 1; i <= g_maxplayers; i++)
   {
      if(!is_user_connected(i))
      continue
     
      if(isTeam && cs_get_user_team(i) != iTeam)
      continue
     
      if(!iCvar)
      {
         if(is_user_alive(id) && is_user_alive(i) || !is_user_alive(id) && !is_user_alive(i) || get_user_flags(i) & ADMIN_KICK)
         {
            send_message(g_message, id, i)
         }
      }
      else
      {   
         send_message(g_message, id, i)
      }
   }
   
   return PLUGIN_HANDLED;
}

send_message(const message[], const id, const i)
{
   message_begin(MSG_ONE, g_saytxt, {0, 0, 0}, i)
   write_byte(id)
   write_string(message)
   message_end()
}


am testat-o si pe server classic , din cate stiu merge si fara modul csgo remake

_________________
- CADOURI DE CRACIUN ! -
MouseSport Romania
Host Gratuit !

- LUATI DE VA DISTRATI ! -
GO.MOUSESPORT.RO - CSGO REMAKE - 32 SLOTS
RESPAWN.MOUSESPORT.RO - CSDM DEATHMATCH - 22 SLOTS

- O PARTE DIN MUNCA MEA ! -
Zombie Plague 6.2 (The Return) Modificat - Click Aici!
CS:GO Remake 1G + Lucruri Noi ! - Click Aici!

- PLUGINURILE ALEA BLANAO ! -
(ZE) Break Info Chat - Click Aici!
(ZE) Show Escape Button - Click Aici!
M4 Models -Click Aici!


19 Aug 2018 08:58
Profile multumesc YIM WWW
Membru, skill 0
Membru, skill 0

Joined: 29 Jul 2018 12:28
Posts: 21
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Aia cu steam am rezolvat . Acuma am venit din vacanta si nu am avut timp sa postez ca s-a rezolvat . Scuzati


24 Aug 2018 16:45
Profile multumesc WWW
Membru, skill +1
Membru, skill +1
User avatar

Joined: 14 Aug 2009 10:50
Posts: 283
Location: Birmingham
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Detinator server CS: Da
Fond eXtream: 0
JaponezuEnd wrote:
Aia cu steam am rezolvat . Acuma am venit din vacanta si nu am avut timp sa postez ca s-a rezolvat . Scuzati

Si care este rezolvarea?


24 Aug 2018 17:05
Profile multumesc
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: Bing [Bot] and 73 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group