Raised This Month: $ Target: $400
 0% 

[CS:GO/ZP] Zombie Plague Mod 8.3.2


Post New Thread Reply   
 
Thread Tools Display Modes
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 10-21-2015 , 14:49   Re: [CS:GO] Zombie Plague Mod [ZOMBIE CLAWS, INCLUDES, EXTRAITEMS] (20.10.2015)
Reply With Quote #121

This simple example how create extraitem

Quote:
#pragma semicolon 1
#pragma tabsize 0

#include <sourcemod>

#include <sdktools>
#include <sdkhooks>
#include <cstrike>

#include <zombieplague>

public Plugin myinfo =
{
name = "Test ExtraItem",
author = "qubka",
description = "----",
version = "0.1",
url = "----"
}

public void OnMapStart()
{
// Create ExtraItems Buy Command
RegConsoleCmd("buy_good_ak47", AddBUYAK47Function);
}

public Action AddBUYAK47Function(int client, int arg)
{
// If client isn't valid, then stop.
if(!IsPlayerExist(client) || !zp_get_user_buying(client)) // Check if player alive and buy it in the menu
{
// Don't allow to buy
return;
}

// Give item
GivePlayerItem(client, "weapon_ak47");

// Clear history of buying to prevent of buying from client console
zp_set_user_buying(client, false);
}

IF YOU DON'T ADD zp_get_user_buying and zp_set_user_buying player will be allow get item from write command into their console

And after, you opem zp_extraitems.txt and check last item, default it is item_6
therefore you will add new block with "item_7"", and "command" must be same , like in our plagin (buy_good_ak47)

Quote:
"item_7"
{
"name" "Ak47Good"
"itemcost" "1"
"itemlvl" "1"
"itemonline" "1"
"command" "buy_good_ak47"
"zombie" "0"
}
__________________
gubka is offline
Send a message via ICQ to gubka
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 10-21-2015 , 15:04   Re: [CS:GO] Zombie Plague Mod [ZOMBIE CLAWS, INCLUDES, EXTRAITEMS] (20.10.2015)
Reply With Quote #122

What is the advantage of this over zombie reloaded?
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.

Last edited by KissLick; 10-21-2015 at 15:08.
KissLick is offline
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 10-21-2015 , 16:00   Re: [CS:GO] Zombie Plague Mod [ZOMBIE CLAWS, INCLUDES, EXTRAITEMS] (20.10.2015)
Reply With Quote #123

Quote:
Originally Posted by KissLick View Post
What is the advantage of this over zombie reloaded?
Its other mod, i didn't copy zombie reload, i try make zombie plague 4.3 like on CS 1.6, i add ammopack, extraitems, and other staff , which don't exist in zr
__________________
gubka is offline
Send a message via ICQ to gubka
Hunter6272
Senior Member
Join Date: Jun 2015
Location: Don't know
Old 10-22-2015 , 02:24   Re: [CS:GO] Zombie Plague Mod [ZOMBIE CLAWS, INCLUDES, EXTRAITEMS] (20.10.2015)
Reply With Quote #124

Quote:
Originally Posted by gubka View Post
Its other mod, i didn't copy zombie reload, i try make zombie plague 4.3 like on CS 1.6, i add ammopack, extraitems, and other staff , which don't exist in zr
Great job on the extraitems , i have a request... Can you add this https://forums.alliedmods.net/showthread.php?t=159541 plugin in extra items ?
__________________
Patience is the key to success.
Hunter6272 is offline
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 10-22-2015 , 06:00   Re: [CS:GO] Zombie Plague Mod [ZOMBIE CLAWS, INCLUDES, EXTRAITEMS] (20.10.2015)
Reply With Quote #125

Quote:
Originally Posted by Hunter6272 View Post
Great job on the extraitems , i have a request... Can you add this https://forums.alliedmods.net/showthread.php?t=159541 plugin in extra items ?
I will make it later , in the evening
__________________
gubka is offline
Send a message via ICQ to gubka
Ownkruid
Senior Member
Join Date: Nov 2013
Old 10-22-2015 , 08:52   Re: [CS:GO] Zombie Plague Mod [ZOMBIE CLAWS, INCLUDES, EXTRAITEMS] (20.10.2015)
Reply With Quote #126

I run a store on my server, is it possible to disable items for Zombies like hats/trails etc?
__________________




Ownkruid is offline
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 10-22-2015 , 09:51   Re: [CS:GO] Zombie Plague Mod [ZOMBIE CLAWS, INCLUDES, EXTRAITEMS] (20.10.2015)
Reply With Quote #127

Yes , only remove this entities (items) , add this forward , to your plugin, using mod zombieplague.inc

This forward run , when player become zombie
Code:
public zp_user_infected_post( int client, int infector, bool silent )
{

//remove items or whatever
}
Or use this native to prevent buy smt if you zombie, like block command which add hat
Code:
 
if(zp_get_user_zombie(client))
{
return;
}
__________________

Last edited by gubka; 10-22-2015 at 09:56.
gubka is offline
Send a message via ICQ to gubka
Hunter6272
Senior Member
Join Date: Jun 2015
Location: Don't know
Old 10-22-2015 , 13:51   Re: [CS:GO] Zombie Plague Mod [ZOMBIE CLAWS, INCLUDES, EXTRAITEMS] (20.10.2015)
Reply With Quote #128

Quote:
Originally Posted by gubka View Post
I will make it later , in the evening
Thanks in Advance This will give an advantage to zombies against badass campers
__________________
Patience is the key to success.
Hunter6272 is offline
gubka
Veteran Member
Join Date: Jan 2012
Location: Russia
Old 10-22-2015 , 14:43   Re: [CS:GO] Zombie Plague Mod [ZOMBIE CLAWS, INCLUDES, EXTRAITEMS] (20.10.2015)
Reply With Quote #129

Sorry man, i am very drunk, i cant do it, because i need new natives, druring a week i will add new zombie class, and new natives for doing this
__________________
gubka is offline
Send a message via ICQ to gubka
Hunter6272
Senior Member
Join Date: Jun 2015
Location: Don't know
Old 10-22-2015 , 21:38   Re: [CS:GO] Zombie Plague Mod [ZOMBIE CLAWS, INCLUDES, EXTRAITEMS] (20.10.2015)
Reply With Quote #130

I m getting this error
Code:
L 10/23/2015 - 07:06:29: [SM] Displaying call stack trace for plugin "zbm3_core.smx":
L 10/23/2015 - 07:06:29: [SM]   [0]  Line 2209, /home/forums/content/files/1/6/7/2/5/8/149054.attach::IsPlayerExist()
L 10/23/2015 - 07:06:29: [SM]   [1]  Line 2915, /home/forums/content/files/1/6/7/2/5/8/149054.attach::HeBuyCommand()
L 10/23/2015 - 07:06:29: [SM] Native "IsClientConnected" reported: Client index 0 is invalid
L 10/23/2015 - 07:06:29: [SM] Displaying call stack trace for plugin "zbm3_core.smx":
L 10/23/2015 - 07:06:29: [SM]   [0]  Line 2209, /home/forums/content/files/1/6/7/2/5/8/149054.attach::IsPlayerExist()
L 10/23/2015 - 07:06:29: [SM]   [1]  Line 2915, /home/forums/content/files/1/6/7/2/5/8/149054.attach::HeBuyCommand()
L 10/23/2015 - 07:06:29: [SM] Native "IsClientConnected" reported: Client index 0 is invalid
L 10/23/2015 - 07:06:29: [SM] Displaying call stack trace for plugin "zbm3_core.smx":
L 10/23/2015 - 07:06:29: [SM]   [0]  Line 2209, /home/forums/content/files/1/6/7/2/5/8/149054.attach::IsPlayerExist()
L 10/23/2015 - 07:06:29: [SM]   [1]  Line 2915, /home/forums/content/files/1/6/7/2/5/8/149054.attach::HeBuyCommand()
Any ideas ?

And how to turn on Madness,when i become zombie i m unable to access Equipment in the Menu.
__________________
Patience is the key to success.

Last edited by Hunter6272; 10-22-2015 at 22:53.
Hunter6272 is offline
Reply



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 19:23.


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