Mine sisusse
Otsi siit
  • Rohkem valikuid...
Otsi tulemusi mis sisaldab...
Otsi tulemusi...

Kuidas saaks korrahoidja (+ omanik) immusi bännida?

Soovitatud postitused

VIP

Tere

 

Selline probleem , et minu serveris on minul absoluutselt kõik õigused ja admincmd.amxx on serveril peal olen katsetanund mitmeid admincmd.amxx faile aga mitte ühegagi ei muutu olukord ja see immude bännimine oleks päris vajalik.

 

Ette tänades Calabria


Less words, more action!

 

Steam: /id/calabria202

https://sarmo.eu/

Jaga seda postitust


Postituse link
Share on other sites

See oli mingi korrahoidja plugin tegelikult.

Ma ei mäleta kust foorumist seda sai.

Mingis eesti serveri foorumis oli see olemas.

 

Pilvikute serverite foorumis vist (võin eksida)

 

Aga see oli eelmine aasta, ei tea kust seda hetkel saab... uurin, ehk leian.

 

// Pilvikute paradiis oli vist.

 

Igastahes leidsin mingi asja.

 

see on admincmd.sma-st võetud cmdBan funktsioon

public cmdBan(id, level, cid){
   if (!cmd_access(id, level, cid, 3))
       return PLUGIN_HANDLED


   new target[32], minutes[8], reason[64]

   read_argv(1, target, 31)
   read_argv(2, minutes, 7)
   read_argv(3, reason, 63)

   new flags = CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF| CMDTARGET_OBEY_IMMUNITY
   new player = cmd_target(id, target, (get_user_flags(id) & ADMIN_CVAR) ? flags ^ CMDTARGET_OBEY_IMMUNITY : flags)

   if (!player)
       return PLUGIN_HANDLED


   new authid[32], name2[32], authid2[32], name[32]
   new userid2 = get_user_userid(player)


   get_user_authid(player, authid2, 31)
   get_user_authid(id, authid, 31)
   get_user_name(player, name2, 31)
   get_user_name(id, name, 31)

   log_amx("Ban: ^"%s^" ban and kick ^"%s^" (minutes ^"%s^") (reason ^"%s^")", name, get_user_userid(id), authid, name2, userid2, authid2, minutes, reason)

   new temp[64], banned[16], nNum = str_to_num(minutes)
   if (nNum)
       format(temp, 63, "%L", player, "FOR_MIN", minutes)
   else
       format(temp, 63, "%L", player, "PERM")


   format(banned, 15, "%L", player, "BANNED")


   if (reason[0])
       server_cmd("kick #%d ^"%s (%s %s)^";wait;banid ^"%s^" ^"%s^";wait;writeid", userid2, reason, banned, temp, minutes, authid2)
   else
       server_cmd("kick #%d ^"%s %s^";wait;banid ^"%s^" ^"%s^";wait;writeid", userid2, banned, temp, minutes, authid2)



   // Display the message to all clients


   new msg[256];
   new len;
   new maxpl = get_maxplayers();
   for (new i = 1; i     {
       if (is_user_connected(i) && !is_user_bot(i))
       {
           len = formatex(msg, charsmax(msg), "%L", i, "BAN");
           len += formatex(msg[len], charsmax(msg) - len, " %s ", name2);
           if (nNum)
           {
               len += formatex(msg[len], charsmax(msg) - len, "%L", i, "FOR_MIN", minutes);
           }
           else
           {
               len += formatex(msg[len], charsmax(msg) - len, "%L", i, "PERM");
           }
           if (strlen(reason) > 0)
           {
               formatex(msg[len], charsmax(msg) - len, " (%L: %s)", i, "REASON", reason);
           }
           show_activity_id(i, id, name, msg);
       }
   }

   console_print(id, "[AMXX] %L", id, "CLIENT_BANNED", name2)

   return PLUGIN_HANDLED

 

See compile siis kas webcompileris või local compileris ja ADMIN_CVAR flag saab immunity'ga inimesi bannida.

 

ADMIN_CVAR flag on h

 

 

Autor on jimway.

Muudetud liikme Finnish'i poolt

Love me like you do, lo-lo-love me like you do

Jaga seda postitust


Postituse link
Share on other sites
SUPERVIP

see admincmd aga tal vb bans siis teine teema .

Jaga seda postitust


Postituse link
Share on other sites

täpselt sama teema tuleb muuta ilmselt ka amxbansis ehk see

 

    new flags = CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF| CMDTARGET_OBEY_IMMUNITY
   new player = cmd_target(id, target, (get_user_flags(id) & ADMIN_CVAR) ? flags ^ CMDTARGET_OBEY_IMMUNITY : flags)


Yilia1

Jaga seda postitust


Postituse link
Share on other sites
SUPERVIP

compilemisel viskab errorid...

 

/tmp/text75awOz.sma(2) : error 017: undefined symbol "cmd_access"/tmp/text75awOz.sma(3) : error 017: undefined symbol "PLUGIN_HANDLED"/tmp/text75awOz.sma(8) : error 017: undefined symbol "read_argv"/tmp/text75awOz.sma(9) : error 017: undefined symbol "read_argv"/tmp/text75awOz.sma(10) : error 017: undefined symbol "read_argv"/tmp/text75awOz.sma(12) : error 017: undefined symbol "CMDTARGET_NO_BOTS"/tmp/text75awOz.sma(13) : error 017: undefined symbol "cmd_target"/tmp/text75awOz.sma(16) : error 017: undefined symbol "PLUGIN_HANDLED"/tmp/text75awOz.sma(20) : error 017: undefined symbol "get_user_userid"/tmp/text75awOz.sma(23) : error 017: undefined symbol "get_user_authid"/tmp/text75awOz.sma(24) : error 017: undefined symbol "get_user_authid"/tmp/text75awOz.sma(25) : error 017: undefined symbol "get_user_name"/tmp/text75awOz.sma(26) : error 017: undefined symbol "get_user_name"/tmp/text75awOz.sma(28) : error 017: undefined symbol "log_amx"/tmp/text75awOz.sma(30) : error 017: undefined symbol "str_to_num"/tmp/text75awOz.sma(32) : error 017: undefined symbol "format"/tmp/text75awOz.sma(34) : error 017: undefined symbol "format"/tmp/text75awOz.sma(37) : error 017: undefined symbol "format"/tmp/text75awOz.sma(41) : error 017: undefined symbol "server_cmd"/tmp/text75awOz.sma(43) : error 017: undefined symbol "server_cmd"/tmp/text75awOz.sma(52) : error 017: undefined symbol "get_maxplayers"/tmp/text75awOz.sma(55) : error 017: undefined symbol "is_user_connected"/tmp/text75awOz.sma(57) : error 017: undefined symbol "formatex"/tmp/text75awOz.sma(58) : error 017: undefined symbol "formatex"/tmp/text75awOz.sma(61) : error 017: undefined symbol "formatex"/tmp/text75awOz.sma(65) : error 017: undefined symbol "formatex"

Jaga seda postitust


Postituse link
Share on other sites
compilemisel viskab errorid...

 

/tmp/text75awOz.sma(2) : error 017: undefined symbol "cmd_access"/tmp/text75awOz.sma(3) : error 017: undefined symbol "PLUGIN_HANDLED"/tmp/text75awOz.sma(8) : error 017: undefined symbol "read_argv"/tmp/text75awOz.sma(9) : error 017: undefined symbol "read_argv"/tmp/text75awOz.sma(10) : error 017: undefined symbol "read_argv"/tmp/text75awOz.sma(12) : error 017: undefined symbol "CMDTARGET_NO_BOTS"/tmp/text75awOz.sma(13) : error 017: undefined symbol "cmd_target"/tmp/text75awOz.sma(16) : error 017: undefined symbol "PLUGIN_HANDLED"/tmp/text75awOz.sma(20) : error 017: undefined symbol "get_user_userid"/tmp/text75awOz.sma(23) : error 017: undefined symbol "get_user_authid"/tmp/text75awOz.sma(24) : error 017: undefined symbol "get_user_authid"/tmp/text75awOz.sma(25) : error 017: undefined symbol "get_user_name"/tmp/text75awOz.sma(26) : error 017: undefined symbol "get_user_name"/tmp/text75awOz.sma(28) : error 017: undefined symbol "log_amx"/tmp/text75awOz.sma(30) : error 017: undefined symbol "str_to_num"/tmp/text75awOz.sma(32) : error 017: undefined symbol "format"/tmp/text75awOz.sma(34) : error 017: undefined symbol "format"/tmp/text75awOz.sma(37) : error 017: undefined symbol "format"/tmp/text75awOz.sma(41) : error 017: undefined symbol "server_cmd"/tmp/text75awOz.sma(43) : error 017: undefined symbol "server_cmd"/tmp/text75awOz.sma(52) : error 017: undefined symbol "get_maxplayers"/tmp/text75awOz.sma(55) : error 017: undefined symbol "is_user_connected"/tmp/text75awOz.sma(57) : error 017: undefined symbol "formatex"/tmp/text75awOz.sma(58) : error 017: undefined symbol "formatex"/tmp/text75awOz.sma(61) : error 017: undefined symbol "formatex"/tmp/text75awOz.sma(65) : error 017: undefined symbol "formatex"

 

 

Kasuta local compilerit.


Love me like you do, lo-lo-love me like you do

Jaga seda postitust


Postituse link
Share on other sites
VIP
Author of the topic Postitas

Mul compiles väga hästi ära aga "jimaway" kuhu ma need seal amxbansis panen?


Less words, more action!

 

Steam: /id/calabria202

https://sarmo.eu/

Jaga seda postitust


Postituse link
Share on other sites

Kommentaari lisamiseks loo konto või logi sisse

Kommenteerimiseks peate olema liige

Loo konto

Liituge meie kommuuni uue kontoga. See on lihtne!

Loo uus konto

Logi sisse

On juba konto? Logi sisse siit.

Logi sisse nüüd

×
×
  • Loo uus...

Oluline informatsioon

Selle veebisaidi paremaks muutmiseks oleme teie seadmesse paigutanud küpsised . Võite kohandada oma küpsiste seadeid , vastasel juhul eeldame, et te olete küpsiste kasutamisega nõus kui jätkate veebisaidil sirvimist.. Palun lugege läbi Kasutustingimused ja Privaatsuspoliitika.