-
Comprar Assassin:
-
Comprar Nemesis
-
Comprar Sniper:
-
Comprar Survivor:
-
cvar's :
******
zp_buy_sniper_assassin_limit 1
zp_buy_sniper_nemesis_limit 1
zp_buy_sniper_sniper_limit 1
zp_buy_sniper_survivor_limit 1
*
Elas ponhe o valor máximo que um jogador pode comprar por round
+
+
Download
http://www.mediafire.com/?y84a4aohmm4aoc1
Comprar Assassin:
-
- Código:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <zombie_plague_advance>
#define PLUGIN "Buy Assassin"
#define VERSION "1.0"
#define AUTHOR "Biel-oGrande"
new g_item_id
new g_item_limit[33]
new g_item_name[] = "Comprar Assassino"
new g_item_cost = 60
new cvar_limit
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
g_item_id = zp_register_extra_item(g_item_name, g_item_cost, ZP_TEAM_HUMAN)
cvar_limit= register_cvar("zp_buy_assassin_limit", "1")
}
public zp_extra_item_selected(id, itemid) {
if(itemid == g_item_id) {
if(zp_has_round_started()) {
client_print(id, print_chat, "Voce nao pode comprar depois da infeccao.")
return ZP_PLUGIN_HANDLED
}
if(g_item_limit[id] >= get_pcvar_num(cvar_limit)) {
client_print(id, print_chat, "Voce soh pode comprar 1 por mapa.")
return ZP_PLUGIN_HANDLED
}
zp_make_user_assassin(id)
g_item_limit[id]++
}
return PLUGIN_HANDLED
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
*/
Comprar Nemesis
-
- Código:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#define PLUGIN "Buy Nemesis"
#define VERSION "1.0"
#define AUTHOR "Biel-oGrande"
new g_item_id
new g_item_limit[33]
new g_item_name[] = "Comprar Nemesis"
new g_item_cost = 60
new cvar_limit
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
g_item_id = zp_register_extra_item(g_item_name, g_item_cost, ZP_TEAM_HUMAN)
cvar_limit= register_cvar("zp_buy_sniper_nemesis", "1")
}
public zp_extra_item_selected(id, itemid) {
if(itemid == g_item_id) {
if(zp_has_round_started()) {
client_print(id, print_chat, "Voce nao pode comprar depois da infeccao.")
return ZP_PLUGIN_HANDLED
}
if(g_item_limit[id] >= get_pcvar_num(cvar_limit)) {
client_print(id, print_chat, "Voce soh pode comprar 1 por mapa.")
return ZP_PLUGIN_HANDLED
}
zp_make_user_nemesis(id)
g_item_limit[id]++
}
return PLUGIN_HANDLED
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
*/
Comprar Sniper:
-
- Código:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <zombie_plague_advance>
#define PLUGIN "Buy Sniper"
#define VERSION "1.0"
#define AUTHOR "Biel-oGrande"
new g_item_id
new g_item_limit[33]
new g_item_name[] = "Comprar Sniper"
new g_item_cost = 60
new cvar_limit
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
g_item_id = zp_register_extra_item(g_item_name, g_item_cost, ZP_TEAM_HUMAN)
cvar_limit= register_cvar("zp_buy_sniper_limit", "1")
}
public zp_extra_item_selected(id, itemid) {
if(itemid == g_item_id) {
if(zp_has_round_started()) {
client_print(id, print_chat, "Voce nao pode comprar depois da infeccao.")
return ZP_PLUGIN_HANDLED
}
if(g_item_limit[id] >= get_pcvar_num(cvar_limit)) {
client_print(id, print_chat, "Voce soh pode comprar 1 por mapa.")
return ZP_PLUGIN_HANDLED
}
zp_make_user_sniper(id)
g_item_limit[id]++
}
return PLUGIN_HANDLED
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
*/
Comprar Survivor:
-
- Código:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#define PLUGIN "Buy Survivor"
#define VERSION "1.0"
#define AUTHOR "Biel-oGrande"
new g_item_id
new g_item_limit[33]
new g_item_name[] = "Comprar Survivor"
new g_item_cost = 60
new cvar_limit
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
g_item_id = zp_register_extra_item(g_item_name, g_item_cost, ZP_TEAM_HUMAN)
cvar_limit= register_cvar("zp_buy_survivor_limit", "1")
}
public zp_extra_item_selected(id, itemid) {
if(itemid == g_item_id) {
if(zp_has_round_started()) {
client_print(id, print_chat, "Voce nao pode comprar depois da infeccao.")
return ZP_PLUGIN_HANDLED
}
if(g_item_limit[id] >= get_pcvar_num(cvar_limit)) {
client_print(id, print_chat, "Voce soh pode comprar 1 por mapa.")
return ZP_PLUGIN_HANDLED
}
zp_make_user_survivor(id)
g_item_limit[id]++
}
return PLUGIN_HANDLED
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
*/
cvar's :
******
zp_buy_sniper_assassin_limit 1
zp_buy_sniper_nemesis_limit 1
zp_buy_sniper_sniper_limit 1
zp_buy_sniper_survivor_limit 1
*
Elas ponhe o valor máximo que um jogador pode comprar por round
+
+
Download
http://www.mediafire.com/?y84a4aohmm4aoc1
Última edição por Biel-oGrande em 7/10/2013, 3:23 am, editado 2 vez(es)