It is currently 14 Aug 2018 22:11



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  [ 6 posts ] 
 Admin prefix modificare 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 29 Jul 2018 13:28
Posts: 14
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 12:21
Profile multumesc WWW
Online
Membru, skill 0
Membru, skill 0
User avatar

Joined: 30 Sep 2017 22:12
Posts: 50
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 12:29
Profile multumesc WWW
Membru, skill +2
Membru, skill +2
User avatar

Joined: 05 Jun 2016 23:04
Posts: 860
Location: WWW.WARED.RO
Detinator Steam: Da
CS Status: WWW.WARED.RO
Detinator server CS: GO/CSGO.WARED.RO
SteamID: DevilBoy_eXe
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
}

_________________
ImageImage
Tranzactii efectuate:
| Afiseaza codul
Toti au dat primi!
https://i.imgur.com/8pob2nT.png
https://i.imgur.com/I3aaoAn.png
https://i.imgur.com/oa1IASc.png
https://i.imgur.com/cPHpfcm.png
https://i.imgur.com/QoAsi2x.png
http://prntscr.com/j4yumf
https://image.prntscr.com/image/sTnbhKN7SgGANI7rrRMYqA.png
https://i.imgur.com/Uyq3P48.png
https://image.prntscr.com/image/3vu6JMW_TjS2-iloHe9xRA.png


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

Joined: 29 Jul 2018 13:28
Posts: 14
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 12:59
Profile multumesc WWW
Online
Membru, skill 0
Membru, skill 0
User avatar

Joined: 30 Sep 2017 22:12
Posts: 50
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 13:21
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 29 Jul 2018 13:28
Posts: 14
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 15:40
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 86 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