Cerere plugin admin models

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Cosmin
Fost moderator
Fost moderator
Posts: 9366
Joined: 06 Jul 2013, 21:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 546 times

28 Dec 2013, 23:45

| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN "Models"
#define VERSION "1.0"
#define AUTHOR "C0sm1N"

#pragma semicolon 1

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	RegisterHam(Ham_Spawn,"player","fwd_spawn",1);
}
public plugin_precache()
{
	precache_model("models/player/adm_stripes_ct/adm_stripes_ct.mdl");
	precache_model("models/player/adm_stripes_te/adm_stripes_te.mdl");
}
public fwd_spawn(id)
{
	if(get_user_flags(id) & ADMIN_KICK && is_user_alive(id))
	{
		if (cs_get_user_team(id) == CS_TEAM_T)
		{
			cs_reset_user_model(id);
			client_cmd(id, "cl_minmodels 0");
			cs_set_user_model(id, "adm_stripes_te");
		}
		else if(cs_get_user_team(id) == CS_TEAM_CT)
		{
			cs_reset_user_model(id);
			client_cmd(id, "cl_minmodels 0");
			cs_set_user_model(id, "adm_stripes_ct");
		}
	}
}
Acum numai arata erori,uitasem ceva si functioneaza 100%
Rapidserver
User avatar
Spank
Membru, skill +2
Membru, skill +2
Posts: 653
Joined: 14 Apr 2010, 13:30
Detinator Steam: Da
Detinator server CS: Clasic.Promns.Ro
SteamID: Danyel11
Location: Sibiu
Has thanked: 62 times
Been thanked: 3 times

29 Dec 2013, 13:09

scosmynnnn, ai un multumesc, merge perfect, T.c
Post Reply

Return to “Cereri”

  • Information