User
Pass
2FA
 
 

amx_banip cu amx_screen
Go to page 1, 2  Next    
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Fixed issues
Author Message5319
rilley

[Mentally Stable]



Status: Offline
(since 04-10-2008 18:28)
Joined: 07 Oct 2007
Posts: 52, Topics: 11
Location: Root@localhost

Reputation: 91.3
Votes: 4

Post Posted: 08-03-2008, 01:27:59 | Translate post to: ... (Click for more languages)

sal am asa un plugin care cand tastez comanda de mai jos face o poza.. la persoana specificata "nume"
amx_screen nume 1 (adik 1 vine de la nr de poze,)
iar
doresc cand dau amx_banip aka amx_ban .. pe langa comanda acea de ban sa se dea inainte .. comanda de screen ca sa`ii faca poza.. iar apoi sa il dea afara.. va rog sa ma ajutati..

aici e codu de la banIp

Code:

public cmdBanIP(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 player = cmd_target(id, target, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF)
   
   if (!player)
   {
      // why is this here?
      player = cmd_target(id, target, 9);
      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<%d><%s><>^" ban and kick ^"%s<%d><%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")

   new address[32]
   get_user_ip(player, address, 31, 1)

      
   if (reason[0])
      server_cmd("kick #%d ^"%s (%s %s)^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, reason, banned, temp, minutes, address)
   else
         server_cmd("kick #%d ^"%s %s^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, banned, temp, minutes, address)
         
      
   // Display the message to all clients

   new msg[256];
   new len;
   new maxpl = get_maxplayers();
   for (new i = 1; i <= maxpl; 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)
         {
            formatex(msg[len], charsmax(msg) - len, "%L", i, "FOR_MIN", minutes);
         }
         else
         {
            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
}


iar eu am incercat sa bag

Code:

server_cmd("amx_screen #%d 1", userid2)


asa

Code:

if (reason[0])
server_cmd("amx_screen #%d 1", userid2)
      server_cmd("kick #%d ^"%s (%s %s)^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, reason, banned, temp, minutes, address)
   else
server_cmd("amx_screen #%d 1", userid2)
         server_cmd("kick #%d ^"%s %s^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, banned, temp, minutes, address)


dar.. problema e ca comanda o executa dar poza nu o face.. - deci apare screen succesful in consola.. dar poza 0... probabil tre vreun set_task.. dar nu prea ma stiu.. deci va rog care se stie.. shoker sau careva,,, -


Ajuta si vei fi ajutat -
0 0
  
Back to top
View user's profile Send private message
Cybernetyc

[Mentally Stable]



Status: Offline
(since 29-06-2009 08:38)
Joined: 28 Feb 2008
Posts: 44, Topics: 14
Location: Baia Mare

Reputation: 99.2
Votes: 4

 
Post Posted: 08-03-2008, 17:26:24 | Translate post to: ... (Click for more languages)

rilley wrote:
sal am asa un plugin care cand tastez comanda de mai jos face o poza.. la persoana specificata "nume"
amx_screen nume 1 (adik 1 vine de la nr de poze,)
iar
doresc cand dau amx_banip aka amx_ban .. pe langa comanda acea de ban sa se dea inainte .. comanda de screen ca sa`ii faca poza.. iar apoi sa il dea afara.. va rog sa ma ajutati..

aici e codu de la banIp

Code:

public cmdBanIP(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 player = cmd_target(id, target, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF)
   
   if (!player)
   {
      // why is this here?
      player = cmd_target(id, target, 9);
      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<%d><%s><>^" ban and kick ^"%s<%d><%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")

   new address[32]
   get_user_ip(player, address, 31, 1)

      
   if (reason[0])
      server_cmd("kick #%d ^"%s (%s %s)^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, reason, banned, temp, minutes, address)
   else
         server_cmd("kick #%d ^"%s %s^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, banned, temp, minutes, address)
         
      
   // Display the message to all clients

   new msg[256];
   new len;
   new maxpl = get_maxplayers();
   for (new i = 1; i <= maxpl; 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)
         {
            formatex(msg[len], charsmax(msg) - len, "%L", i, "FOR_MIN", minutes);
         }
         else
         {
            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
}


iar eu am incercat sa bag

Code:

server_cmd("amx_screen #%d 1", userid2)


asa

Code:

if (reason[0])
server_cmd("amx_screen #%d 1", userid2)
      server_cmd("kick #%d ^"%s (%s %s)^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, reason, banned, temp, minutes, address)
   else
server_cmd("amx_screen #%d 1", userid2)
         server_cmd("kick #%d ^"%s %s^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, banned, temp, minutes, address)


dar.. problema e ca comanda o executa dar poza nu o face.. - deci apare screen succesful in consola.. dar poza 0... probabil tre vreun set_task.. dar nu prea ma stiu.. deci va rog care se stie.. shoker sau careva,,, -


am patit si eu asa .. si am renuntat ...

OFF Topic ..

ai un plugin de facut poze care sa nu floseasca flagul rcon ?


Cheia e la mine , iti zic io` !
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
rilley

[Mentally Stable]



Status: Offline
(since 04-10-2008 18:28)
Joined: 07 Oct 2007
Posts: 52, Topics: 11
Location: Root@localhost

Reputation: 91.3
Votes: 4

Post Posted: 08-03-2008, 17:33:11 | Translate post to: ... (Click for more languages)

http://forums.alliedmods.net/showthread.php?p=422732

Ajuta si vei fi ajutat -
0 0
  
Back to top
View user's profile Send private message
Cybernetyc

[Mentally Stable]



Status: Offline
(since 29-06-2009 08:38)
Joined: 28 Feb 2008
Posts: 44, Topics: 14
Location: Baia Mare

Reputation: 99.2
Votes: 4

 
Post Posted: 08-03-2008, 19:01:50 | Translate post to: ... (Click for more languages)

rilley wrote:
http://forums.alliedmods.net/showthread.php?p=422732


exact ala il am pe servere .. dar foloseste flagul " L " flagul rcon -


Cheia e la mine , iti zic io` !
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
rilley

[Mentally Stable]



Status: Offline
(since 04-10-2008 18:28)
Joined: 07 Oct 2007
Posts: 52, Topics: 11
Location: Root@localhost

Reputation: 91.3
Votes: 4

Post Posted: 08-03-2008, 22:04:17 | Translate post to: ... (Click for more languages)

pai se poate modifica.. simplu ca bunaziua.. doar zimi pe ce flag vrei..

Ajuta si vei fi ajutat -
0 0
  
Back to top
View user's profile Send private message
Cybernetyc

[Mentally Stable]



Status: Offline
(since 29-06-2009 08:38)
Joined: 28 Feb 2008
Posts: 44, Topics: 14
Location: Baia Mare

Reputation: 99.2
Votes: 4

 
Post Posted: 08-03-2008, 22:08:49 | Translate post to: ... (Click for more languages)

rilley wrote:
pai se poate modifica.. simplu ca bunaziua.. doar zimi pe ce flag vrei..


te rog frumos fal pe flagul " b " sau daca nu poti pe flagul " C "

si daca nu cer prea mult sa ma ivneti si pe mine cum ai facut -


Cheia e la mine , iti zic io` !
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
rilley

[Mentally Stable]



Status: Offline
(since 04-10-2008 18:28)
Joined: 07 Oct 2007
Posts: 52, Topics: 11
Location: Root@localhost

Reputation: 91.3
Votes: 4

Post Posted: 08-03-2008, 22:11:50 | Translate post to: ... (Click for more languages)

ma dar.. nu cere rcon .. pluginu atat cere aces de ban((((amx_banshot","banwithproof",ADMIN_BAN,"))))).. daca tu bagi aces de B adik slot.. cea ce nu e bine.. ca fiecare care are slot poate da ban.. iar daca pui "C" atunci cei cu aces de kick pot da ban...

Ajuta si vei fi ajutat -
0 0
  
Back to top
View user's profile Send private message
Cybernetyc

[Mentally Stable]



Status: Offline
(since 29-06-2009 08:38)
Joined: 28 Feb 2008
Posts: 44, Topics: 14
Location: Baia Mare

Reputation: 99.2
Votes: 4

 
Post Posted: 08-03-2008, 22:13:22 | Translate post to: ... (Click for more languages)

rilley wrote:
ma dar.. nu cere rcon .. pluginu atat cere aces de ban((((amx_banshot","banwithproof",ADMIN_BAN,"))))).. daca tu bagi aces de B adik slot.. cea ce nu e bine.. ca fiecare care are slot poate da ban.. iar daca pui "C" atunci cei cu aces de kick pot da ban...


eu vorbesc de pluginul amx_screen

http://forums.alliedmods.net/showthread.php?p=422732

-


Cheia e la mine , iti zic io` !
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
rilley

[Mentally Stable]



Status: Offline
(since 04-10-2008 18:28)
Joined: 07 Oct 2007
Posts: 52, Topics: 11
Location: Root@localhost

Reputation: 91.3
Votes: 4

Post Posted: 08-03-2008, 22:15:03 | Translate post to: ... (Click for more languages)

aa,.. scz le`am cam incurcat.. .. deci asta cere aces de Imunity ((("amx_screen", "concmd_screen", ADMIN_LEVEL_A)))

si vrei sa pun aces de ban?


Ajuta si vei fi ajutat -
0 0
  
Back to top
View user's profile Send private message
Cybernetyc

[Mentally Stable]



Status: Offline
(since 29-06-2009 08:38)
Joined: 28 Feb 2008
Posts: 44, Topics: 14
Location: Baia Mare

Reputation: 99.2
Votes: 4

 
Post Posted: 08-03-2008, 22:17:18 | Translate post to: ... (Click for more languages)

rilley wrote:
aa,.. scz le`am cam incurcat.. .. deci asta cere aces de Imunity ((("amx_screen", "concmd_screen", ADMIN_LEVEL_A)))

si vrei sa pun aces de ban?


da - te rog frumos -


Cheia e la mine , iti zic io` !
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
rilley

[Mentally Stable]



Status: Offline
(since 04-10-2008 18:28)
Joined: 07 Oct 2007
Posts: 52, Topics: 11
Location: Root@localhost

Reputation: 91.3
Votes: 4

Post Posted: 08-03-2008, 22:19:07 | Translate post to: ... (Click for more languages)

Voilla -


Your Download Link is:
http://www.dump.ro/download.php?id=ZGRjZDBjMGYwOTRjZDgwNzI2ZmQ2ZDY1NjdhMWEwMWI=&&download=true

Your Deletion Link is:
http://www.dump.ro/download.php?id=ZGRjZDBjMGYwOTRjZDgwNzI2ZmQ2ZDY1NjdhMWEwMWI=&&delete=true


dupa ce il iei dai delete:P


Ajuta si vei fi ajutat -
0 0
  
Back to top
View user's profile Send private message
Cybernetyc

[Mentally Stable]



Status: Offline
(since 29-06-2009 08:38)
Joined: 28 Feb 2008
Posts: 44, Topics: 14
Location: Baia Mare

Reputation: 99.2
Votes: 4

 
Post Posted: 08-03-2008, 22:22:20 | Translate post to: ... (Click for more languages)

rilley wrote:
Voilla -


Your Download Link is:
http://www.dump.ro/download.php?id=ZGRjZDBjMGYwOTRjZDgwNzI2ZmQ2ZDY1NjdhMWEwMWI=&&download=true

Your Deletion Link is:
http://www.dump.ro/download.php?id=ZGRjZDBjMGYwOTRjZDgwNzI2ZmQ2ZDY1NjdhMWEwMWI=&&delete=true


dupa ce il iei dai delete:P


iti multumesc mult -


Cheia e la mine , iti zic io` !
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
rilley

[Mentally Stable]



Status: Offline
(since 04-10-2008 18:28)
Joined: 07 Oct 2007
Posts: 52, Topics: 11
Location: Root@localhost

Reputation: 91.3
Votes: 4

Post Posted: 08-03-2008, 22:23:26 | Translate post to: ... (Click for more languages)

cpl -

Ajuta si vei fi ajutat -
0 0
  
Back to top
View user's profile Send private message
Cybernetyc

[Mentally Stable]



Status: Offline
(since 29-06-2009 08:38)
Joined: 28 Feb 2008
Posts: 44, Topics: 14
Location: Baia Mare

Reputation: 99.2
Votes: 4

 
Post Posted: 08-03-2008, 22:24:40 | Translate post to: ... (Click for more languages)

rilley wrote:
cpl -


nu reau sa fiu tzigan .. daca te rog pui sma-ul aici ... vreau sa vad cum ai facut sa invetz si eu -

amx_screen
Nu ai acces la aceasta comanda

nu merge -


BlaDeR: nu mai fa bre dublu post. foloseste functia "edit".


Cheia e la mine , iti zic io` !
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
rilley

[Mentally Stable]



Status: Offline
(since 04-10-2008 18:28)
Joined: 07 Oct 2007
Posts: 52, Topics: 11
Location: Root@localhost

Reputation: 91.3
Votes: 4

Post Posted: 09-03-2008, 21:19:49 | Translate post to: ... (Click for more languages)

re, scuzama de intarziere uite aici deskizi acel sma.. cu un text.. notepad.. etc
si cauti

Quote:

register_concmd("amx_screen", "concmd_screen", ADMIN_


si acolo la ADMIN_ iti va aparea ADMIN_BAN sau fie ce apare tu iti poti schimba punand ADMIN_KICK sau ce flag vrei tu..si apoi salvezi si il compilezi ori de pe situ de la amxmodx.org ori din addons/amxmodx/scripting/


Ajuta si vei fi ajutat -
0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Fixed issues  
Go to page 1, 2  Next    


The time now is 14-12-2024, 07:37:22
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x