Raised This Month: $12 Target: $400
 3% 

Suggestion / Subplugin Request [ZP] Buy Night


Post New Thread Reply   
 
Thread Tools Display Modes
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 06-06-2012 , 10:25   Re: [ZP] Buy Night
Reply With Quote #21

Quote:
Originally Posted by DeMNiX View Post
Impossible.
For that you can use FM_AddToFullPack if im not wrong.
__________________
H.RED.ZONE is offline
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 06-06-2012 , 10:28   Re: [ZP] Buy Night
Reply With Quote #22

Quote:
Originally Posted by H.RED.ZONE View Post
For that you can use FM_AddToFullPack if im not wrong.
Can u try make it
__________________
naSTR is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 06-06-2012 , 10:33   Re: [ZP] Buy Night
Reply With Quote #23

Quote:
Originally Posted by naSTR View Post
Can u try make it
I used only once FM_AddToFullPack not shure if i know need to learn to fully use it, will try it.
__________________
H.RED.ZONE is offline
rybka
Member
Join Date: Dec 2011
Old 06-06-2012 , 11:36   Re: [ZP] Buy Night
Reply With Quote #24

But i'm few edited this code and making a new mean.

Code:
#include <amxmodx> 
#include <amxmisc>
#include <fun>
#include <zombieplague> 
#include <colorchat>

new g_item 

new name[64];

new const sound_night[] = { "warcraft3/carrionswarmlaunch1.wav" }

public plugin_init() 
{ 
 register_plugin("Buy night-light", "0.1", "DeMNiX :p") 
 register_event("HLTV", "event_new_round", "a", "1=0", "2=0")
 
 g_item = zp_register_extra_item("Night Zombies", 20, ZP_TEAM_ZOMBIE)
} 

public plugin_precache()
{
	precache_sound(sound_night)
}

public zp_extra_item_selected(id, itemid) 
{ 
    if(itemid == g_item) 
    {
		get_user_name(id,name,63)
		ColorChat(0,GREEN,"[ZP]^x01 Player %s bought night!",name)
		client_cmd(id, "spk %s", sound_night)
		server_cmd("zp_lighting a") 
    } 
}  

public event_new_round()
{
      server_cmd("zp_lighting b")
}
Uploaded because myebe needed someone the better version =)
rybka is offline
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 06-07-2012 , 04:12   Re: [ZP] Buy Night
Reply With Quote #25

Ok, I see. Added your name in athours and change number of version.
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc
DeMNiX is offline
myusername
Senior Member
Join Date: Aug 2012
Old 12-31-2012 , 09:37   Re: [ZP] Buy Night
Reply With Quote #26

Quote:
Originally Posted by naSTR View Post
Can somebody make night in only one player not the whole server?
__________________
Rest in piece.
myusername is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:52.


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