It is currently 24 Feb 2019 03:26



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  [ 22 posts ]  Go to page Previous  1, 2
 Plugins sa arate V.I.P in tab 
Author Message
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 21 Sep 2013 14:05
Posts: 869
Detinator Steam: Da
CS Status: Inactiv cateva zile.
SteamID: privat
Reputatie: Scripter eXtreamCS.com
Fost Moderator ajutator
Fond eXtream: 0
scosmynnnn wrote:
odata ce are setat flagul corespunzator nu are nici'o problema..si nu are cum sa apara cand e mort :))


Tu chiar nu stii nimic despre cum sunt trimise mesajele in cs ?

Ii setezi flagul la spawn ( suprascrii flagul normal setat atunci ). La urmatorul event care suprascrie flagurile ele se vor modifica,de exemplu cand moare, sau cand primeste bomba random,daca e un plugin care face asta.

Code:
 register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
cel mai bine e sa dai hoock acestui mesaj si sa setezi in el flagul.

| Afiseaza codul
#include < amxmodx >

#define ADMIN_ACCES ADMIN_LEVEL_H

#define SCOREATTRIB_VIP ( 1 << 2 )

public plugin_init( ) {
register_plugin( "VIP Admin", "0.0.1", "Hamlet" );

register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
}

public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {

new id = get_msg_arg_int( 1 );

if( is_user_connected( id ) && ( get_user_flags( id ) & ADMIN_ACCES ) )
set_msg_arg_int( 2, ARG_BYTE, SCOREATTRIB_VIP );

}


Cu toate ca vei putea primi niste failuri si cu metoda asta,este clar mai buna decat prima.

_________________
Daca vreti ajutorul meu, nu dati bump la topic, fara intrebari de genu "cat mai dureaza/mai astept mult?".


20 Jun 2014 19:30
Profile multumesc
Fost moderator
Fost moderator

Joined: 06 Jul 2013 21:08
Posts: 11149
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Fond eXtream: 0
| Afiseaza codul
#include <amxmodx>


new tab = 1324343;
new score_board

#define ADMIN_VIP ADMIN_LEVEL_H

public plugin_init(){
RegisterHam(Ham_Spawn,"player","fwd_spawn",1);
score_board = get_user_msgid("ScoreAttrib")
}
public fwd_spawn(id) {
if(is_user_connected(id))
set_task(1.0,"settabscore",id);
}
public settabscore(taskid) {
new id = taskid - tab;

if(get_user_flags(id) & ADMIN_VIP && is_user_connected(id))
{
message_begin(MSG_ALL,score_board)
write_byte(id)
write_byte(4)

message_end()
}
}


20 Jun 2014 19:32
Profile multumesc
Membru, skill 0
Membru, skill 0

Joined: 18 Jun 2014 15:43
Posts: 96
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: hnsip.zapto.org
Fond eXtream: 0
Eu vreau sa pun pe flagu W cum fac?

_________________
Image
Image
Image


20 Jun 2014 19:37
Profile multumesc WWW
Fost moderator
Fost moderator

Joined: 06 Jul 2013 21:08
Posts: 11149
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Fond eXtream: 0
NU exista flagul "w" in amxmodx.

Daca vrei sa modifici flagul cauta linia :

#define ADMIN_VIP ADMIN_LEVEL_H // de aici modifici flagul.

Flaguri:
Code:
ADMIN_IMMUNITY = Flagul 'A'
ADMIN_RESERVATION = Flagul 'B'
ADMIN_KICK = Flagul 'C'
ADMIN_BAN = Flagul 'D'
ADMIN_SLAY = Flagul 'E'
ADMIN_MAP = Flagul 'F'
ADMIN_CVAR = Flagul 'G'
ADMIN_CFG = Flagul 'H'
ADMIN_CHAT = Flagul 'I'
ADMIN_VOTE = Flagul 'J'
ADMIN_PASSWORD = Flagul 'K'
ADMIN_RCON = Flagul 'L'
ADMIN_LEVEL_A = Flagul 'M'
ADMIN_LEVEL_B = Flagul 'N'
ADMIN_LEVEL_C = Flagul 'O'
ADMIN_LEVEL_D = Flagul 'P'
ADMIN_LEVEL_E = Flagul 'Q'
ADMIN_LEVEL_F = Flagul 'R'
ADMIN_LEVEL_G = Flagul 'S'
ADMIN_LEVEL_H = Flagul 'T'
ADMIN_MENU = Flagul 'U'


20 Jun 2014 19:43
Profile multumesc
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 21 Sep 2013 14:05
Posts: 869
Detinator Steam: Da
CS Status: Inactiv cateva zile.
SteamID: privat
Reputatie: Scripter eXtreamCS.com
Fost Moderator ajutator
Fond eXtream: 0
| Afiseaza codul
#include < amxmodx >


#define SCOREATTRIB_VIP ( 1 << 2 )

public plugin_init( ) {
register_plugin( "VIP Admin", "0.0.1", "Hamlet" );

register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
}

public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {

new id = get_msg_arg_int( 1 );

if( is_user_connected( id ) && get_user_flags ( id ) & read_flags ( "w" ) )
set_msg_arg_int( 2, ARG_BYTE, SCOREATTRIB_VIP );

}


Poftim pe flagul w..... nu mai voribiti aiurea daca nu stiti. Tot ce trebuie sa faci e sa adaugi litera w la accese.

_________________
Daca vreti ajutorul meu, nu dati bump la topic, fara intrebari de genu "cat mai dureaza/mai astept mult?".


20 Jun 2014 19:49
Profile multumesc
Membru, skill 0
Membru, skill 0

Joined: 18 Jun 2014 15:43
Posts: 96
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: hnsip.zapto.org
Fond eXtream: 0
+1 Multumesc Rezolvat

_________________
Image
Image
Image


20 Jun 2014 19:57
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 26 Jan 2019 19:48
Posts: 2
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
HamletEagle wrote:
| Afiseaza codul
#include < amxmodx >


#define SCOREATTRIB_VIP ( 1 << 2 )

public plugin_init( ) {
register_plugin( "VIP Admin", "0.0.1", "Hamlet" );

register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
}

public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {

new id = get_msg_arg_int( 1 );

if( is_user_connected( id ) && get_user_flags ( id ) & read_flags ( "w" ) )
set_msg_arg_int( 2, ARG_BYTE, SCOREATTRIB_VIP );

}


Poftim pe flagul w..... nu mai voribiti aiurea daca nu stiti. Tot ce trebuie sa faci e sa adaugi litera w la accese.


Am pus "h" dar nu arata nimic cand apas tab..


09 Feb 2019 14:52
Profile multumesc WWW
Moderator
Moderator
User avatar

Joined: 17 Dec 2013 19:51
Posts: 726
Location: New Orleans
Detinator Steam: Da
SteamID: /id/csall
Reputatie: Moderator
Fost Membru Club eXtreamCS (o luna)
Fond eXtream: 0
ADMIN_CFG = Flagul 'H'
ADMIN_LEVEL_H = Flagul 'T"

Fii atent.

_________________
[EXCHANGE] PaySafeCard => PayPal


10 Feb 2019 19:10
Profile multumesc
Membru, skill 0
Membru, skill 0

Joined: 13 Jan 2019 02:01
Posts: 33
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Există vreo posibilitate in loc de VIP în tab sa scrie alt cuvânt exemplu BETA? [quote="cs_all"]


10 Feb 2019 23:29
Profile multumesc WWW
Moderator ajutator
Moderator ajutator
User avatar

Joined: 10 May 2013 13:25
Posts: 2921
Location: Gura Humorului
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Fond eXtream: 0
e931ff07 wrote:
Există vreo posibilitate in loc de VIP în tab sa scrie alt cuvânt exemplu BETA?
cs_all wrote:

Nu se poate

_________________
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș

Pluginurile mele publice | Afiseaza codul
Control HE Damage(s)
[Zombie mod] Liderul oamenilor
NO RUSH (MANUAL)
Salvatorul Craciunului
Harry Potter's Magic Wand [0.0.3]
New HE Grenade Effects
Upgrades Menu -> Health/Armor/Damage

Serverele care au achizitonat pluginurile mele: #1 #2

CONTACT: sef_yontu@yahoo.com | skype: cyp_yontu


11 Feb 2019 10:55
Profile multumesc YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 22 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: Baidu [Spider] and 56 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