AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Trash (https://forums.alliedmods.net/forumdisplay.php?f=22)
-   -   [ZP] Addon: First Zombie Bonus Menu. (https://forums.alliedmods.net/showthread.php?t=158556)

fl0werD 06-06-2011 06:04

[ZP] Addon: First Zombie Bonus Menu.
 
1 Attachment(s)
Автор: [WPMG]fl0wer
Версия: 0.1

[Description]
Quote:

- When did you first become a zombie is a menu with the option to buy Nemesis.
[Making]
Quote:

Color Chat.
When buying, the message in the chat.
If you do not have enough ammo packs then wrote: "Sorry. Not enough Ammo packs."
[Settings]
Code:

#define NEMESIS_COST // Cost Nemesis.
[Change Log]
Quote:

- 0.1 First Released
- 0.2 Now the menu is the cost of Nemesis.
[DownLoad]
Attachment 87095
CopyRight (c) [WPMG]fl0wer

dias 06-06-2011 07:44

Re: [ZP] Addon: First Zombie Bonus Menu.
 
Cool :up:

fl0werD 06-06-2011 08:47

Re: [ZP] Addon: First Zombie Bonus Menu.
 
Quote:

Originally Posted by dias (Post 1482311)
Cool

Thanks.

dias 06-06-2011 10:23

Re: [ZP] Addon: First Zombie Bonus Menu.
 
added your thread to "A New Plugins List"...

Dolph_Ziggler 06-06-2011 11:13

Re: [ZP] Addon: First Zombie Bonus Menu.
 
niceee can you make it with buy assassin also please :) ??

GuTo 06-06-2011 12:23

Re: [ZP] Addon: First Zombie Bonus Menu.
 
nicee plugin

34384339 06-07-2011 01:37

Re: [ZP] Addon: First Zombie Bonus Menu.
 
Good Job ..Thx ..

Gam3ronE 06-08-2011 12:35

Re: [ZP] Addon: First Zombie Bonus Menu.
 
Good job thank you for sharing.

DSASDFGH 08-15-2011 16:25

Re: [ZP] Addon: First Zombie Bonus Menu.
 
PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#define KEYSMENU  MENU_KEY_1 | MENU_KEY_2
#define NEMESIS_COST 25
public plugin_init()
{
 
register_plugin("[ZP] Addon: First Zombie Bonus Menu""0.1""WPMG Team")
 
register_menu("Buy Nemesis?"KEYSMENU"menu_handler")
}
public 
zp_round_started(gamemodeid)
{
 if(
gamemode != MODE_INFECTION)
  return 
PLUGIN_HANDLED
 
if(zp_get_user_first_zombie(id))
 {
  new 
menu[256]
  
formatex(menucharsmax(menu), "\y네메시스를 구입하시겠습니까? \r가격: %d 탄약팩.^n^n\r1. \w%s^n\r2. \w아니오."NEMESIS_COSTzp_get_user_ammo_packs(id) > NEMESIS_COST "\w예." "\d아니오.")
  
show_menu(idKEYSMENUmenu, -1"Buy Nemesis?")
 }
 return 
PLUGIN_CONTINUE
}
public 
menu_handler(idkey)
{
 
key++
 switch(
key)
 {
  case 
1:
  {
   if(
zp_get_user_ammo_packs(id) > NEMESIS_COST)
   {
    
zp_set_user_ammo_packs(idzp_get_user_ammo_packs(id) - NEMESIS_COST)
    
zp_make_user_nemesis(id)
    
client_printcolor(id"^4[ZP] ^1네메시스를 구입했습니다.")
   }
   else
   {
    
client_printcolor(id"^4[ZP] ^1탄약팩이 부족합니다.")
   }
  }
 }
 return 
PLUGIN_HANDLED
}
stock client_printcolor(const id, const input[], any:...)
{
 new 
iCount 1iPlayers[32]
 static 
szMsg[191]
 
vformat(szMsgcharsmax(szMsg), input3)
 
replace_all(szMsg190"/g""^4")
 
replace_all(szMsg190"/y""^1")
 
replace_all(szMsg190"/ctr""^3")
 
replace_all(szMsg190"/w""^0")
 if(
idiPlayers[0] = id
 
else get_players(iPlayersiCount"ch")
 for (new 
0iCounti++)
 {
  if(
is_user_connected(iPlayers[i]))
  {
   
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _iPlayers[i])
   
write_byte(iPlayers[i])
   
write_string(szMsg)
   
message_end()
  }
 }


This is korean version ^^ you should save it with UTF-8

albert123 08-16-2011 02:05

Re: [ZP] Addon: First Zombie Bonus Menu.
 
LOL... Really imba @@


All times are GMT -4. The time now is 16:15.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.