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

<csgo>plugin help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DragosVI
Junior Member
Join Date: May 2019
Location: Romania
Old 05-18-2019 , 15:15   <csgo>plugin help
Reply With Quote #1

#include <freeday>

public OnFreeDay()
{
HookEvent("player_FreeDay", OnFreeday);
}

public OnFreeDay()
{
AddFileToDownloadsTable("materials/models/player/prisoner/prisoner/eye_d.vmt");
AddFileToDownloadsTable("materials/models/player/prisoner/prisoner_lt_bottom_d.vmt");
AddFileToDownloadsTable("materials/models/player/prisoner/prisoner_lt_head_d.vmt");
AddFileToDownloadsTable("materials/models/player/prisoner/prisoner_lt_top_d.vmt");
AddFileToDownloadsTable("materials/models/player/prisoner/prisoners_torso_d.vmt");
AddFileToDownloadsTable("materials/models/player/prisoner/prisoner/eye_d.vtf");
AddFileToDownloadsTable("materials/models/player/prisoner/prisoner_lt_bottom_d.vtf");
AddFileToDownloadsTable("materials/models/player/prisoner/prisoner_lt_bottom_normal.vtf");
AddFileToDownloadsTable("materials/models/player/prisoner/prisoner_lt_head_d.vtf");
AddFileToDownloadsTable("materials/models/player/prisoner/prisoner_lt_head_normal.vtf");
AddFileToDownloadsTable("materials/models/player/prisoner/prisoner_lt_top_d.vtf");
AddFileToDownloadsTable("materials/models/player/prisoner/prisoner_lt_top_normal.vtf");
AddFileToDownloadsTable("materials/prisoner/prisoners_torso_d.vtf");
AddFileToDownloadsTable("models/player/prisoner/prisoner.dx90.vtx");
AddFileToDownloadsTable("models/player/prisoner/prisoner.mdl");
AddFileToDownloadsTable("models/player/prisoner/prisoner.phy");
AddFileToDownloadsTable("models/player/prisoner/prisoner.vvd");
AddFileToDownloadsTable("models/player/prisoner/prisoner_arms.dx90.vtx");
AddFileToDownloadsTable("models/player/prisoner/prisoner_arms.mdl");
AddFileToDownloadsTable("models/player/prisoner/prisoner_arms.vvd");
PrecacheModel("models/player/prisoner/prisoner.mdl");

PrecacheModel("models/player/prisoner/prisoner_arms.mdl");
public OnFreeDay(Handle:event, const String:name[], bool:dontBroadcast)

{
new client = GetClientOfUserId(GetEventInt(event, "FreeDay"));
if( client > 0 && IsClientInGame(client) && IsFreeDay(client) ) {
if ( GetClientTeam(client) == 2 ) {
SetEntityModel(client, "models/player/prisoner/prisoner.mdl");
SetEntPropString(client, Prop_Send, "m_szArmsModel", "models/player/prisoner/prisoner_arms.mdl"); // ???? ??????? ?????? ??????,
}




I do not know how to make plugins very well
THIS IS MODEL:http://www.mediafire.com/file/of16bp...x/Prisoner.zip
HELP ME PLZZZ
DragosVI is offline
DragosVI
Junior Member
Join Date: May 2019
Location: Romania
Old 02-12-2020 , 13:38   Re: <csgo>plugin help
Reply With Quote #2

solved
DragosVI 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 18:25.


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