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

Can lock fixed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Boshkovski
Senior Member
Join Date: Dec 2019
Old 04-06-2022 , 02:46   Can lock fixed
Reply With Quote #1

Can you a plugin skin example to download a skin and put it on a server but only have players that I want to give them with steam id but my server is biohazard and i have 28 slots give me plugin who can with 28 or more slots
please

Last edited by Boshkovski; 04-07-2022 at 12:03. Reason: wrong
Boshkovski is offline
Boshkovski
Senior Member
Join Date: Dec 2019
Old 04-06-2022 , 04:04   Re: I need skin plugin
Reply With Quote #2

Please help

Last edited by Boshkovski; 04-06-2022 at 05:31.
Boshkovski is offline
Boshkovski
Senior Member
Join Date: Dec 2019
Old 04-06-2022 , 05:36   Problem skin model pls see
Reply With Quote #3

PLEASE

Last edited by Boshkovski; 04-06-2022 at 06:45.
Boshkovski is offline
TribalBlood
Member
Join Date: Oct 2020
Old 04-06-2022 , 08:15   Re: Problem skin model pls see
Reply With Quote #4

Quote:
Originally Posted by Boshkovski View Post
PLEASE
check your private messages.
__________________
My Steam Profile

- Online Rarely -
TribalBlood is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-06-2022 , 10:07   Re: Problem skin model please see!
Reply With Quote #5

Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cs_player_models_api>

new Trie:g_models
new g_playerAuthid[33][64]

forward event_infect(id, infector)
forward zp_user_infected_pre(id, infector)

public plugin_init()
{
	register_plugin("Player Skins", "1.0", "Smite Is Trash Bro")

	RegisterHam(Ham_Spawn, "player", "OnPlayerSpawnPost", 1)
}

public plugin_precache()
{
	g_models = TrieCreate()
	LoadConfig()
}

public plugin_end()
{
	TrieDestroy(g_models)
}

public client_authorized(index)
{
	get_user_authid(index, g_playerAuthid[index], charsmax(g_playerAuthid[]))
}

public OnPlayerSpawnPost(index)
{
	if (!is_user_alive(index) || !(1 <= get_user_team(index) <= 2))
	{
		return
	}

	new model[32]

	if (!TrieGetString(g_models, g_playerAuthid[index], model, charsmax(model)))
	{
		return
	}

	cs_set_player_model(index, model)
}

public event_infect(id)
{
	cs_reset_player_model(id)
}

public zp_user_infected_pre(id)
{
	cs_reset_player_model(id)
}

LoadConfig()
{
	new filename[156]
	get_configsdir(filename, charsmax(filename))
	add(filename, charsmax(filename), "/player_skins.ini")

	new file = fopen(filename, "rb")

	if (!file)
	{
		return
	}

	new buffer[128], authid[64], model[32], len

	while (fgets(file, buffer, charsmax(buffer)))
	{
		trim(buffer)

		switch (buffer[0])
		{
			case 0, ';', '#', '/':
			{
				continue
			}
		}

		if (parse(buffer, authid, charsmax(authid), model, charsmax(model)) < 2)
		{
			continue
		}

		TrieSetString(g_models, authid, model)

		len = formatex(filename, charsmax(filename), "models/player/%s/%s.mdl", model, model)
		precache_generic(filename)

		copy(filename[len - 4], charsmax(filename) - (len - 4), "T.mdl")

		if (file_exists(filename))
		{
			precache_generic(filename)
		}
	}

	fclose(file)
}
Create a file in addons/amxmodx/configs and call it player_skins.ini

File format:
Code:
; <steamid> <model name>
; Example: "STEAM_0:0:0000000" "sas"
Upload the models to cstrike/models/player, inside a folder with the same name as the model.

cs_player_models_api: https://forums.alliedmods.net/showpo...21&postcount=1
__________________









Last edited by CrazY.; 04-06-2022 at 10:08.
CrazY. is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-06-2022 , 11:06   Re: Problem skin model please see!
Reply With Quote #6

When I did search I found many plugins so don't request for existing plugin
https://forums.alliedmods.net/showthread.php?t=106094
https://forums.alliedmods.net/showthread.php?t=21086
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Boshkovski
Senior Member
Join Date: Dec 2019
Old 04-06-2022 , 13:49   Re: Problem skin model please see!
Reply With Quote #7

Look bro i download this plugin
https://forums.alliedmods.net/showthread.php?t=106094
My models https://prnt.sc/HidLkVbCHEIg https://prnt.sc/5acnNeV1IcZz
And player_models.ini https://prnt.sc/Ptqh3vsNLCAN AND DONT WORKK?
Boshkovski is offline
Boshkovski
Senior Member
Join Date: Dec 2019
Old 04-07-2022 , 03:13   Re: Problem skin model please see!
Reply With Quote #8

It works thanks all, can lock
Boshkovski is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-07-2022 , 14:24   Re: Can lock fixed
Reply With Quote #9

So why did you destroy the thread? How is this now helpful to anyone else?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 18:30.


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