Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Ultimate SS zmiana flagi


  • Zamknięty Temat jest zamknięty
6 odpowiedzi w tym temacie

#1 Wujek

    Wszechwidzący

  • Użytkownik

Reputacja: 14
Początkujący

  • Postów:279
Offline

Napisano 24.05.2009 20:08

Ktoś może przerobić mi ten plugin tak, aby działał tylko z flaga "o" (admin_level_C).
Po po prostu zmienie to na początku, to ani na a, ani na c nie działa. :/
//Corrected by SzaKaaL - no mercy for cheaters
#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, "**Ekstra foteczka zrobiona ^"%s^" przez ^"%s^" (%s) **",name, adminname)

client_cmd(player, "net_graph 3") //Blokata metody z wysylaniem screenow z demka
client_cmd(player, "r_norefresh 1") //zatrzymanie odświeżania.
client_cmd(player, "snapshot") //ss
client_cmd(player, "r_norefresh 0") //odblokowanie odświeżania
}
//Doar Playerului
else if(get_pcvar_num(design) == 1)
{
client_print(player, print_chat, "**Ekstra foteczka zrobiona ^"%s^" przez ^"%s^" (%s) **",name, adminname, timestamp)

client_cmd(player, "net_graph 3") //Blokata metody z wysylaniem screenow z demka
client_cmd(player, "r_norefresh 1") //zatrzymanie odświeżania.
client_cmd(player, "snapshot") //ss
client_cmd(player, "r_norefresh 0") //odblokowanie odświeżania
}
//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, "** Czas: - %s **", timestamp)
show_hudmessage(player, timestampmsg)

client_cmd(player, "net_graph 3") //Blokata metody z wysylaniem screenow z demka
client_cmd(player, "r_norefresh 1") //zatrzymanie odświeżania.
client_cmd(player, "snapshot") //ss
client_cmd(player, "r_norefresh 0") //odblokowanie odświeżania
}
//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, "** Gracz %s Czas: - %s **",name,timestamp)
show_hudmessage(player, timestampmsg)

client_print(0, print_chat, "**Ekstra foteczka zrobiona ^"%s^" przez ^"%s^" (%s) **", name, adminname, timestamp)

client_cmd(player, "net_graph 3") //Blokata metody z wysylaniem screenow z demka
client_cmd(player, "r_norefresh 1") //zatrzymanie odświeżania.
client_cmd(player, "snapshot") //ss
client_cmd(player, "r_norefresh 0") //odblokowanie odświeżania
}
console_print(id, "[SS]%s 's ip to %s!",name,ip)
console_print(id, "[SS]%s 's ip to %s!",name,ip)
console_print(id, "[SS]%s 's ip to %s!",name,ip)
finish = finish - 1;

if(finish == 0)
{
new forum[51];
get_pcvar_string(site,forum,50)
client_print(player, print_chat, "Wrzuc zrobione teraz screeny na %s wciagu 10 min aby zostac odbanowanym..", forum)
}

return PLUGIN_CONTINUE;
}

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

  • +
  • -
  • 0

Reksio FFA, najstarszy serwer CS 1.6 w Polsce - 193.33.177.14:27051

SRU :)


#2 TiTu$

    Czempion

  • Użytkownik

Reputacja: 139
Zaawansowany

  • Postów:817
  • GG:
  • Lokalizacja:Rzeszów
Offline

Napisano 24.05.2009 20:16

//Corrected by SzaKaaL - no mercy for cheaters

#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_C, "<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, "**Ekstra foteczka zrobiona ^"%s^" przez ^"%s^" (%s) **",name, adminname)



client_cmd(player, "net_graph 3") //Blokata metody z wysylaniem screenow z demka

client_cmd(player, "r_norefresh 1") //zatrzymanie odświeżania.

client_cmd(player, "snapshot") //ss

client_cmd(player, "r_norefresh 0") //odblokowanie odświeżania

}

//Doar Playerului

else if(get_pcvar_num(design) == 1)

{

client_print(player, print_chat, "**Ekstra foteczka zrobiona ^"%s^" przez ^"%s^" (%s) **",name, adminname, timestamp)



client_cmd(player, "net_graph 3") //Blokata metody z wysylaniem screenow z demka

client_cmd(player, "r_norefresh 1") //zatrzymanie odświeżania.

client_cmd(player, "snapshot") //ss

client_cmd(player, "r_norefresh 0") //odblokowanie odświeżania

}

//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, "** Czas: - %s **", timestamp)

show_hudmessage(player, timestampmsg)



client_cmd(player, "net_graph 3") //Blokata metody z wysylaniem screenow z demka

client_cmd(player, "r_norefresh 1") //zatrzymanie odświeżania.

client_cmd(player, "snapshot") //ss

client_cmd(player, "r_norefresh 0") //odblokowanie odświeżania

}

//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, "** Gracz %s Czas: - %s **",name,timestamp)

show_hudmessage(player, timestampmsg)



client_print(0, print_chat, "**Ekstra foteczka zrobiona ^"%s^" przez ^"%s^" (%s) **", name, adminname, timestamp)



client_cmd(player, "net_graph 3") //Blokata metody z wysylaniem screenow z demka

client_cmd(player, "r_norefresh 1") //zatrzymanie odświeżania.

client_cmd(player, "snapshot") //ss

client_cmd(player, "r_norefresh 0") //odblokowanie odświeżania

}

console_print(id, "[SS]%s 's ip to %s!",name,ip)

console_print(id, "[SS]%s 's ip to %s!",name,ip)

console_print(id, "[SS]%s 's ip to %s!",name,ip)

finish = finish - 1;



if(finish == 0)

{

new forum[51];

get_pcvar_string(site,forum,50)

client_print(player, print_chat, "Wrzuc zrobione teraz screeny na %s wciagu 10 min aby zostac odbanowanym..", forum)

}



return PLUGIN_CONTINUE;

}



public show_ip(id)

{

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

}

  • +
  • -
  • 0

#3 Wujek

    Wszechwidzący

  • Autor tematu
  • Użytkownik

Reputacja: 14
Początkujący

  • Postów:279
Offline

Napisano 24.05.2009 20:22

Daje adminowi flagę "o", i mimo wszystko po wpisaniu "amx_ss" nie może jej uzyć.
Np. "hrc" "haslo" "cdoj" "a" po wpisaniu amx_ss pokazuje ze nie moze uzyc tej komendy
  • +
  • -
  • 0

Reksio FFA, najstarszy serwer CS 1.6 w Polsce - 193.33.177.14:27051

SRU :)


#4 TiTu$

    Czempion

  • Użytkownik

Reputacja: 139
Zaawansowany

  • Postów:817
  • GG:
  • Lokalizacja:Rzeszów
Offline

Napisano 24.05.2009 20:34

A komplikujesz? CZy tylko zmieniasz w sma ? ;>
  • +
  • -
  • 0

#5 Wujek

    Wszechwidzący

  • Autor tematu
  • Użytkownik

Reputacja: 14
Początkujący

  • Postów:279
Offline

Napisano 24.05.2009 20:36

Masz mnie za debila? Kompiluje, wrzucam plik .amxx do plugins dopisuje do plugin.ini cvary do amxx.cfg restartuje serwer i d*pa.
Sma nie wrzucam do scripting.
  • +
  • -
  • 0

Reksio FFA, najstarszy serwer CS 1.6 w Polsce - 193.33.177.14:27051

SRU :)


#6 Miczu

    Godlike

  • Przyjaciel

Reputacja: 657
Wszechmogący

  • Postów:2 862
Offline

Napisano 24.05.2009 20:50

Wujek, tylko ze w tym sma jest tylko jedno miejscie w ktorym jest info jaka flaga jest sprawdzania i w tym miejscu zmienil, a zgodnie z funcwiki:

#define ADMIN_LEVEL_C 16384 //Flag "o", custom

Zmienil na ta flage co chciales ;>
  • +
  • -
  • 0

#7 Wujek

    Wszechwidzący

  • Autor tematu
  • Użytkownik

Reputacja: 14
Początkujący

  • Postów:279
Offline

Napisano 24.05.2009 21:29

Ale daje adminą te flage, i nie działa.
Co zrobić?
  • +
  • -
  • 0

Reksio FFA, najstarszy serwer CS 1.6 w Polsce - 193.33.177.14:27051

SRU :)





Użytkownicy przeglądający ten temat: 1

0 użytkowników, 1 gości, 0 anonimowych