←  Szukam pluginu

AMXX.pl: Support AMX Mod X i SourceMod

»

Broń - Tylko Nóż...

Zablokowany

  • +
  • -
Kraft - zdjęcie Kraft 28.07.2009

Proszę o pomoc w poszukiwaniu pluginu...


Poszukiwany plugin: Tylko nóż na respie
Za co odpowiada? TT & CT dostają na respie tylko nóż ! Inną broń można podnieść znajdując na mapie...

Bardzo proszę o pomoc w zamian Pomógł..

Pozdrawiam
Odpowiedz

  • +
  • -
Kraft - zdjęcie Kraft 28.07.2009

Nie działa...

Mam restmenu.amx on and admin.amx on

Mam plik w configs/maps/nazwa.cfg

mam amx_restrict on usp

a i tak ct dostaje usp na respie..


Mam amx 1.8.1 :)


Więc czemu nie działa?
Odpowiedz

  • +
  • -
zer0. - zdjęcie zer0. 28.07.2009

/* AMX Mod script.

*

* Knife Arena

*

* amx_knives 1 - restricts weapons to knives

* 0 - enables all weapons

*

* NOTE: Plugin adminvote from AMX 0.9.x required!!!

*/



#include <amxmodx>

#include <amxmisc>



new bool:KnifeEnabled

new option[2]



public amx_enableknife(id,level,cid) {

if (!cmd_access(id,level,cid,1))

return PLUGIN_HANDLED



new arg1[4]

read_argv(1,arg1,3)



new cAdmin[32], cAuthid[32]

get_user_name(id, cAdmin, 31)

get_user_authid(id, cAuthid, 31)

if (equal(arg1,"1")||equali(arg1,"on")){

KnifeEnabled = true

}

else if (equal(arg1,"0")||equali(arg1,"off")){

KnifeEnabled = false

}

else {

console_print(id,"Knives Only Mode is %s",KnifeEnabled ? "enabled" : "disabled")

return PLUGIN_HANDLED

}

log_amx("<%s><%s> has turned %s Knife Only", cAdmin, cAuthid, KnifeEnabled ? "on" : "off")

console_print(id,"Knives Only Mode %s",KnifeEnabled ? "enabled" : "disabled")

client_print(0,print_center,"Knives Only Mode Has Been %s!",KnifeEnabled ? "Enabled" : "Disabled")



new Players[32]

new playerCount, i

get_players(Players, playerCount, "b")

for (i=0; i<playerCount; i++)

{

engclient_cmd(Players[i],"weapon_knife")

}



set_hudmessage(0, 100, 0, 0.05, 0.65, 2, 0.02, 10.0, 0.01, 0.1, 2)

show_hudmessage(0,KnifeEnabled ? "Knives Only Allowed" : "All Guns Allowed" )

return PLUGIN_HANDLED

}



public switchweapon(id)

{

if(KnifeEnabled)

engclient_cmd(id,"weapon_knife")

}



new votepistols[] = "yAMX %s Knives Only Mode?w^n^n1. Yes^n2. No"



public vote_knives(id){

new Float:voting = get_cvar_float("amx_last_voting")

if (voting > get_gametime()){

client_print(id,print_chat,"* There is already one voting...")

return PLUGIN_HANDLED

}

if (voting && voting + get_cvar_float("amx_vote_delay") > get_gametime()) {

client_print(id,print_chat,"* Voting not allowed at this time...")

return PLUGIN_HANDLED

}

new menu_msg[256]

format(menu_msg,255,votepistols,KnifeEnabled ? "Disable" : "Enable")

new Float:vote_time = get_cvar_float("amx_vote_time") + 2.0

set_cvar_float("amx_last_voting", get_gametime() + vote_time )

show_menu(0,(1<<0)|(1<<1),menu_msg,floatround(vote_time))

set_task(vote_time,"check_votes")

client_print(0,print_chat,"* Voting has started...")

log_amx("Players activated Knife Only.")

option[0]=option[1]=0

return PLUGIN_HANDLED

}



public vote_count(id,key){

if ( get_cvar_float("amx_vote_answers") ) {

new name[32]

get_user_name(id,name,31)

client_print(0,print_chat,"* %s voted %s", name, key ? "against" : "for" )

}

++option[key]

return PLUGIN_HANDLED

}



public check_votes(id){

if (option[0] > option[1]){

server_cmd( "amx_knives %s", KnifeEnabled ? "off" : "on" )

client_print(0,print_chat,"* Voting successful (yes ^"%d^") (no ^"%d^").",option[0],option[1])

}

else{

client_print(0,print_chat,"* Voting failed (yes ^"%d^") (no ^"%d^").",option[0],option[1])

}

return PLUGIN_CONTINUE

}



public plugin_init() {

register_plugin("Knife Arena","0.9","tcquest78")

register_event("CurWeapon","switchweapon","be","1=1","2!29")

register_concmd("amx_knives","amx_enableknife",ADMIN_LEVEL_B,"<1|0> - knives only mode")

register_clcmd("say /voteknives","vote_knives",0,"- start voting session for knives only mode")

register_menucmd(register_menuid("Knives Only Mode?"),(1<<0)|(1<<1),"vote_count")

return PLUGIN_CONTINUE

}
Odpowiedz

  • +
  • -
Kraft - zdjęcie Kraft 28.07.2009

Skompilowany i dodany ale nie działa...


Powiem jeszcze tyle ze to serwer jail i mapy jail....


@EDIT: A moze jakas komenda albo cvary do tego?
Odpowiedz

  • +
  • -
Kraft - zdjęcie Kraft 28.07.2009

Wczesniejszy nie dziala...


A z AlienModa nie chce bo to bedzie blokowac podnoszenie innych broni.. a podnoszenie broni musi byc on :)
Odpowiedz

  • +
  • -
mgr inż. Pavulon - zdjęcie mgr inż. Pavulon 28.07.2009

Kraft, spróbuj tego z załącznika.
Na ile mi się dało samemu sprawdzić na tyle działa.

Usuwa wszystkie bronie z poprzedniej rundy, usuwa bronie dawane przez mapę (np. scoutzknivez) oraz podnoszone czy wyciągnięte bronie przez czas określony cvar'em amx_knifeonly_time lub mp_freezetime w przypadku gdy poprzedni cvar jest równy 0.0 (standardowo)

Załączone pliki

Odpowiedz

  • +
  • -
Kraft - zdjęcie Kraft 28.07.2009

Dzięki... Zajebi... Jestes Wielki +


No i pomogl dla Zero bo się podjal tego...
Odpowiedz
Zablokowany