User
Pass
2FA
 
 

Cerere Helper

 
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 -> Trash
Author Message826
sKy #freakz

[Mentally Stable]



Status: Offline
(since 11-02-2015 19:31)
Joined: 18 Jan 2015
Posts: 3, Topics: 2
Location: Romania

Reputation: 31.1
Votes: 1

Post Posted: 19-01-2015, 00:02:39 | Translate post to: ... (Click for more languages)

Nick: sKy
Varsta: 17 ani
Y!M: ionutgenteleman
Experienta in adminat?: Da (am avut server propriu)
Grad dorit: Helper
Ai citit regulamentul?: Desigur
Ore jucate(link gametracker): http://www.gametracker.com/server_info/89.40.233.184:27015/top_players/?query=sKy&Search=Search
Ora/data cand esti dispus sa dai test?: 19.01.2015 / 21:00
Cum se da ban la un player cu numele ~, `, ! etc !?: Se va scrie in chat : /ban ~ sau ` (depinde de nume) "timp" si "motiv" .
in consola ar fi amx_ban / amx_banip / amx_addban etc

Tin sa mentionez ca voi fi activ si pe forum la sectiunea serverului



Last edited by sKy #freakz on 20-01-2015, 21:00:01; edited 2 times in total
0 0
  
Back to top
View user's profile Send private message
cotrutaalex

[GoD of FurieN]



Status: Offline
(since 23-10-2017 15:08)
Joined: 19 Nov 2013
Posts: 829, Topics: 44
Location: Pe Scaun

Reputation: 155.1
Votes: 15

       
Post Posted: 19-01-2015, 08:56:19 | Translate post to: ... (Click for more languages)

, nu stii sa dai ban.


0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
T@l3nT

[Mentally Stable]



Status: Offline
(since 20-02-2015 13:09)
Joined: 26 Dec 2014
Posts: 23, Topics: 7
Location: Romania

Reputation: 33.8
Votes: 1

Post Posted: 19-01-2015, 18:25:06 | Translate post to: ... (Click for more languages)

Contra,nu stii da ban " /ban" what???
0 0
  
Back to top
View user's profile Send private message
sKy #freakz

[Mentally Stable]



Status: Offline
(since 11-02-2015 19:31)
Joined: 18 Jan 2015
Posts: 3, Topics: 2
Location: Romania

Reputation: 31.1
Votes: 1

Post Posted: 19-01-2015, 18:57:13 | Translate post to: ... (Click for more languages)

Da frate, banul asta de da direct din chat daca serverul detine plugin specific pentru asta !
Daca nu are se aplica din consola..am avut server si stiu pluginul, am crezut ca are si serverul asta asa ceva !
Sper ca v-am lamurit cu "/ban"

edit :
Admin Slash se numeste pluginul
Code:
*
*   AMXMOD script.
*   (plugin_slash.sma)
*   by mike_cao <[email protected]>
*   This file is provided as is (no warranties).
*
*   This plugin allows admins to execute amx commands
*   using 'say' and a slash '/'. It can also execute
*   a command on all players or a team using '@all' and
*   '@team' in place of the authid/nick parameter.
*
*   Examples:
*   To kick a player type '/kick playername'
*   To kick all players type '/kick @all'
*   To kick all players on a team type '/kick @team:TEAMID'
*   To ban all players for 10 minutes, type '/ban 10 @all'
*
*   Additional Commands:
*   Includes an IRC style '/me' command. If you say
*   '/me sucks', it'll replace the '/me' with your name
*   and print it to everyone.
*   
*   Includes a '/getteam' command in case you need to find
*   the teamid for a player.
*
*   Important: place this plugin at the bottom of your plugins.ini file so it doesn't interfere with other plugin that may use the '/'.
*
*/

#include <amxmodx>

#define MAX_NAME_LENGTH 32
#define MAX_TEXT_LENGTH 192
#define MAX_PLAYERS 32

public admin_slash(id)
{
   new sName[MAX_NAME_LENGTH+1]
   new sArg[MAX_NAME_LENGTH+1]
   read_argv(1,sArg,MAX_NAME_LENGTH)

   // Check for '/' char
   if ( sArg[0] == '/' ) {
      new sCommand[MAX_TEXT_LENGTH+1]
      new sMessage[MAX_TEXT_LENGTH+1]
      new sTemp[MAX_TEXT_LENGTH+1]

      // Get data
      read_args(sMessage,MAX_TEXT_LENGTH)
      remove_quotes(sMessage)
      replace(sMessage,MAX_TEXT_LENGTH,"/","")
      
      // For all players
      if ( containi(sMessage,"@all") != -1 ) {
         new iPlayers[MAX_PLAYERS], iNumPlayers
         get_players(iPlayers,iNumPlayers)
      
         for (new i = 0; i < iNumPlayers; i++) {
            get_user_name(iPlayers[i],sName,MAX_NAME_LENGTH)
            copy(sTemp,MAX_TEXT_LENGTH,sMessage)
            replace(sTemp,MAX_TEXT_LENGTH,"@all","^"@name^"")
            replace(sTemp,MAX_TEXT_LENGTH,"@name",sName)
            format(sCommand,MAX_TEXT_LENGTH,"amx_%s",sTemp)
            client_cmd(id,sCommand)
         }
         copyc(sCommand,MAX_NAME_LENGTH,sTemp,' ')
         client_print(id,print_chat,"[AMX] Command ^"%s^" executed on all players",sCommand)
      }
      // For a team
      else if ( containi(sMessage,"@team:") != -1 ) {
         new sTeam[MAX_NAME_LENGTH+1]
         new sRemove[MAX_TEXT_LENGTH+1]

         // Get team
         copy(sTemp,MAX_TEXT_LENGTH,sMessage)
         copyc(sRemove,MAX_TEXT_LENGTH,sTemp,'@')
         replace(sTemp,MAX_TEXT_LENGTH,sRemove,"")
         copyc(sTeam,MAX_TEXT_LENGTH,sTemp,' ')
         
         if ( containi(sTeam,"@team:") != -1 ) {
            replace(sMessage,MAX_TEXT_LENGTH,sTeam,"^"@name^"")
            replace(sTeam,MAX_TEXT_LENGTH,"@team:","")

            // Shortcuts for Counter-strike
            if ( equal(sTeam,"T") ) {
               copy(sTeam,MAX_NAME_LENGTH,"TERRORIST")
            }
            else if ( equal(sTeam,"S") ) {
               copy(sTeam,MAX_NAME_LENGTH,"SPECTATOR")
            }
         }
         else {
            client_print(id,print_chat,"[AMX] Team identifier not recognized")
            return PLUGIN_HANDLED
         }
         
         new iPlayers[MAX_PLAYERS], iNumPlayers
         get_players(iPlayers,iNumPlayers,"e",sTeam)

         if ( iNumPlayers ) {
            for (new i = 0; i < iNumPlayers; i++) {
               get_user_name(iPlayers[i],sName,MAX_NAME_LENGTH)
               copy(sTemp,MAX_TEXT_LENGTH,sMessage)
               replace(sTemp,MAX_TEXT_LENGTH,"@name",sName)
               format(sCommand,MAX_TEXT_LENGTH,"amx_%s",sTemp)
               client_cmd(id,sCommand)
            }
            copyc(sCommand,MAX_NAME_LENGTH,sTemp,' ')
            client_print(id,print_chat,"[AMX] Command ^"%s^" executed on team ^"%s^"",sCommand,sTeam)
         }
         else {
            client_print(id,print_chat,"[AMX] There are no players on team ^"%s^"",sTeam)
         }
      }
      else {
         format(sCommand,MAX_TEXT_LENGTH,"amx_%s",sMessage)
         client_cmd(id,sCommand)
      }

      return PLUGIN_HANDLED
   }
   return PLUGIN_CONTINUE
}

public admin_me(id)
{
   new sName[MAX_NAME_LENGTH+1]
   new sMessage[MAX_TEXT_LENGTH+1]
   
   // Get data
   get_user_name(id,sName,MAX_NAME_LENGTH)
   read_args(sMessage,MAX_TEXT_LENGTH)
   remove_quotes(sMessage)

   // Display message only to same status players
   new bAlive = is_user_alive(id)
   for (new i = 1; i <= MAX_PLAYERS; i++) {
      if(is_user_alive(i) == bAlive) {
         client_print(i,print_chat,"%s %s",sName,sMessage)
      }
   }
   return PLUGIN_HANDLED
}

public admin_getteam(id)
{
   // Check arguments
   if (read_argc() < 2) {
      client_print(id, print_console,"[AMX] Usage: amx_getteam < authid | part of name >")
      return PLUGIN_HANDLED
   }
   
   // Find target player
   new arg[MAX_NAME_LENGTH+1]
   read_argv(1,arg,MAX_NAME_LENGTH)
   new player = find_player("c",arg)
   if (!player) player = find_player("bl",arg)
   
   // Player checks
   if (player)   {
      new sName[MAX_NAME_LENGTH+1]
      new sTeam[MAX_NAME_LENGTH]
      get_user_name(player,sName,MAX_NAME_LENGTH)
      get_user_team(player,sTeam,MAX_NAME_LENGTH);
      client_print(id,print_chat,"[AMX] %s's team is ^"%s^"",sName,sTeam)
   }
   else {
      client_print(id,print_console,"[AMX] Client with that authid or part of name not found")
   }
   return PLUGIN_HANDLED
}

public plugin_init()
{
   register_plugin("Admin Slash","1.1","mike_cao")
   register_clcmd("say","admin_slash",0,"say /command < params >")
   register_clcmd("amx_me","admin_me",0,"amx_me < text >")
   register_clcmd("amx_getteam","admin_getteam",0,"amx_getteam < authid | part of nick >")
   return PLUGIN_CONTINUE
}

0 0
  
Back to top
View user's profile Send private message
DiamondProfesional

[Mentally Stable]



Status: Offline
(since 21-03-2015 12:45)
Joined: 31 Dec 2014
Posts: 10, Topics: 3
Location: Romania

Reputation: 30.4
Votes: 1

Post Posted: 19-01-2015, 20:35:30 | Translate post to: ... (Click for more languages)

PRO ! -
1 0
  
Back to top
View user's profile Send private message
Tud0R

[Mentally Stable]



Status: Offline
(since 19-06-2019 12:25)
Joined: 14 Dec 2014
Posts: 80, Topics: 21
Location: Alba Iulia

Reputation: -37.3
Votes: 5

 
Post Posted: 20-01-2015, 20:28:42 | Translate post to: ... (Click for more languages)

Pro,esti sincer.
Imi place de tine.



1 0
  
Back to top
View user's profile Send private message
Afoo

[NarCoTiC]



Status: Offline
(since 28-02-2018 16:25)
Joined: 10 Sep 2013
Posts: 1950, Topics: 83
Location: Pe-aici, pe-acolo,langa tine chiar acum

Reputation: 420.7
Votes: 205

     
Post Posted: 22-01-2015, 09:34:14 | Translate post to: ... (Click for more languages)

Acceptat!
Contacteaza-ma pe mn sau pe dany ori pe alin sa dai testul.



0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by Afoo, 22 January 2015 07:34



 
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 -> Trash  


The time now is 13-01-2025, 07:19:01
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password