Jump to content
GIGN Forum

Atsķevisķa Komanda Uz Cita Flaga.


Recommended Posts

public plugin_init() 
{ 
    register_concmd("amx_gag","CMD_GagPlayer",ADMIN_KICK,"<nick or #userid> <a|b|c> <time>") 
    register_concmd("amx_ungag","CMD_UnGagPlayer",ADMIN_KICK,"<nick or #userid>") 
}

nu re.. sheit ir tev janomaina uz to, ko shine pateica... ADMIN_LEVEL_X

bet shine... tur drusku zemak ir tada rindina, kura parbauda, vai adminam ir shis acc flags, lai izmantotu gag komandu...:

if(!cmd_access (id,level,cid,1)) return PLUGIN_HANDLED

ko tur likt...? es to nomainiitu uz sadu rindinu:

if (!(get_user_flags(id)&ADMIN_KICK)) {
        console_print(id,"[AMXX] No access")
        return PLUGIN_HANDLED
    }

bet nezinu.. :unsure:

Link to comment
Share on other sites

vinjsh prasiija par flagiem.. netaisos skatiities .sma un iedziljinaaties siikumos XD

EDIT: tiko uztaisiiju teeju - uzmetu aci tam skriptam XD(ko tu te iekopeeji) secinaajums = visam jaabut OK vinjsh paarbauda accesu ko dod concmd - nevaig lieki Piemeeslot skriptu XD un mainit neko tur nevaig

Edited by shine
Link to comment
Share on other sites

nomaini shito rindinu:

if(!cmd_access (id,level,cid,1)) return PLUGIN_HANDLED

pret:

if (!(get_user_flags(id)&ADMIN_LEVEL_M)) {
        console_print(id,"[AMXX] No access")
        return PLUGIN_HANDLED
    }

ja nesanaks, tad ieliec sheit *.sma failu..!

Link to comment
Share on other sites

nevaig mainiit!!!

otrkaart: ADMIN_LEVEL_A = M flags pie user.ini - paskaties pats

Paraizi buutu:

register_concmd("xgag","CMD_GagPlayer",ADMIN_LEVEL_A,"<nick or #userid> <a|b|c> <time>")
register_concmd("xungag","CMD_UnGagPlayer",ADMIN_LEVEL_A,"<nick or #userid>")

un viss vajadzeetu iet

Edited by shine
Link to comment
Share on other sites

#define ADMIN_LEVEL_A        (1<<12)    /* flag "m" */

butu šādi jaliek?

#define ADMIN_KICK        (1<<12)    /* flag "m" */

vai arī šadi

#define ADMIN_LEVEL_M        (1<<12)    /* flag "m" */

Un to arī izdarīt admin_gag.sma āri failā.

    register_concmd("amx_gag","CMD_GagPlayer",ADMIN_LEVEL_M,"<nick or #userid> <a|b|c> <time>")

Pareizi sapratu vai nē? Tad paskaidrojiet. :hrmmm:

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...