Raised This Month: $32 Target: $400
 8% 

[CS:GO, ZR] Custom arms (finally fixed) (updated 19/1/2019)


Post New Thread Reply   
 
Thread Tools Display Modes
BGKoKoOo
Member
Join Date: Mar 2012
Old 03-25-2015 , 09:33   Re: [CS:GO, ZR] Custom Zombie Arms
Reply With Quote #11

Thank you so much Franc1sco
__________________

BGKoKoOo is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 03-27-2015 , 08:58   Re: [CS:GO, ZR] Custom Zombie Arms
Reply With Quote #12

I added another custom arms models (although not as good as the first models posted) in the first post. You can download it here
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 03-27-2015 at 09:03.
Franc1sco is offline
Send a message via MSN to Franc1sco
BGKoKoOo
Member
Join Date: Mar 2012
Old 03-29-2015 , 20:27   Re: [CS:GO, ZR] Custom Zombie Arms
Reply With Quote #13

@Franc1sco changed the arms models with this http://s-low.net/forum/viewtopic.php...7f92b37b4b20b2
but arms are invisible.

Code:
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <zombiereloaded>
#include <cstrike>

public Plugin:myinfo =
{
	name = "ZR Custom CS:GO Arms",
	author = "Franc1sco franug",
	description = "",
	version = "3.0 other",
	url = "http://www.zeuszombie.com"
};

new String:manos[MAXPLAYERS+1][128];

public OnPluginStart() 
{
	//array_manos = CreateArray();
	HookEvent("item_pickup", OnItemPickup);
	HookEvent("player_spawn", OnSpawn);
	
	HookEvent("round_start", Event_Round_End);
	HookEvent("round_end", Event_Round_End);
	
	for(new i = 1; i <= MaxClients; i++)
		if(IsClientInGame(i)) OnClientPutInServer(i);
}

public OnClientPutInServer(client)
{
	Format(manos[client], 128, "models/weapons/ct_arms_gign.mdl");
}

public OnMapStart()
{
	PrecacheModel("models/weapons/ct_arms_gign.mdl");
	
	AddFileToDownloadsTable("models/player/custom/zombiearms/zclaws.vvd");
	AddFileToDownloadsTable("models/player/custom/zombiearms/zclaws.mdl");
	AddFileToDownloadsTable("models/player/custom/zombiearms/zclaws.dx90.vtx");


	AddFileToDownloadsTable("materials/models/player/custom/zombiearms/zombie_fp.vmt");
	AddFileToDownloadsTable("materials/models/player/custom/zombiearms/zombie_fp.vtf");
	AddFileToDownloadsTable("materials/models/player/custom/zombiearms/zombie_fp_nm.vtf");
	AddFileToDownloadsTable("materials/models/player/custom/zombiearms/zombie_fp2.vmt");

	PrecacheModel("models/player/custom/zombiearms/zclaws.mdl");
}

public Action:OnItemPickup(Handle:event, const String:name[], bool:dontBroadcast) 
{
	decl String:sWeapon[64];
	GetEventString(event, "item", sWeapon, sizeof(sWeapon));
	if (StrEqual(sWeapon, "knife", false)) 
	{
		new client = GetClientOfUserId(GetEventInt(event, "userid"));
		
		new iWeapon = GetPlayerWeaponSlot(client, CS_SLOT_KNIFE);
		if (iWeapon != -1) 
		{
			if(ZR_IsClientZombie(client)) 
			{
				SetEntPropString(client, Prop_Send, "m_szArmsModel", "models/player/custom/zombiearms/zclaws.mdl");
			}
			else
			{
				ManosHumanas(client);
			}
		}
	}

	return Plugin_Continue;
} 

public Action:OnSpawn(Handle:event, const String:name[], bool:dontBroadcast) 
{
	new client = GetClientOfUserId(GetEventInt(event, "userid"));
	if(ZR_IsClientHuman(client))
	{
		GetEntPropString(client, Prop_Send, "m_szArmsModel", manos[client], 64);
	}
}

public Action:Event_Round_End(Handle:event, const String:name[], bool:dontBroadcast)
{
 	for (new i = 1; i < MaxClients; i++)
		if(IsClientInGame(i) && IsPlayerAlive(i))
		{
			ManosHumanas(i);
			if(GetClientTeam(i) == CS_TEAM_T)
			{
				CS_SwitchTeam(i, CS_TEAM_CT);
				CS_SwitchTeam(i, CS_TEAM_T);
			}
		}
}

ManosHumanas(client)
{
	SetEntPropString(client, Prop_Send, "m_szArmsModel", manos[client]);
}
Can you help me to fix it.
__________________

BGKoKoOo is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 03-29-2015 , 20:52   Re: [CS:GO, ZR] Custom Zombie Arms
Reply With Quote #14

@BGKoKoOo simply that arms not are compatible with my plugin
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 03-29-2015 at 20:52.
Franc1sco is offline
Send a message via MSN to Franc1sco
e54385991
AlliedModders Donor
Join Date: Aug 2013
Old 03-30-2015 , 02:36   Re: [CS:GO, ZR] Custom Zombie Arms
Reply With Quote #15

normal version




PHP Code:
public OnMapStart()
{
    
PrecacheModel("models/weapons/ct_arms_gign.mdl");
    
    
AddFileToDownloadsTable("models/player/bbs_93x_net/zombie/zm_arms_normal.dx90.vtx");
    
AddFileToDownloadsTable("models/player/bbs_93x_net/zombie/zm_arms_normal.mdl");
    
AddFileToDownloadsTable("models/player/bbs_93x_net/zombie/zm_arms_normal.vvd");


    
AddFileToDownloadsTable("materials/models/player/bbs_93x_net/zombie/hand/zombie_fp.vmt");
    
AddFileToDownloadsTable("materials/models/player/bbs_93x_net/zombie/hand/zombie_fp.vtf");
    
AddFileToDownloadsTable("materials/models/player/bbs_93x_net/zombie/hand/zombie_fp_nm.vtf");
    
AddFileToDownloadsTable("materials/models/player/bbs_93x_net/zombie/hand/zombie_fp2.vmt");
    
PrecacheModel("models/player/bbs_93x_net/zombie/zm_arms_normal.mdl");


PHP Code:
            if(ZR_IsClientZombie(client)) 
            {
                
SetEntPropString(clientProp_Send"m_szArmsModel""models/player/bbs_93x_net/zombie/zm_arms_normal.mdl");
            } 
Attached Images
File Type: jpg 112.jpg (65.4 KB, 2373 views)
Attached Files
File Type: zip zmarms.zip (1.61 MB, 674 views)

Last edited by e54385991; 03-30-2015 at 03:03.
e54385991 is offline
Send a message via ICQ to e54385991
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 03-30-2015 , 08:15   Re: [CS:GO, ZR] Custom Zombie Arms
Reply With Quote #16

@e54385991 nice work
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
BGKoKoOo
Member
Join Date: Mar 2012
Old 03-31-2015 , 10:23   Re: [CS:GO, ZR] Custom Zombie Arms
Reply With Quote #17

Quote:
Originally Posted by e54385991 View Post
normal version




PHP Code:
public OnMapStart()
{
    
PrecacheModel("models/weapons/ct_arms_gign.mdl");
    
    
AddFileToDownloadsTable("models/player/bbs_93x_net/zombie/zm_arms_normal.dx90.vtx");
    
AddFileToDownloadsTable("models/player/bbs_93x_net/zombie/zm_arms_normal.mdl");
    
AddFileToDownloadsTable("models/player/bbs_93x_net/zombie/zm_arms_normal.vvd");


    
AddFileToDownloadsTable("materials/models/player/bbs_93x_net/zombie/hand/zombie_fp.vmt");
    
AddFileToDownloadsTable("materials/models/player/bbs_93x_net/zombie/hand/zombie_fp.vtf");
    
AddFileToDownloadsTable("materials/models/player/bbs_93x_net/zombie/hand/zombie_fp_nm.vtf");
    
AddFileToDownloadsTable("materials/models/player/bbs_93x_net/zombie/hand/zombie_fp2.vmt");
    
PrecacheModel("models/player/bbs_93x_net/zombie/zm_arms_normal.mdl");


PHP Code:
            if(ZR_IsClientZombie(client)) 
            {
                
SetEntPropString(clientProp_Send"m_szArmsModel""models/player/bbs_93x_net/zombie/zm_arms_normal.mdl");
            } 
Thank you.
__________________

BGKoKoOo is offline
last_hope
Senior Member
Join Date: Dec 2011
Old 04-03-2015 , 15:33   Re: [CS:GO, ZR] Custom Zombie Arms
Reply With Quote #18

What if I don't wanna see knife, just hands? Anyone can do this? I've tryed, but got a knife upon freezed hands...

Me try another plugin, that works, but few of frame it show me knife, that anoying...

So, anyone helps?
__________________
last_hope is offline
Send a message via ICQ to last_hope
poel
Veteran Member
Join Date: Mar 2013
Old 04-09-2015 , 20:58   Re: [CS:GO, ZR] Custom Zombie Arms
Reply With Quote #19

Is it possible to fix it ? Human T still have zombie claws sometimes..

Ty
poel is offline
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 04-10-2015 , 01:13   Re: [CS:GO, ZR] Custom Zombie Arms
Reply With Quote #20

Plugin works fine, just how I need to hide knife, because I'm not using zombie reloaded.?

Last edited by iGANGNAM; 04-10-2015 at 01:29.
iGANGNAM 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:08.


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