AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Suggestion / Subplugin Request [ZP] Buy Night (https://forums.alliedmods.net/showthread.php?t=186732)

rybka 06-03-2012 05:21

[ZP] Buy Night
 
Zombies can buy Night in Shop for ammo packs.
For example i got at zp_lighting in " d " someone zombie buying this extra item and chaning lighting in " a "
That's a new idea so please help me :D

DeMNiX 06-03-2012 06:57

Re: [ZP] Buy Night
 
Quote:

Originally Posted by rybka (Post 1721924)
Zombies can buy Night in Shop for ammo packs.
For example i got at zp_lighting in " d " someone zombie buying this extra item and chaning lighting in " a "
That's a new idea so please help me :D

PHP Code:

/*
[ru]
Я не стал ломать голову и сделал простой плагин, так что не надо ко мне придираться насчет кода. Да, я знаю, что он прост. Плагин Мульти-язычный. 

[en]
I'm write simple plugin for zp. Just have fun. You can add to it "emit_sound" for more interesting game, if you want. Plugin is multi-lang. 
*/
#include <amxmodx>
#include <zombieplague>

new g_item

public plugin_init()
{
 
register_plugin("Buy night-light""0.1""DeMNiX :p")
 
 
register_dictionary("bnight.txt")

 
g_item zp_register_extra_item("Night-Lighting"20ZP_TEAM_ZOMBIE)
}

public 
zp_extra_item_selected(iditemid)
{
    if(
itemid == g_item)
    {
       
client_print(idprint_center"%L"LANG_PLAYER"GET_ITEM_NIGHT")
       
server_cmd("zp_lighting d")
       
server_cmd("zp_lighting c")
       
server_cmd("zp_lighting b")
       
server_cmd("zp_lighting a")
    }


[ru]
Затем добавьте txt файл с названием "bnight.txt" в папку: addons/amxmodx/data/lang/...
и допишите туда
PHP Code:

[ru]
GET_ITEM_NIGHT = &#1042;ремя меняется...

[en]
GET_ITEM_NIGHT Night Becames 

[en]
Then create new file txt "bnight.txt" in the folder: addons/amxmodx/data/lang/...
write in
PHP Code:

[ru]
GET_ITEM_NIGHT = &#1042;ремя меняется...

[en]
GET_ITEM_NIGHT Night Becames 


jc980 06-03-2012 07:35

Re: [ZP] Buy Night
 
Quote:

server_cmd("zp_lighting d")
server_cmd("zp_lighting c")
server_cmd("zp_lighting b")
server_cmd("zp_lighting a")
wtf? you only need one command.

H.RED.ZONE 06-03-2012 07:59

Re: [ZP] Buy Night
 
Set that on round end light returns to normal.

DeMNiX 06-03-2012 10:13

Re: [ZP] Buy Night
 
Red, thank you. I mistaken.
PHP Code:

/* 
[ru] 
Я не стал ломать голову и сделал простой плагин, так что не надо ко мне придираться насчет кода. Да, я знаю, что он прост. Плагин Мульти-язычный.  

[en] 
I'm write simple plugin for zp. Just have fun. You can add to it "emit_sound" for more interesting game, if you want. Plugin is multi-lang.  
*/ 
#include <amxmodx> 
#include <zombieplague> 

new g_item 

public plugin_init() 

 
register_plugin("Buy night-light""0.1""DeMNiX :p"
 
register_event("HLTV""event_new_round""a""1=0""2=0")
 
 
register_dictionary("bnight.txt"

 
g_item zp_register_extra_item("Night-Lighting"20ZP_TEAM_ZOMBIE


public 
zp_extra_item_selected(iditemid

    if(
itemid == g_item
    {
       
client_print(idprint_center"%L"LANG_PLAYER"GET_ITEM_NIGHT"
       
server_cmd("zp_lighting d"// Why I make dcba? I want to make darkening gradual
       
server_cmd("zp_lighting c"// And jc980 enogh talking arrogantly
       
server_cmd("zp_lighting b"// It is unpleasantly
       
server_cmd("zp_lighting a"
    } 
}  

public 
event_new_round()
{
      
server_cmd("zp_lighting d")



jc980 06-03-2012 10:39

Re: [ZP] Buy Night
 
Dude, it takes 5 secs before light changes.

so why dcba? why not just a.

DeMNiX 06-03-2012 11:29

Re: [ZP] Buy Night
 
5 seconds to change d to c, 5 seconds c to b, 5 seconds b to a.

I already answered. Look in code.

bartek93tbg 06-03-2012 16:12

Re: [ZP] Buy Night
 
It doesn't work like that, just look at the ZP lighting code.

DeMNiX 06-03-2012 20:50

Re: [ZP] Buy Night
 
What you mean?

sunney 06-03-2012 23:56

Re: [ZP] Buy Night
 
Quote:

Originally Posted by DeMNiX (Post 1722392)
What you mean?

i also confused .pardon ?:)


All times are GMT -4. The time now is 06:12.

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