Plugin caciuli craciun.

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 .
User avatar
KronoS eXtream
Fost administrator
Fost administrator
Posts: 4380
Joined: 02 Apr 2009, 18:18
Detinator Steam: Da
Reputatie: Fost administrator
Fost detinator Zombie-Land.eXtream.Ro
Contribuitor
Fost Scripter eXtreamCS
Dezvoltator al listei de seriozitate eXtreamCS
Location: Bucharest
Has thanked: 543 times
Been thanked: 820 times
Contact:

23 Dec 2013, 17:14

A gresit cu ceva.Vezi acum:
| Afiseaza codul
#include <amxmodx>
#include <fun>
#include <cstrike>

#define VIP_LEVEL	ADMIN_LEVEL_H
#define ADMIN_LEVEL	ADMIN_KICK

#define is_vip(%1)	(get_user_flags(id) & VIP_LEVEL)
#define is_admin(%1)	(get_user_flags(id) & ADMIN_LEVEL)

#define PLUGIN "Caciulite"
#define AUTOR "GhosT"

new const caciuli_ct[] = "caciuli_ct"
new const caciuli_te[] = "caciuli_te"

public plugin_precache()
{
	precache_model("models/player/caciuli_ct/caciuli_ct.mdl")
	precache_model("models/player/caciuli_te/caciuli_te.mdl")
}
public client_putinserver(id)
{
	if(is_vip(id) && is_admin(id))
	{
		if(is_user_alive(id))
		{
			if(get_user_team(id) == 1)
			{
				cs_set_user_model(id, caciuli_te)
			}
			else if(get_user_team(id) == 2)
			{
				cs_set_user_model(id, caciuli_ct)
			}
		}
	}
}
public plugin_init()	register_plugin(PLUGIN, "1.0", AUTOR)
Nu efectuez tranzactii pe mess, skype etc. Aveti grija la indivizii care se dau drept mine!
Nu mai ofer suport asa ca nu imi mai trimiteti mesaje in legatura cu asta!


Zombie Plague Shade 1.2-debug1 [with Item Limiter] (12 September 2015) - Bombardier Branch
Rapidserver
User avatar
Virussikaa
Membru, skill 0
Membru, skill 0
Posts: 53
Joined: 26 Sep 2013, 19:48
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 7 times
Contact:

23 Dec 2013, 19:57

KronoS # GG wrote:A gresit cu ceva.Vezi acum:
| Afiseaza codul
#include <amxmodx>
#include <fun>
#include <cstrike>

#define VIP_LEVEL	ADMIN_LEVEL_H
#define ADMIN_LEVEL	ADMIN_KICK

#define is_vip(%1)	(get_user_flags(id) & VIP_LEVEL)
#define is_admin(%1)	(get_user_flags(id) & ADMIN_LEVEL)

#define PLUGIN "Caciulite"
#define AUTOR "GhosT"

new const caciuli_ct[] = "caciuli_ct"
new const caciuli_te[] = "caciuli_te"

public plugin_precache()
{
	precache_model("models/player/caciuli_ct/caciuli_ct.mdl")
	precache_model("models/player/caciuli_te/caciuli_te.mdl")
}
public client_putinserver(id)
{
	if(is_vip(id) && is_admin(id))
	{
		if(is_user_alive(id))
		{
			if(get_user_team(id) == 1)
			{
				cs_set_user_model(id, caciuli_te)
			}
			else if(get_user_team(id) == 2)
			{
				cs_set_user_model(id, caciuli_ct)
			}
		}
	}
}
public plugin_init()	register_plugin(PLUGIN, "1.0", AUTOR)
Tot asa, cade serverul..
Image
User avatar
KronoS eXtream
Fost administrator
Fost administrator
Posts: 4380
Joined: 02 Apr 2009, 18:18
Detinator Steam: Da
Reputatie: Fost administrator
Fost detinator Zombie-Land.eXtream.Ro
Contribuitor
Fost Scripter eXtreamCS
Dezvoltator al listei de seriozitate eXtreamCS
Location: Bucharest
Has thanked: 543 times
Been thanked: 820 times
Contact:

24 Dec 2013, 10:23

Acum am vazut ca folosea functia de setare a modelului unui jucator, e si normal sa pice...
| Afiseaza codul
#include < amxmodx > 
#include < fakemeta > 

#define VIP_LEVEL	ADMIN_LEVEL_H
#define ADMIN_LEVEL	ADMIN_KICK

new const MODEL[ ] = "models/santa_hat.mdl";

public plugin_precache( )
{
	precache_model( MODEL );
}

public plugin_init( )
{
	new const VERSION[ ] = "1.3";
	
	register_plugin( "Santa Hat", VERSION, "xPaw" );
	
	set_pcvar_string( register_cvar( "santa_hat", VERSION, FCVAR_SERVER ), VERSION );
	
	if( !get_pcvar_num( register_cvar( "amx_santahat", "1" ) ) )
	{
		return;
	}
	
	new iEntity,
		iMaxPlayers = get_maxplayers( ),
		iInfoTarget = engfunc( EngFunc_AllocString, "info_target" );
	
	for( new id = 1; id <= iMaxPlayers; id++ )
	{
		if ( get_user_flags( id ) & VIP_LEVEL || get_user_flags( id ) & ADMIN_LEVEL )
		{
			iEntity = engfunc( EngFunc_CreateNamedEntity, iInfoTarget );
		
			if( pev_valid( iEntity ) )
			{
				engfunc( EngFunc_SetModel, iEntity, MODEL );
				set_pev( iEntity, pev_movetype, MOVETYPE_FOLLOW );
				set_pev( iEntity, pev_aiment, id );
				set_pev( iEntity, pev_owner, id );
			}
		}
	}
}
De aici modifici modelul:

Code: Select all

new const MODEL[ ] = "models/santa_hat.mdl";
Nu efectuez tranzactii pe mess, skype etc. Aveti grija la indivizii care se dau drept mine!
Nu mai ofer suport asa ca nu imi mai trimiteti mesaje in legatura cu asta!


Zombie Plague Shade 1.2-debug1 [with Item Limiter] (12 September 2015) - Bombardier Branch
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests