It is currently 18 Oct 2018 01:32






Reply to topic  [ 6 posts ] 
 Cerere plugin norecoil/x3dmg 
Author Message
Membru, skill 0
Membru, skill 0
User avatar

Joined: 28 Nov 2017 17:31
Posts: 49
Detinator Steam: Da
CS Status: Christmas loading
Detinator server CS: zm.star-play.ro
SteamID: DonciuJunior
Fond eXtream: 0
Salut , doresc si eu un plugin care sa contina

no-recoil
x3 dmg

Vreau sa fie pe flagul abcde

Multtumesc !

_________________
Trage un ochi

| Afiseaza codul
Adresa: Cs.Star-Play.Ro / 93.119.26.122
Port: 27015
Jucatori: 24
Tip: CS:GO
Mod: Zombie
Anticheat: Protejat
Tara: Ro :flag_ro:


02 Dec 2017 20:59
Profile multumesc
Membru eXtream
Membru eXtream

Joined: 09 Oct 2010 12:39
Posts: 15616
Detinator Steam: Da
Reputatie: Restrictie moderator permanent
Restrictie schimbare nume
Nume anterior: Terra
Fost membru Club eXtreamCS (5 luni)
Membrul anului 2017
Fond eXtream: 0
| Afiseaza codul
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

new const VERSION[] = "1.1"

new pcvar_on,pcvar_type

new bool:g_norecoil[33]
new bool:g_bHasDamage[33]

public plugin_init()
{
pcvar_on = register_cvar("recoil_on","1");
if(get_pcvar_num(pcvar_on))
{
pcvar_type = register_cvar("recoil_type","2");
register_forward(FM_PlayerPreThink,"func_prethink");
}
RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post", 1)
RegisterHam(Ham_TakeDamage, "player", "Fwd_TakeDamage_Pre", 0)
}

public client_putinserver(id)
{
switch(get_pcvar_num(pcvar_type))
{
case 1 :
{
if(get_user_flags(id) & ADMIN_KICK)
g_norecoil[id] = true;
}
case 2 :
{
g_norecoil[id] = true;
}
default :
{
g_norecoil[id] = true;
}
}
}

public Fwd_TakeDamage_Pre(victim, inflictor, attacker, Float:damage, damage_bits)
{
if (!is_user_connected(attacker))
return HAM_IGNORED

if (g_bHasDamage[attacker]) != true)
{

{
SetHamParamFloat(4, (damage*2.0))
return HAM_SUPERCEDE
}
else
return HAM_SUPERCEDE

public func_prethink(id)
{
if(!is_user_alive(id) && !g_norecoil[id])
return;

set_pev(id,pev_punchangle,{ 0.0,0.0,0.0 });
}
public client_disconnect(id)
{
g_norecoil[id] = false;
}


02 Dec 2017 21:51
Profile multumesc
Membru, skill 0
Membru, skill 0
User avatar

Joined: 28 Nov 2017 17:31
Posts: 49
Detinator Steam: Da
CS Status: Christmas loading
Detinator server CS: zm.star-play.ro
SteamID: DonciuJunior
Fond eXtream: 0
Imi da eroare la compilare !

_________________
Trage un ochi

| Afiseaza codul
Adresa: Cs.Star-Play.Ro / 93.119.26.122
Port: 27015
Jucatori: 24
Tip: CS:GO
Mod: Zombie
Anticheat: Protejat
Tara: Ro :flag_ro:


03 Dec 2017 01:37
Profile multumesc
Membru eXtream
Membru eXtream

Joined: 09 Oct 2010 12:39
Posts: 15616
Detinator Steam: Da
Reputatie: Restrictie moderator permanent
Restrictie schimbare nume
Nume anterior: Terra
Fost membru Club eXtreamCS (5 luni)
Membrul anului 2017
Fond eXtream: 0
| Afiseaza codul
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#pragma tabsize 0

new pcvar_on,pcvar_type

new bool:g_norecoil[33]
new bool:g_bHasDamage[33]

public plugin_init()
{
pcvar_on = register_cvar("recoil_on","1");
if(get_pcvar_num(pcvar_on))
{
pcvar_type = register_cvar("recoil_type","2");
register_forward(FM_PlayerPreThink,"func_prethink");
}
RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post", 1)
RegisterHam(Ham_TakeDamage, "player", "Fwd_TakeDamage_Pre", 0)
}

public client_putinserver(id)
{
switch(get_pcvar_num(pcvar_type))
{
case 1 :
{
if(get_user_flags(id) & ADMIN_KICK)
g_norecoil[id] = true;
}
case 2 :
{
g_norecoil[id] = true;
}
default :
{
g_norecoil[id] = true;
}
}
}

public Fwd_TakeDamage_Pre(victim, inflictor, attacker, Float:damage, damage_bits)
{
if (!is_user_connected(attacker))
return HAM_IGNORED

if ((g_bHasDamage[attacker]) != true)
{
return HAM_SUPERCEDE
}
else
{
SetHamParamFloat(4, (damage*2.0))
return HAM_SUPERCEDE
}
return HAM_SUPERCEDE
}

public func_prethink(id)
{
if(!is_user_alive(id) && !g_norecoil[id])
return;

set_pev(id,pev_punchangle,{ 0.0,0.0,0.0 });
}
public client_disconnect(id)
{
g_norecoil[id] = false;
}


03 Dec 2017 08:49
Profile multumesc
Membru, skill 0
Membru, skill 0
User avatar

Joined: 28 Nov 2017 17:31
Posts: 49
Detinator Steam: Da
CS Status: Christmas loading
Detinator server CS: zm.star-play.ro
SteamID: DonciuJunior
Fond eXtream: 0
Tot serverul are norecoil... nu merge

_________________
Trage un ochi

| Afiseaza codul
Adresa: Cs.Star-Play.Ro / 93.119.26.122
Port: 27015
Jucatori: 24
Tip: CS:GO
Mod: Zombie
Anticheat: Protejat
Tara: Ro :flag_ro:


03 Dec 2017 11:57
Profile multumesc
Fost moderator
Fost moderator
User avatar

Joined: 08 Nov 2013 21:43
Posts: 3417
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
amx_cvar recoil type 1

_________________
Contact:

Activitate scazuta.


06 Dec 2017 23:01
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group