Sgt.M1kWo Posted September 15, 2007 Report Share Posted September 15, 2007 Sveiki. Vai kāds var pateikt ko ir jaeditē .sma failos piemēram gribu amx_gag lai buutu uz ''m'' flaga (users.ini)! Kā to var izdarīt? Link to comment Share on other sites More sharing options...
shine Posted September 15, 2007 Report Share Posted September 15, 2007 (edited) atrod rindinju "ADMIN_" piemeram: "ADMIN_BAN/ADMIN_KICK" un nomaini uz: "ADMIN_LEVEL_A" Edited September 16, 2007 by shine Link to comment Share on other sites More sharing options...
remix.cc Posted September 15, 2007 Report Share Posted September 15, 2007 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.. Link to comment Share on other sites More sharing options...
shine Posted September 15, 2007 Report Share Posted September 15, 2007 (edited) 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 September 15, 2007 by shine Link to comment Share on other sites More sharing options...
Sgt.M1kWo Posted September 15, 2007 Author Report Share Posted September 15, 2007 register_concmd("xgag","CMD_GagPlayer",ADMIN_LEVEL_M,"<nick or #userid> <a|b|c> <time>") register_concmd("xungag","CMD_UnGagPlayer",ADMIN_LEVEL_M,"<nick or #userid>") Šādi? Un vēl to ko remix.cc teica izdarīju.. Bet parādijās errors kompilējot. Link to comment Share on other sites More sharing options...
tankeris Posted September 15, 2007 Report Share Posted September 15, 2007 admin_level_A Link to comment Share on other sites More sharing options...
Sgt.M1kWo Posted September 15, 2007 Author Report Share Posted September 15, 2007 Nu nē. Tas tik un tā neko nedos. Man vajg tā lai uzliekot users.ini ''m'' flagu buutu gag tiesiibas. Link to comment Share on other sites More sharing options...
remix.cc Posted September 16, 2007 Report Share Posted September 16, 2007 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 More sharing options...
shine Posted September 16, 2007 Report Share Posted September 16, 2007 (edited) 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 September 16, 2007 by shine Link to comment Share on other sites More sharing options...
remix.cc Posted September 16, 2007 Report Share Posted September 16, 2007 xm.. vai tad ADMIN_LEVEL_A nav imunity? Link to comment Share on other sites More sharing options...
shine Posted September 16, 2007 Report Share Posted September 16, 2007 ADMIN_IMMUNITY ir immunity XD Link to comment Share on other sites More sharing options...
remix.cc Posted September 16, 2007 Report Share Posted September 16, 2007 aa.. sapratu.. a to es brinijos, kapec amxx studio neuzrada admin_level_m ... xm.. bet stulbi.. kada veida var uzzinat kurs ir m kurs s acc flags.. :/ Link to comment Share on other sites More sharing options...
shine Posted September 16, 2007 Report Share Posted September 16, 2007 ; m - custom level A (for additional plugins) ; n - custom level B ; o - custom level C ; p - custom level D ; q - custom level E ; r - custom level F ; s - custom level G ; t - custom level H Link to comment Share on other sites More sharing options...
worm Posted September 17, 2007 Report Share Posted September 17, 2007 include direktorijaa ir fails ar nosaukumu amxconst.inc kur ir defineeti visi aksesu flagi Link to comment Share on other sites More sharing options...
remix.cc Posted September 17, 2007 Report Share Posted September 17, 2007 nu ja... es izgazos.. bet ta un ta es nevaru ierubiit shito rindinu: if(!cmd_access (id,level,cid,1)) return PLUGIN_HANDLED kur tur pateikts, ka vinam jabut kick acc lai plugins ietu..? XD Link to comment Share on other sites More sharing options...
Sgt.M1kWo Posted September 17, 2007 Author Report Share Posted September 17, 2007 #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. Link to comment Share on other sites More sharing options...
shine Posted September 17, 2007 Report Share Posted September 17, 2007 izskataas pareizi... es nez... galva nereaali saap... neesmu redzeejis SMA - vajadzeetu but pareizi. Link to comment Share on other sites More sharing options...
Sgt.M1kWo Posted September 17, 2007 Author Report Share Posted September 17, 2007 http://forums.alliedmods.net/showthread.php?p=3873 šeit būs sma ja vajg Link to comment Share on other sites More sharing options...
remix.cc Posted September 18, 2007 Report Share Posted September 18, 2007 register_concmd("amx_gag","CMD_GagPlayer",ADMIN_LEVEL_A,"<nick or #userid> <a|b|c> <time>") Link to comment Share on other sites More sharing options...
samuray Posted September 19, 2007 Report Share Posted September 19, 2007 register_concmd("amx_gag","CMD_GagPlayer",ADMIN_LEVEL_A,"<nick or #userid> <a|b|c> <time>") tjipo Link to comment Share on other sites More sharing options...
Recommended Posts