Plugin knife vip

Descarcari de pluginuri si discutii despre acestea.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
RafaELL
Membru, skill 0
Membru, skill 0
Posts: 2
Joined: 30 Dec 2013, 15:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Contact:

30 Dec 2013, 15:28

Salut, as vrea si eu un plugin knife vip cu gravity 320
Am cautat aproape peste tot si nu l-am gasit. ^:)^
Multumesc
User avatar
Truth*
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 766
Joined: 11 Oct 2013, 11:08
Detinator Steam: Da
SteamID: Ezeru
Reputatie: Fost moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3
Fond eXtream: 0
Location: Sibiu
Has thanked: 44 times
Been thanked: 122 times

30 Dec 2013, 21:35

Vrei knifeul intr-un meniu sau sa il dea la inceputul rundei ???
P.S.: Netestat = Nu am avut timp să mă uit atent peste cod. Deci ceea ce am scris este posibil să fie greşit sau să aibă erori.

If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
RafaELL
Membru, skill 0
Membru, skill 0
Posts: 2
Joined: 30 Dec 2013, 15:19
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Contact:

01 Jan 2014, 14:54

Cs_SURV!V0R wrote:Vrei knifeul intr-un meniu sau sa il dea la inceputul rundei ???
Sa il dea la inceputul rundei
User avatar
Truth*
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 766
Joined: 11 Oct 2013, 11:08
Detinator Steam: Da
SteamID: Ezeru
Reputatie: Fost moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3
Fond eXtream: 0
Location: Sibiu
Has thanked: 44 times
Been thanked: 122 times

03 Jan 2014, 16:46

Poftim :
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <fakemeta>
#include <hamsandwich>

#pragma tabsize 0

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"

#define FLAG_VIP ADMIN_LEVEL_H		//Aici schimbi cu ce flag vrei ;)

new bool:KnifeGrav[ 33 ];

new const vKnifeGrav[ 64 ] = "models/knife/v_knife"
new const pKnifeGrav[ 64 ] = "models/knife/p_knife"

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	RegisterHam( Ham_Spawn, "player", "SpawnCMD", true )
	register_event ( "CurWeapon", "CurrWeapon", "be", "1=1" );
	RegisterHam ( Ham_TakeDamage, "player", "Player_TakeDamage" );
}

public plugin_precache ( ) {
	
		precache_model( vKnifeGrav )
		precache_model( pKnifeGrav )
	
}

public Spawn ( id ) {
	
	if( is_user_alive(id) && get_user_flags(id) & FLAG_VIP )
	{
		
		KnifeGrav[ id ] = true;
			CurrWeapon( id );
		set_user_gravity(id, 7.0 );
		
	}
}

public CurrWeapon ( id ) {
	
	if ( KnifeGrav [ id ] && get_user_weapon ( id ) == CSW_KNIFE ) {
		
		set_pev ( id, pev_viewmodel2, vKnifeGrav );
		set_pev ( id, pev_weaponmodel2, pKnifeGrav );
	}
}
public Player_TakeDamage ( iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits )
{
	if( iInflictor == iAttacker && KnifeGrav [ iAttacker ] && is_user_alive( iAttacker ) && get_user_weapon( iAttacker ) == CSW_KNIFE )
	{
		SetHamParamFloat( 4, fDamage * 2.0);
		return HAM_HANDLED;
	}
	return HAM_IGNORED;
}
P.S.: Netestat = Nu am avut timp să mă uit atent peste cod. Deci ceea ce am scris este posibil să fie greşit sau să aibă erori.

If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
Post Reply

Return to “Pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests