Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
2 Pluginuri = ?
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
Author
Message
1567
altu19
[Maniac]
Status: Offline
(since 01-01-2024 18:30)
Joined: 21 May 2011
Posts: 1178
,
Topics: 56
Location:
Romania
Reputation:
95.4
Votes
: 19
Posted: 23-08-2011, 18:43:32
| Translate post to:
... (
Click for more languages
)
Caut si eu 2 plugin-uri nu stiu cum se numesc
1. Cand ai knife alergi mai repede si te faci transparent dar ceilalti observa ca vii spre ei oricum.
2. Cand omori pe cineva primesti +10hp cand ii dai HS primesti +15hp
Multumesc.
0
0
Back to top
iTR__
[Mentally Instable]
Status: Offline
(since 20-01-2012 19:40)
Joined: 01 Jan 2011
Posts: 21
,
Topics: 5
Location:
Drobeta Turnu Severin
Reputation:
71.9
Votes
: 2
Posted: 25-08-2011, 22:16:27
| Translate post to:
... (
Click for more languages
)
@2
Quote:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "Bonus"
#define VERSION "1.2"
#define AUTHOR "Xalus"
#define Tag "[Bonus]"
new cStatus, cMaxHealth;
new cKill, cKnife, cHeadshot, cKnifeHeadshot;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
/* Cvar */
cStatus = register_cvar("bonus_status", "1");
cMaxHealth = register_cvar("bonus_maxhealth", "100");
/* Bonus */
cKill = register_cvar("bonus_kill", "
10
");
cKnife = register_cvar("bonus_knife", "
50
");
cHeadshot = register_cvar("bonus_headshot", "
15
");
cKnifeHeadshot = register_cvar("bonus_knifeheadshot", "
50
");
/* Player Killed */
register_event( "DeathMsg", "EventDeathMsg", "a", "1>0" );
}
/*
Bonus:
- Player Killed
*/
public EventDeathMsg() {
new killer = read_data(1);
new victim = read_data(2);
new headshot = read_data(3);
new weapon = get_user_weapon(killer);
new num;
if(killer == victim || !get_pcvar_num(cStatus) || !is_user_connected(victim) || !is_user_alive(killer))
return PLUGIN_HANDLED;
if(headshot && weapon == CSW_KNIFE) {
num = get_pcvar_num(cKnifeHeadshot)
GiveHealth(killer, num)
HudMessage(killer, "Healed +%ihp", num)
} else if(headshot) {
num = get_pcvar_num(cHeadshot)
GiveHealth(killer, num)
HudMessage(killer, "Healed +%ihp", num)
} else if(weapon == CSW_KNIFE) {
num = get_pcvar_num(cKnife)
GiveHealth(killer, num)
HudMessage(killer, "Healed +%ihp", num)
} else {
num = get_pcvar_num(cKill)
GiveHealth(killer, num)
HudMessage(killer, "Healed +%ihp", num)
}
return PLUGIN_CONTINUE;
}
/*
Bonus:
- Give Health
- Hud Message
*/
GiveHealth(id, count)
set_user_health(id, min( (get_user_health(id) + count), get_pcvar_num(cMaxHealth) ))
stock HudMessage(const id, const input[], any:...) {
static msg[191];
vformat(msg, 190, input, 3);
set_hudmessage(127, 170, 255, 0.27, 0.14, 0, 5.0, 5.0, 0.0, 0.0, -1);
show_hudmessage(id, "%s^n%s", Tag, msg)
}
Pe langa ce ai cerut tu, la kill knife ai 50hp bonus.
Poti modifica si singur unde e scris cu rosu
0
0
Back to top
*0ranGe ! extrem
[I ❤ MY POLO!]
Status: Offline
(since 11-12-2017 12:06)
Joined: 01 Jul 2007
Posts: 11419
,
Topics: 191
Location:
Romania
Reputation:
683.4
Votes
: 117
Posted: 26-08-2011, 15:10:07
| Translate post to:
... (
Click for more languages
)
Primul "plugin" este defapt modul Warcraft.
0
0
Back to top
iTR__
[Mentally Instable]
Status: Offline
(since 20-01-2012 19:40)
Joined: 01 Jan 2011
Posts: 21
,
Topics: 5
Location:
Drobeta Turnu Severin
Reputation:
71.9
Votes
: 2
Posted: 27-08-2011, 23:41:18
| Translate post to:
... (
Click for more languages
)
Ma scuzati de double post .
@1
Quote:
/*
* Name: Kspeed
* Version: 2.0
* Author: Dissonantallure with help from: v3x, styles, & atomen
* Date: May/8/2008
*
* Description:
* Gives players faster running speed with knife!
*
* Cvars:
* knife_speed
*
* Modules:
* fakemeta
*
* Updates:
* -1 compilation warning-FIXED
* -Fix the "headstart" bug-FIXED
*
*/
#include <amxmodx>
#include <fakemeta>
#define gPLUGIN "Kspeed"
#define gAUTHOR "Dissonantallure"
#define gVERSION "2.0"
#define STANDARDTIMESTEPSOUND 400
new bool:speed = false
new bool:g_silent[33]
new p_KnifeSpeed, g_FreezeTime, p_LastSpeed[33]
public plugin_init()
{
register_plugin(gPLUGIN, gVERSION, gAUTHOR)
register_event("CurWeapon","check_speed","be","1=1")
p_KnifeSpeed = register_cvar("knife_speed", "420")
register_event("HLTV", "eNewRound", "a", "1=0", "2=0")
register_forward(FM_PlayerPreThink, "fPlayerPrethink")
register_logevent("eRoundStart", 2, "1=Round_Start")
register_event("DeathMsg", "event_death", "a", "1!0", "2!0")
register_forward( FM_CmdStart, "FMCmdStart" )
get_cvar_num("mp_freezetime")
}
public eNewRound()
{
g_FreezeTime = get_systime()
speed = true
new ft = get_cvar_num("mp_freezetime")
set_task(float(ft),"allow_speed",0)
}
public eRoundStart()
{
speed = true
}
public end_round()
{
speed = false
}
public allow_speed()
{
speed = true
}
public check_speed(id)
{
// If the speed var is false..
if(!speed || !is_user_alive(id)) {
// Stop the function
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
public event_death()
{
new id = read_data(1);
if(is_user_alive(id))
check_speed(id);
}
public fPlayerPrethink(id)
{
if(get_systime() - g_FreezeTime > get_cvar_num("mp_freezetime"))
{
new temp, weapon = get_user_weapon(id, temp, temp)
if(weapon == CSW_KNIFE)
{
pev(id, pev_maxspeed, p_LastSpeed[id])
set_pev(id, pev_maxspeed, get_pcvar_float(p_KnifeSpeed))
}
else
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public FMCmdStart( id, uc_handle, randseed )
{
new Float:fmove, Float:smove;
get_uc(uc_handle, UC_ForwardMove, fmove);
get_uc(uc_handle, UC_SideMove, smove );
new Float:maxspeed;
pev(id, pev_maxspeed, maxspeed);
new Float:walkspeed = (maxspeed * 0.52);
fmove = floatabs( fmove );
smove = floatabs( smove );
if(fmove <= walkspeed && smove <= walkspeed && !(fmove == 0.0 && smove == 0.0))
fm_set_user_footsteps(id,0)
}
fm_set_user_footsteps(index, set = 1)
{
if (set) {
set_pev(index, pev_flTimeStepSound, 999)
g_silent[index] = true
}
else {
set_pev(index, pev_flTimeStepSound, STANDARDTIMESTEPSOUND)
g_silent[index] = false
}
return 1
}
cvars:
Code:
knife_speed "420"
modules:
Code:
fakemeta
Nu se referea la modul warcraft ci la pluginul 'kspeed' (knife speed)
0
0
Back to top
altu19
[Maniac]
Status: Offline
(since 01-01-2024 18:30)
Joined: 21 May 2011
Posts: 1178
,
Topics: 56
Location:
Romania
Reputation:
95.4
Votes
: 19
Posted: 07-09-2011, 08:44:25
| Translate post to:
... (
Click for more languages
)
iTR__ wrote:
Ma scuzati de double post .
@1
Quote:
/*
* Name: Kspeed
* Version: 2.0
* Author: Dissonantallure with help from: v3x, styles, & atomen
* Date: May/8/2008
*
* Description:
* Gives players faster running speed with knife!
*
* Cvars:
* knife_speed
*
* Modules:
* fakemeta
*
* Updates:
* -1 compilation warning-FIXED
* -Fix the "headstart" bug-FIXED
*
*/
#include <amxmodx>
#include <fakemeta>
#define gPLUGIN "Kspeed"
#define gAUTHOR "Dissonantallure"
#define gVERSION "2.0"
#define STANDARDTIMESTEPSOUND 400
new bool:speed = false
new bool:g_silent[33]
new p_KnifeSpeed, g_FreezeTime, p_LastSpeed[33]
public plugin_init()
{
register_plugin(gPLUGIN, gVERSION, gAUTHOR)
register_event("CurWeapon","check_speed","be","1=1")
p_KnifeSpeed = register_cvar("knife_speed", "420")
register_event("HLTV", "eNewRound", "a", "1=0", "2=0")
register_forward(FM_PlayerPreThink, "fPlayerPrethink")
register_logevent("eRoundStart", 2, "1=Round_Start")
register_event("DeathMsg", "event_death", "a", "1!0", "2!0")
register_forward( FM_CmdStart, "FMCmdStart" )
get_cvar_num("mp_freezetime")
}
public eNewRound()
{
g_FreezeTime = get_systime()
speed = true
new ft = get_cvar_num("mp_freezetime")
set_task(float(ft),"allow_speed",0)
}
public eRoundStart()
{
speed = true
}
public end_round()
{
speed = false
}
public allow_speed()
{
speed = true
}
public check_speed(id)
{
// If the speed var is false..
if(!speed || !is_user_alive(id)) {
// Stop the function
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
public event_death()
{
new id = read_data(1);
if(is_user_alive(id))
check_speed(id);
}
public fPlayerPrethink(id)
{
if(get_systime() - g_FreezeTime > get_cvar_num("mp_freezetime"))
{
new temp, weapon = get_user_weapon(id, temp, temp)
if(weapon == CSW_KNIFE)
{
pev(id, pev_maxspeed, p_LastSpeed[id])
set_pev(id, pev_maxspeed, get_pcvar_float(p_KnifeSpeed))
}
else
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public FMCmdStart( id, uc_handle, randseed )
{
new Float:fmove, Float:smove;
get_uc(uc_handle, UC_ForwardMove, fmove);
get_uc(uc_handle, UC_SideMove, smove );
new Float:maxspeed;
pev(id, pev_maxspeed, maxspeed);
new Float:walkspeed = (maxspeed * 0.52);
fmove = floatabs( fmove );
smove = floatabs( smove );
if(fmove <= walkspeed && smove <= walkspeed && !(fmove == 0.0 && smove == 0.0))
fm_set_user_footsteps(id,0)
}
fm_set_user_footsteps(index, set = 1)
{
if (set) {
set_pev(index, pev_flTimeStepSound, 999)
g_silent[index] = true
}
else {
set_pev(index, pev_flTimeStepSound, STANDARDTIMESTEPSOUND)
g_silent[index] = false
}
return 1
}
cvars:
Code:
knife_speed "420"
modules:
Code:
fakemeta
Nu se referea la modul warcraft ci la pluginul 'kspeed' (knife speed)
Pluginul asta are un bug, daca am knife si dupa schimb pe arma tot cu viteza aia ramai.... vreo idee?
0
0
Back to top
iTR__
[Mentally Instable]
Status: Offline
(since 20-01-2012 19:40)
Joined: 01 Jan 2011
Posts: 21
,
Topics: 5
Location:
Drobeta Turnu Severin
Reputation:
71.9
Votes
: 2
Posted: 07-09-2011, 12:12:46
| Translate post to:
... (
Click for more languages
)
Poftim:
Quote:
#include <amxmodx>
#include <fakemeta>
#include <fun>
#include <engine>
new SF[ 33 ]
new bool:xTeFaceVedetaInvizibila[ 33 ];
public plugin_init( )
{
register_plugin( "Knife Speed & Invisibility" , "1.1", "x" ) //
http://www.HighCS.ro
register_forward( FM_PlayerPreThink, "fw_PlayerPreThink" )
register_event( "CurWeapon", "CurWeapon", "be", "1=1" )
}
public CurWeapon( id )
{
new Weapon = get_user_weapon ( id )
if ( Weapon == CSW_KNIFE )
SF[ id ] = 1
else
SF[ id ] = 0
}
public fw_PlayerPreThink( id )
{
if ( SF[ id ] == 1 )
{
set_user_maxspeed( id, 350.0 )
xTeFaceVedetaInvizibila[ id ] = true
set_entity_visibility( id, 0 )
} else {
set_user_maxspeed( id, 230.0 )
task_Vizible(id);
remove_task(id);
}
}
public task_Vizible(id)
{
xTeFaceVedetaInvizibila[ id ] = false
set_entity_visibility( id, 1 )
}
Inlocuieste-l cu asta si vezi daca mai e vreun bug [cand o sa ajung acasa o sa caut unul sigur]
LE: Am inlocuit pluginul cu unul bun, testat de mine
We don't care, we don't give a *** !
0
0
Back to top
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
The time now is 10-11-2024, 06:17:17
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details