Serwery wiaderko.com Zwiń / Rozwiń kategorię

HashJama [TP] 193.33.176.148:27015 | tp.wiaderko.com status serwera HashJama [TP] połącz

HashJama CS:GO [DM] 193.33.176.53:27015 | dm.wiaderko.com status serwera HashJama CS:GO [DM] połącz

HashJama CS:GO [FFA] 193.33.176.15:27015 | ffa.wiaderko.com status serwera HashJama CS:GO FFA [FFA] połącz

HashJama [TeamSpeak 3] 62.210.99.220:9987 | ts.wiaderko.com status serwera HashJama [TP ELITE] 62.210.99.220:27015 połącz

SPONSOR:
pukawka.pl

Nabór na JUNIOR ADMINA forum - Więcej informacji > Klik <
Pokaż wyniki od 1 do 8 z 8
  1. #1
    Lamka Awatar bolek007
    Dołączył
    Jul 2009
    Posty
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Przerobienie Pluginu

    Witam
    Moglby mi ktos przerobic ten plugin zeby po zrobieniu screenshotow graczowi gracz zostal zbanowany permanentnie na ip z powodem "Wrzuc screeny na ..."
    a nie przniesiony na specta :)

    Oto Plugin :

    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>

    new player
    new ip[32]
    new finish;

    new maxscreens //max nr of ss to a player
    new screeninterval //interval between 2 ss
    new design //visual stuff
    new site //the site/forum where a user can post ther pics to be unbanned

    public plugin_init()
    {
    register_plugin("Ultimate SS", "1.2", "Hack")

    register_concmd("amx_ss", "concmd_screen", ADMIN_LEVEL_A, "<authid, nick or #userid> <screens>")
    register_clcmd("say /ip", "show_ip")

    maxscreens = register_cvar("amx_ss_max", "5")
    screeninterval = register_cvar("amx_ss_interval", "1.0")
    design = register_cvar("amx_ss_design", "3")
    site = register_cvar("amx_ss_site","www.google.ro")
    }

    public concmd_screen(id, level, cid)
    {
    if(!cmd_access(id, level, cid, 3)) //if the one who requests an ss isnt admin exit
    {
    return PLUGIN_HANDLED
    }

    new arg1[24], arg2[4]
    read_argv(1, arg1, 23)
    read_argv(2, arg2, 3)

    new screens = str_to_num(arg2)
    new maxss = get_pcvar_num(maxscreens)

    if(screens > maxss) //too many ss?
    {
    console_print(id, "[SS]Prea multe poze!")

    return PLUGIN_HANDLED
    }

    player = cmd_target(id, arg1, 1)
    if (!player) //the player has exited the sv or he didnt existed
    {
    return PLUGIN_HANDLED
    }
    finish = screens

    new Float:interval = get_pcvar_float(screeninterval) //a set_task for each "amx_ss nickname nr_of_ss"
    new array[2]
    array[0] = id //save usefull data in a vector so it can be reused
    array[1] = player
    set_task(interval, "ss_propriuzis", 0, array,2, "a", screens)

    return PLUGIN_HANDLED
    }

    public ss_propriuzis(array[2])
    {
    //take data and set them accordingly
    new player = array[1]
    new id = array[0]

    //save time,adminname,playername so that the player cant give us other ss's and because it LOOKS COOOL!
    new timestamp[32], timestampmsg[128], name[32], adminname[32]
    get_time("%m/%d/%Y - %H:%M:%S", timestamp, 31)
    get_user_name(player, name, 31)
    get_user_name(id, adminname, 31)
    get_user_ip(player, ip, 31)

    //Clasic Design
    if(get_pcvar_num(design) == 0)
    {
    client_print(player, print_chat, "** Screenshot taken on player ^"%s^" by adminl ^"%s^" **", name, adminname)
    client_cmd(player, "snapshot") //ss
    }
    //Doar Playerului
    else if(get_pcvar_num(design) == 1)
    {
    client_print(player, print_chat, "** Screenshot taken on player ^"%s^" by admin ^"%s^" (%s) **", name, adminname, timestamp)
    client_cmd(player, "snapshot") //ss
    }
    //HUD Message doar Playerului
    else if(get_pcvar_num(design) == 2)
    {
    set_hudmessage(player, 255, 0, -1.0, 0.3, 0, 0.25, 1.0, 0.0, 0.0, 4)
    format(timestampmsg, 127, "** TIME: - %s **", timestamp)
    show_hudmessage(player, timestampmsg)

    client_cmd(player, "snapshot") //ss
    }
    //Full
    else if(get_pcvar_num(design) == 3)
    {
    //HUD Timestamp Message
    set_hudmessage(player, 255, 0, -1.0, 0.3, 0, 0.25, 1.0, 0.0, 0.0, 4)
    format(timestampmsg, 127, "** PLAYER %s TIME: - %s **",name,timestamp)
    show_hudmessage(player, timestampmsg)

    client_print(0, print_chat, "** Screenshot taken on player ^"%s^" by admin ^"%s^" (%s) **", name, adminname, timestamp)

    client_cmd(player, "snapshot") //ss
    }
    console_print(id, "[SS]%s 's ip is %s!",name,ip)
    console_print(id, "[SS]%s 's ip is %s!",name,ip)
    console_print(id, "[SS]%s 's ip is %s!",name,ip)
    finish = finish - 1;

    if(finish == 0)
    {
    client_cmd(player, "kill")
    cs_set_user_teaclient_cmd(player, "kill")
    cs_set_user_team(player,CS_TEAM_SPECTATOR);
    new forum[51];
    get_pcvar_string(site,forum,50)
    client_print(player, print_chat, "Post your screenshots on %s for unban", forum)
    }

    return PLUGIN_CONTINUE;
    }

    public show_ip(id)
    {
    console_print(id, "[SS]Last Stored IP: %s!",ip)
    }
    Nie znam sie :p ale chyba to wystarczy zmienic


    client_cmd(player, "kill")
    cs_set_user_teaclient_cmd(player, "kill")
    cs_set_user_team(player,CS_TEAM_SPECTATOR);
    new forum[51];
    get_pcvar_string(site,forum,50)
    client_print(player, print_chat, "Post your screenshots on %s for
    Porsze o Pomoc:)

  2. #2
    Adminus pospolitus Awatar naven
    Dołączył
    Jan 2008
    Wiek
    27
    Posty
    10,802
    Thanks
    31
    Thanked 652 Times in 605 Posts

    Domyślnie Odp: Przerobienie Pluginu

    masz amxbans/minibans czy zwykłe?
    Najlepszy hosting Hidden Content href="Hidden Content target="_blank">tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na Hidden Content

    "At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

  3. #3
    Lamka Awatar bolek007
    Dołączył
    Jul 2009
    Posty
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Odp: Przerobienie Pluginu

    Mam minibans ale nia pamietam juz jaka wersje oO

  4. #4
    Adminus pospolitus Awatar naven
    Dołączył
    Jan 2008
    Wiek
    27
    Posty
    10,802
    Thanks
    31
    Thanked 652 Times in 605 Posts

    Domyślnie Odp: Przerobienie Pluginu

    Podaj mi jak się tym banuje bo nie kojarzę za bardzo
    amx_ban ....
    Najlepszy hosting Hidden Content href="Hidden Content target="_blank">tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na Hidden Content

    "At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

  5. #5
    Lamka Awatar bolek007
    Dołączył
    Jul 2009
    Posty
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Odp: Przerobienie Pluginu

    Oj to wez na zwyklym aby zeby na ip banowalo

  6. #6
    Lamka Awatar bolek007
    Dołączył
    Jul 2009
    Posty
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domyślnie Odp: Przerobienie Pluginu

    To co zrobi ktos??

  7. #7
    Adminus pospolitus Awatar naven
    Dołączył
    Jan 2008
    Wiek
    27
    Posty
    10,802
    Thanks
    31
    Thanked 652 Times in 605 Posts

    Domyślnie Odp: Przerobienie Pluginu

    Spróbuj:
    Kod:
    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>
    
    new player
    new ip[32]
    new finish;
    
    new maxscreens  //max nr of ss to a player
    new screeninterval  //interval between 2 ss
    new design  //visual stuff
    new site  //the site/forum where a user can post ther pics to be unbanned
    
    public plugin_init() 
    { 
    	register_plugin("Ultimate SS", "1.2", "Hack")
    	
    	register_concmd("amx_ss", "concmd_screen", ADMIN_LEVEL_A, "<authid, nick or #userid> <screens>")
    	register_clcmd("say /ip", "show_ip")
    	
    	maxscreens = register_cvar("amx_ss_max", "5")
    	screeninterval = register_cvar("amx_ss_interval", "1.0")
    	design = register_cvar("amx_ss_design", "3")
    	site = register_cvar("amx_ss_site","cs-wies.eu")
    }
    
    public concmd_screen(id, level, cid)
    {
    	if(!cmd_access(id, level, cid, 3))   //if the one who requests an ss isnt admin exit
    	{
    		return PLUGIN_HANDLED
    	}
    	
    	new arg1[24], arg2[4]
    	read_argv(1, arg1, 23)
    	read_argv(2, arg2, 3)
    	
    	new screens = str_to_num(arg2)
    	new maxss = get_pcvar_num(maxscreens)
    	
    	if(screens > maxss)   //too many ss?
    	{
    		console_print(id, "[SS]Prea multe poze!")
    		
    		return PLUGIN_HANDLED
    	}
    	
    	player = cmd_target(id, arg1, 1) 
    	if (!player)   //the player has exited the sv or he didnt existed
    	{
    		return PLUGIN_HANDLED
    	}
    	finish = screens
    	
    	new Float:interval = get_pcvar_float(screeninterval)	//a set_task for each "amx_ss nickname nr_of_ss"
    	new array[2]
    	array[0] = id //save usefull data in a vector so it can be reused
    	array[1] = player
    	set_task(interval, "ss_propriuzis", 0, array,2, "a", screens)
            
    	return PLUGIN_HANDLED
    }
     
    public ss_propriuzis(array[2])
    {
    	//take data and set them accordingly
    	new player = array[1]
    	new id = array[0]
    	
    	//save time,adminname,playername so that the player cant give us other ss's and because it LOOKS COOOL!
    	new timestamp[32], timestampmsg[128], name[32], adminname[32]
    	get_time("%m/%d/%Y - %H:%M:%S", timestamp, 31)
    	get_user_name(player, name, 31)
    	get_user_name(id, adminname, 31)
    	get_user_ip(player, ip, 31)
    	        
    	//Clasic Design
    	if(get_pcvar_num(design) == 0)
    	{
    		client_print(player, print_chat, "** Screenshot taken on player ^"%s^" by adminl ^"%s^" **", name, adminname)
    		client_cmd(player, "snapshot") //ss
    	}
    	//Doar Playerului
    	else if(get_pcvar_num(design) == 1)
    	{
    		client_print(player, print_chat, "** Screenshot taken on player ^"%s^" by admin ^"%s^" (%s) **", name, adminname, timestamp)
    		client_cmd(player, "snapshot") //ss
    	}
    	//HUD Message doar Playerului
    	else if(get_pcvar_num(design) == 2)
    	{
    		set_hudmessage(player, 255, 0, -1.0, 0.3, 0, 0.25, 1.0, 0.0, 0.0, 4)
    		format(timestampmsg, 127, "** TIME: - %s **", timestamp)
    		show_hudmessage(player, timestampmsg)
    		
    		client_cmd(player, "snapshot")  //ss
    	}
    	//Full
    	else if(get_pcvar_num(design) == 3)
    	{
    		//HUD Timestamp Message
    		set_hudmessage(player, 255, 0, -1.0, 0.3, 0, 0.25, 1.0, 0.0, 0.0, 4)
    		format(timestampmsg, 127, "** PLAYER %s TIME: - %s **",name,timestamp)
    		show_hudmessage(player, timestampmsg)
    	    
    		client_print(0, print_chat, "** Screenshot taken on player ^"%s^" by admin ^"%s^" (%s) **", name, adminname, timestamp)
    		
    		client_cmd(player, "snapshot") //ss
    	}
    	console_print(id, "[SS]%s 's ip is %s!",name,ip)
    	console_print(id, "[SS]%s 's ip is %s!",name,ip)
    	console_print(id, "[SS]%s 's ip is %s!",name,ip)
    	finish = finish - 1;
    	
    	if(finish == 0)
    	{
    		client_cmd(player, "kill")
    		cs_set_user_team(player,CS_TEAM_SPECTATOR);
    		new forum[51];
    		get_pcvar_string(site,forum,50)
    		client_print(player, print_chat, "Post your screenshots on %s for unban", forum)
    		server_cmd("amx_banip ^"s^" 0 ^"Daj screeny na naszym forum %s^"", name, forum)
    	}
    	
    	return PLUGIN_CONTINUE;
    }
    
    public show_ip(id)
    {
    	console_print(id, "[SS]Last Stored IP: %s!",ip)
    }
    Najlepszy hosting Hidden Content href="Hidden Content target="_blank">tutaj
    Konfiguracja amxx, instalacja pluginów, pisanie pluginów AMXX. Więcej info na Hidden Content

    "At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.

  8. #8
    Tata Neo i Taza Awatar seba
    Dołączył
    Jun 2007
    Wiek
    12
    Posty
    12,293
    Thanks
    7
    Thanked 662 Times in 376 Posts

    Domyślnie Odp: Przerobienie Pluginu

    Kod php:
    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>

    new player
    new ip[32]
    new 
    finish;

    new 
    maxscreens //max nr of ss to a player
    new screeninterval //interval between 2 ss
    new design //visual stuff
    new site //the site/forum where a user can post ther pics to be unbanned

    public plugin_init()
    {
        
    register_plugin("Ultimate SS""1.2""Hack")
        
        
    register_concmd("amx_ss""concmd_screen"ADMIN_LEVEL_A"<authid, nick or #userid> <screens>")
        
    register_clcmd("say /ip""show_ip")
        
        
    maxscreens register_cvar("amx_ss_max""5")
        
    screeninterval register_cvar("amx_ss_interval""1.0")
        
    design register_cvar("amx_ss_design""3")
        
    site register_cvar("amx_ss_site","www.google.ro")
    }

    public 
    concmd_screen(idlevelcid)
    {
        if(!
    cmd_access(idlevelcid3)) //if the one who requests an ss isnt admin exit
        
    {
            return 
    PLUGIN_HANDLED
        
    }
        
        new 
    arg1[24], arg2[4]
        
    read_argv(1arg123)
        
    read_argv(2arg23)
        
        new 
    screens str_to_num(arg2)
        new 
    maxss get_pcvar_num(maxscreens)
        
        if(
    screens maxss//too many ss?
        
    {
            
    console_print(id"[SS]Prea multe poze!")
            
            return 
    PLUGIN_HANDLED
        
    }
        
        
    player cmd_target(idarg11)
        if (!
    player//the player has exited the sv or he didnt existed
        
    {
            return 
    PLUGIN_HANDLED
        
    }
        
    finish screens
        
        
    new Float:interval get_pcvar_float(screeninterval//a set_task for each "amx_ss nickname nr_of_ss"
        
    new array[2]
        array[
    0] = id //save usefull data in a vector so it can be reused
        
    array[1] = player
        set_task
    (interval"ss_propriuzis"0, array,2"a"screens)
        
        return 
    PLUGIN_HANDLED
    }

    public 
    ss_propriuzis(array[2])
    {
        
    //take data and set them accordingly
        
    new player = array[1]
        new 
    id = array[0]
        
        
    //save time,adminname,playername so that the player cant give us other ss's and because it LOOKS COOOL!
        
    new timestamp[32], timestampmsg[128], name[32], adminname[32]
        
    get_time("%m/%d/%Y - %H:%M:%S"timestamp31)
        
    get_user_name(playername31)
        
    get_user_name(idadminname31)
        
    get_user_ip(playerip31)
        
        
    //Clasic Design
        
    if(get_pcvar_num(design) == 0)
        {
            
    client_print(playerprint_chat"** Screenshot taken on player ^"%s^" by adminl ^"%s^" **"nameadminname)
            
    client_cmd(player"snapshot"//ss
        
    }
        
    //Doar Playerului
        
    else if(get_pcvar_num(design) == 1)
        {
            
    client_print(playerprint_chat"** Screenshot taken on player ^"%s^" by admin ^"%s^" (%s) **"nameadminnametimestamp)
            
    client_cmd(player"snapshot"//ss
        
    }
        
    //HUD Message doar Playerului
        
    else if(get_pcvar_num(design) == 2)
        {
            
    set_hudmessage(player2550, -1.00.300.251.00.00.04)
            
    format(timestampmsg127"** TIME: - %s **"timestamp)
            
    show_hudmessage(playertimestampmsg)
            
            
    client_cmd(player"snapshot"//ss
        
    }
        
    //Full
        
    else if(get_pcvar_num(design) == 3)
        {
            
    //HUD Timestamp Message
            
    set_hudmessage(player2550, -1.00.300.251.00.00.04)
            
    format(timestampmsg127"** PLAYER %s TIME: - %s **",name,timestamp)
            
    show_hudmessage(playertimestampmsg)
            
            
    client_print(0print_chat"** Screenshot taken on player ^"%s^" by admin ^"%s^" (%s) **"nameadminnametimestamp)
            
            
    client_cmd(player"snapshot"//ss
        
    }
        
    console_print(id"[SS]%s 's ip is %s!",name,ip)
        
    console_print(id"[SS]%s 's ip is %s!",name,ip)
        
    console_print(id"[SS]%s 's ip is %s!",name,ip)
        
    finish finish 1;
        
        if(
    finish == 0)
        {    
            static 
    forum[51], message[128], ip[16]
            
    get_pcvar_string(site,forum,50)    
            
            
    get_user_ip(playerip151)
            
            
    formatex(message127"Wrzuc screenshoty na^n%s^nw celu odbanowania"forum)
            
    message_begin(MSG_ONE2, {0,0,0}, player)
            
    write_string(message)
            
    message_end()
            
            
    server_cmd("addip 0 %s"ip)
        }
        
        return 
    PLUGIN_CONTINUE;
    }

    public 
    show_ip(id)
    {
        
    console_print(id"[SS]Last Stored IP: %s!",ip)


Podobne wątki

  1. Przerobienie pluginu VIP
    By tYsU^ in forum Pisanie pluginów AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 28-01-2011, 12:15
  2. Prośba o przerobienie pluginu
    By $Mok3r in forum Pisanie pluginów AMXX
    Odpowiedzi: 0
    Ostatni post / autor: 17-01-2011, 04:00
  3. Prośba o przerobienie pluginu
    By mateuszszwaba in forum Pisanie pluginów AMXX
    Odpowiedzi: 2
    Ostatni post / autor: 23-12-2010, 11:18
  4. Przerobienie pluginu
    By #T-Pain in forum Pisanie pluginów AMXX
    Odpowiedzi: 2
    Ostatni post / autor: 14-12-2010, 18:38
  5. Przerobienie pluginu
    By Kub@S in forum Problemy i konfiguracja AMXX
    Odpowiedzi: 4
    Ostatni post / autor: 29-07-2010, 10:17
  6. [Przerobienie] prośba o przerobienie pluginu na non steam
    By Nindża in forum Pisanie pluginów AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 04-07-2010, 22:11
  7. Prośba o przerobienie pluginu
    By Spyrek in forum Pisanie pluginów AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 23-06-2010, 17:18
  8. Przerobienie PLUGINU
    By ToToro_ in forum Pisanie pluginów AMXX
    Odpowiedzi: 4
    Ostatni post / autor: 08-06-2010, 18:26
  9. Przerobienie pluginu HP
    By krzysiekgame in forum Pisanie pluginów AMXX
    Odpowiedzi: 8
    Ostatni post / autor: 27-07-2009, 20:14
  10. Przerobienie pluginu
    By Bongos1 in forum Szukam pluginu AMX/AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 21-05-2008, 13:16

Odwiedzający poszukiwali:

Nikt jeszcze nie odwiedził tej strony poprzez wyszukiwarki

Uprawnienia umieszczania postów

  • Nie możesz zakładać nowych tematów
  • Nie możesz pisać wiadomości
  • Nie możesz dodawać załączników
  • Nie możesz edytować swoich postów
  •