It is currently 18 Oct 2018 06:45






Reply to topic  [ 7 posts ] 
 Modificare plugin knife 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 13 Feb 2018 00:01
Posts: 4
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Salut , deja imi crapa creieru , deci vreau in sma.ul de mai jos sa imi citeasca la knife 1 si 4 gravity (km_lowgravity 400 ) si la knife 2 si 3 gravitate normala ( 800 ) eu am reusit sa fac sa le citeasca skinurile si meniu dar pur si simplu nu imi dau seama cum sa fac gravitatia pe 1 si 4 va rog cat mai urgent daca puteti ca tin sv pe loc

Edit: la >>FPS UP<< sa apara culoarea aceea rosie doar la ">>FPS UP<<"

Va multumesc anticipat !
| Afiseaza codul
#include <amxmodx>
#include <engine>
#include <vault>
#include <fun>

#define PLUGIN "Knife Mod"
#define VERSION "1.0"
#define AUTHOR "spunko"

new knife_model[33]
new g_Menu

new CVAR_LOWGRAV1
new CVAR_NORMGRAV1
new CVAR_LOWGRAV2
new CVAR_NORMGRAV2

public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR)

register_event("CurWeapon","CurWeapon","be","1=1")

g_Menu = register_menuid("Knife Mod")
register_menucmd(g_Menu, 1023, "knifemenu")

register_clcmd("say /knife", "display_knife")

CVAR_LOWGRAV1 = register_cvar("km_lowgravity" , "400")
CVAR_LOWGRAV2 = register_cvar("km_lowgravity" , "400")
CVAR_NORMGRAV1 = get_cvar_pointer("sv_gravity")
CVAR_NORMGRAV2 = get_cvar_pointer("sv_gravity")


set_task(480.0, "kmodmsg", 0, _, _, "b")
}

public plugin_precache() {
precache_model("models/knife-zona/v_grav2.mdl")
precache_model("models/knife-zona/p_butcher1.mdl")
precache_model("models/knife-zona/v_indungipro.mdl")
precache_model("models/knife-zona/p_knife.mdl")
precache_model("models/knife-zona/v_grav22.mdl")
precache_model("models/knife-zona/p_butcher11.mdl")
precache_model("models/knife-zona/v_indungipro1.mdl")
precache_model("models/knife-zona/p_knife1.mdl")
}

public display_knife(id) {
new menuBody[512]
add(menuBody, 511, "\rBhop.Play-Arena.Ro\w^n^n")
add(menuBody, 511, "1. Cutit gravity^n")
add(menuBody, 511, "2. Cutit normal^n")
add(menuBody, 511, "3=> Cutit normal >>FPS UP<<^n")
add(menuBody, 511, "4=> Cutit gravity >>FPS UP<<^n")
add(menuBody, 511, "0. Inchide^n")

new keys = ( 1<<0 | 1<<1 | 2<<1 | 3<<1 | 4<<1 | 1<<9 )
show_menu(id, keys, menuBody, -1, "Knife Mod")
}

public knifemenu(id, key) {
switch(key)
{
case 0: SetKnife(id , 0)
case 1: SetKnife(id , 1)
case 2: SetKnife(id , 3)
case 3: SetKnife(id , 4)
default: return PLUGIN_HANDLED
}
SaveData(id)
return PLUGIN_HANDLED
}

public SetKnife(id , Knife) {
knife_model[id] = Knife
knife_model[id] = Knife

new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon != CSW_KNIFE )
return PLUGIN_HANDLED

new vModel[56],pModel[56]

switch(Knife)
{
case 0: {
format(vModel,55,"models/knife-zona/v_grav2.mdl")
format(pModel,55,"models/knife-zona/p_butcher1.mdl")
}
case 1: {
format(vModel,55,"models/knife-zona/v_indungipro.mdl")
format(pModel,55,"models/knife-zona/p_knife.mdl")
}
case 3: {
format(vModel,55,"models/knife-zona/v_indungipro1.mdl")
format(pModel,55,"models/knife-zona/p_knife.mdl")
}
case 4: {
format(vModel,55,"models/knife-zona/v_grav22.mdl")
format(pModel,55,"models/knife-zona/p_butcher1.mdl")
}
}

entity_set_string(id, EV_SZ_viewmodel, vModel)
entity_set_string(id, EV_SZ_weaponmodel, pModel)

return PLUGIN_HANDLED;
}

public CurWeapon(id)
{
new Weapon = read_data(2)

// Set Knife Model
SetKnife(id, knife_model[id])
SetKnife(id, knife_model[id])

new Float:Gravity2 = ((knife_model[id] == 2 && Weapon == CSW_KNIFE)? get_pcvar_float(CVAR_LOWGRAV2) : get_pcvar_float(CVAR_NORMGRAV2)) / 800.0
set_user_gravity(id , Gravity2)
new Float:Gravity1 = ((knife_model[id] == 1 && Weapon == CSW_KNIFE)? get_pcvar_float(CVAR_LOWGRAV1) : get_pcvar_float(CVAR_NORMGRAV1)) / 800.0
set_user_gravity(id , Gravity1)
}

stock log_kill(killer, victim, weapon[],headshot) {
user_silentkill( victim );

message_begin( MSG_ALL, get_user_msgid( "DeathMsg" ), {0,0,0}, 0 );
write_byte( killer );
write_byte( victim );
write_byte( headshot );
write_string( weapon );
message_end();

new kfrags = get_user_frags( killer );
set_user_frags( killer, kfrags++ );
new vfrags = get_user_frags( victim );
set_user_frags( victim, vfrags++ );

return PLUGIN_CONTINUE
}

public kmodmsg() {

client_print(0,print_chat,"Cand faci sex sa aprinzi lumina!")
}

public client_authorized(id)
{
LoadData(id)
}

SaveData(id)
{

new authid[32]
get_user_authid(id, authid, 31)

new vaultkey[64]
new vaultdata[64]

format(vaultkey, 63, "KMOD_%s", authid)
format(vaultdata, 63, "%d", knife_model[id])
set_vaultdata(vaultkey, vaultdata)
}

LoadData(id)
{
new authid[32]
get_user_authid(id,authid,31)

new vaultkey[64], vaultdata[64]

format(vaultkey, 63, "KMOD_%s", authid)
get_vaultdata(vaultkey, vaultdata, 63)
knife_model[id] = str_to_num(vaultdata)

}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/


13 Feb 2018 00:05
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 02 Mar 2014 17:10
Posts: 86
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: soccerjam.watf.ro
Fond eXtream: 0
| Afiseaza codul
#include <amxmodx>
#include <engine>
#include <vault>
#include <fun>

#define PLUGIN "Knife Mod"
#define VERSION "1.0"
#define AUTHOR "spunko"

new knife_model[33]
new g_Menu

new CVAR_LOWGRAV1
new CVAR_NORMGRAV1
new CVAR_LOWGRAV2
new CVAR_NORMGRAV2

public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR)

register_event("CurWeapon","CurWeapon","be","1=1")

g_Menu = register_menuid("Knife Mod")
register_menucmd(g_Menu, 1023, "knifemenu")

register_clcmd("say /knife", "display_knife")

CVAR_LOWGRAV1 = register_cvar("km_lowgravity" , "400.0")
CVAR_LOWGRAV2 = register_cvar("km_lowgravity" , "400.0") // e degeaba pentru ca inregistrezi acelasi cvar
CVAR_NORMGRAV1 = get_cvar_pointer("sv_gravity")
CVAR_NORMGRAV2 = get_cvar_pointer("sv_gravity") // la fel


set_task(480.0, "kmodmsg", 0, _, _, "b")
}

public plugin_precache() {
precache_model("models/knife-zona/v_grav2.mdl")
precache_model("models/knife-zona/p_butcher1.mdl")
precache_model("models/knife-zona/v_indungipro.mdl")
precache_model("models/knife-zona/p_knife.mdl")
precache_model("models/knife-zona/v_grav22.mdl")
precache_model("models/knife-zona/p_butcher11.mdl")
precache_model("models/knife-zona/v_indungipro1.mdl")
precache_model("models/knife-zona/p_knife1.mdl")
}

public display_knife(id) {
new menuBody[512]
add(menuBody, 511, "\rBhop.Play-Arena.Ro\w^n^n")
add(menuBody, 511, "1. Cutit gravity^n")
add(menuBody, 511, "2. Cutit normal^n")
add(menuBody, 511, "3=> Cutit normal \r>>FPS UP<<^n")
add(menuBody, 511, "4=> Cutit gravity \r>>FPS UP<<^n")
add(menuBody, 511, "0. Inchide^n")

new keys = ( 1<<0 | 1<<1 | 2<<1 | 3<<1 | 4<<1 | 1<<9 )
show_menu(id, keys, menuBody, -1, "Knife Mod")
}

public knifemenu(id, key) {
switch(key)
{
case 0: SetKnife(id , 0)
case 1: SetKnife(id , 1)
case 2: SetKnife(id , 3)
case 3: SetKnife(id , 4)
default: return PLUGIN_HANDLED
}
SaveData(id)
return PLUGIN_HANDLED
}

public SetKnife(id , Knife) {
knife_model[id] = Knife
knife_model[id] = Knife

new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon != CSW_KNIFE )
return PLUGIN_HANDLED

new vModel[56],pModel[56]

switch(Knife)
{
case 0: {
set_user_gravity(id,get_pcvar_float(CVAR_LOWGRAV1))
format(vModel,55,"models/knife-zona/v_grav2.mdl")
format(pModel,55,"models/knife-zona/p_butcher1.mdl")
}
case 1: {
set_user_gravity(id,get_pcvar_float(CVAR_NORMGRAV1))
format(vModel,55,"models/knife-zona/v_indungipro.mdl")
format(pModel,55,"models/knife-zona/p_knife.mdl")
}
case 3: {
set_user_gravity(id,get_pcvar_float(CVAR_NORMGRAV2))
format(vModel,55,"models/knife-zona/v_indungipro1.mdl")
format(pModel,55,"models/knife-zona/p_knife.mdl")
}
case 4: {
set_user_gravity(id,get_pcvar_float(CVAR_LOWGRAV2))
format(vModel,55,"models/knife-zona/v_grav22.mdl")
format(pModel,55,"models/knife-zona/p_butcher1.mdl")
}
}

entity_set_string(id, EV_SZ_viewmodel, vModel)
entity_set_string(id, EV_SZ_weaponmodel, pModel)

return PLUGIN_HANDLED;
}

public CurWeapon(id)
{
new Weapon = read_data(2)

// Set Knife Model
SetKnife(id, knife_model[id])
SetKnife(id, knife_model[id])

new Float:Gravity2 = ((knife_model[id] == 2 && Weapon == CSW_KNIFE)? get_pcvar_float(CVAR_LOWGRAV2) : get_pcvar_float(CVAR_NORMGRAV2)) / 800.0
set_user_gravity(id , Gravity2)
new Float:Gravity1 = ((knife_model[id] == 1 && Weapon == CSW_KNIFE)? get_pcvar_float(CVAR_LOWGRAV1) : get_pcvar_float(CVAR_NORMGRAV1)) / 800.0
set_user_gravity(id , Gravity1)
}

stock log_kill(killer, victim, weapon[],headshot) {
user_silentkill( victim );

message_begin( MSG_ALL, get_user_msgid( "DeathMsg" ), {0,0,0}, 0 );
write_byte( killer );
write_byte( victim );
write_byte( headshot );
write_string( weapon );
message_end();

new kfrags = get_user_frags( killer );
set_user_frags( killer, kfrags++ );
new vfrags = get_user_frags( victim );
set_user_frags( victim, vfrags++ );

return PLUGIN_CONTINUE
}

public kmodmsg() {

client_print(0,print_chat,"Cand faci sex sa aprinzi lumina!")
}

public client_authorized(id)
{
LoadData(id)
}

SaveData(id)
{

new authid[32]
get_user_authid(id, authid, 31)

new vaultkey[64]
new vaultdata[64]

format(vaultkey, 63, "KMOD_%s", authid)
format(vaultdata, 63, "%d", knife_model[id])
set_vaultdata(vaultkey, vaultdata)
}

LoadData(id)
{
new authid[32]
get_user_authid(id,authid,31)

new vaultkey[64], vaultdata[64]

format(vaultkey, 63, "KMOD_%s", authid)
get_vaultdata(vaultkey, vaultdata, 63)
knife_model[id] = str_to_num(vaultdata)

}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/


Am modificat cand alegi cutitul 1 4 sa dea gravity in functie de acel cvar si la celelalte in functie de cat e pe server sv_gravity.
Edit: modificat si FPS UP


13 Feb 2018 00:22
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 13 Feb 2018 00:01
Posts: 4
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
bro nu merge ,acum numai e gravityy deloc


13 Feb 2018 00:49
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 02 Mar 2014 17:10
Posts: 86
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: soccerjam.watf.ro
Fond eXtream: 0
| Afiseaza codul
#include <amxmodx>
#include <engine>
#include <vault>
#include <fun>

#define PLUGIN "Knife Mod"
#define VERSION "1.0"
#define AUTHOR "spunko"

new knife_model[33]
new g_Menu


public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR)

register_event("CurWeapon","CurWeapon","be","1=1")

g_Menu = register_menuid("Knife Mod")
register_menucmd(g_Menu, 1023, "knifemenu")

register_clcmd("say /knife", "display_knife")

register_cvar("km_lowgravity" , "400.0")



set_task(480.0, "kmodmsg", 0, _, _, "b")
}

public plugin_precache() {
precache_model("models/knife-zona/v_grav2.mdl")
precache_model("models/knife-zona/p_butcher1.mdl")
precache_model("models/knife-zona/v_indungipro.mdl")
precache_model("models/knife-zona/p_knife.mdl")
precache_model("models/knife-zona/v_grav22.mdl")
precache_model("models/knife-zona/p_butcher11.mdl")
precache_model("models/knife-zona/v_indungipro1.mdl")
precache_model("models/knife-zona/p_knife1.mdl")
}

public display_knife(id) {
new menuBody[512]
add(menuBody, 511, "\rBhop.Play-Arena.Ro\w^n^n")
add(menuBody, 511, "1. Cutit gravity^n")
add(menuBody, 511, "2. Cutit normal^n")
add(menuBody, 511, "3=> Cutit normal \r>>FPS UP<<^n")
add(menuBody, 511, "4=> Cutit gravity \r>>FPS UP<<^n")
add(menuBody, 511, "0. Inchide^n")

new keys = ( 1<<0 | 1<<1 | 2<<1 | 3<<1 | 4<<1 | 1<<9 )
show_menu(id, keys, menuBody, -1, "Knife Mod")
}

public knifemenu(id, key) {
switch(key)
{
case 0: SetKnife(id , 0)
case 1: SetKnife(id , 1)
case 2: SetKnife(id , 3)
case 3: SetKnife(id , 4)
default: return PLUGIN_HANDLED
}
SaveData(id)
return PLUGIN_HANDLED
}

public SetKnife(id , Knife) {
knife_model[id] = Knife
knife_model[id] = Knife

new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon != CSW_KNIFE )
return PLUGIN_HANDLED

new vModel[56],pModel[56]

switch(Knife)
{
case 0: {
format(vModel,55,"models/knife-zona/v_grav2.mdl")
format(pModel,55,"models/knife-zona/p_butcher1.mdl")
}
case 1: {
format(vModel,55,"models/knife-zona/v_indungipro.mdl")
format(pModel,55,"models/knife-zona/p_knife.mdl")
}
case 3: {
format(vModel,55,"models/knife-zona/v_indungipro1.mdl")
format(pModel,55,"models/knife-zona/p_knife.mdl")
}
case 4: {
format(vModel,55,"models/knife-zona/v_grav22.mdl")
format(pModel,55,"models/knife-zona/p_butcher1.mdl")
}
}

entity_set_string(id, EV_SZ_viewmodel, vModel)
entity_set_string(id, EV_SZ_weaponmodel, pModel)

return PLUGIN_HANDLED;
}

public CurWeapon(id)
{
new Weapon = read_data(2)

// Set Knife Model
SetKnife(id, knife_model[id])
SetKnife(id, knife_model[id])

new Float:Gravity2 = ((knife_model[id] == 2 && Weapon == CSW_KNIFE)? get_cvar_float("km_lowgravity") : get_cvar_float("sv_gravity")) / get_cvar_float("sv_gravity")
set_user_gravity(id , Gravity2)
new Float:Gravity1 = ((knife_model[id] == 1 && Weapon == CSW_KNIFE)? get_cvar_float("km_lowgravity") : get_cvar_float("sv_gravity")) / get_cvar_float("sv_gravity")
set_user_gravity(id , Gravity1)
}

stock log_kill(killer, victim, weapon[],headshot) {
user_silentkill( victim );

message_begin( MSG_ALL, get_user_msgid( "DeathMsg" ), {0,0,0}, 0 );
write_byte( killer );
write_byte( victim );
write_byte( headshot );
write_string( weapon );
message_end();

new kfrags = get_user_frags( killer );
set_user_frags( killer, kfrags++ );
new vfrags = get_user_frags( victim );
set_user_frags( victim, vfrags++ );

return PLUGIN_CONTINUE
}

public kmodmsg() {

client_print(0,print_chat,"Cand faci sex sa aprinzi lumina!")
}

public client_authorized(id)
{
LoadData(id)
}

SaveData(id)
{

new authid[32]
get_user_authid(id, authid, 31)

new vaultkey[64]
new vaultdata[64]

format(vaultkey, 63, "KMOD_%s", authid)
format(vaultdata, 63, "%d", knife_model[id])
set_vaultdata(vaultkey, vaultdata)
}

LoadData(id)
{
new authid[32]
get_user_authid(id,authid,31)

new vaultkey[64], vaultdata[64]

format(vaultkey, 63, "KMOD_%s", authid)
get_vaultdata(vaultkey, vaultdata, 63)
knife_model[id] = str_to_num(vaultdata)

}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/


Da am facut altfel acum.


13 Feb 2018 02:13
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 13 Feb 2018 00:01
Posts: 4
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
o sa verific mai tarziu ca sunt cu munca , dar mi se pare ca e la fel cum am incerc eu
vedem


14 Feb 2018 07:01
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 13 Feb 2018 00:01
Posts: 4
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
nu merge


15 Feb 2018 23:49
Profile multumesc WWW
Moderator ajutator
Moderator ajutator
User avatar

Joined: 10 May 2013 14:25
Posts: 2852
Location: Gura Humorului, Suceava
Detinator Steam: Nu
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Fond eXtream: 0
ia vezi asa | Afiseaza codul
#include <amxmodx>
#include <engine>
#include <vault>
#include <fun>

#define PLUGIN "Knife Mod"
#define VERSION "1.0"
#define AUTHOR "spunko"

new knife_model[33]
new g_Menu

new CVAR_LOWGRAV1
new CVAR_NORMGRAV1
new CVAR_LOWGRAV2
new CVAR_NORMGRAV2

public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR)

register_event("CurWeapon","CurWeapon","be","1=1")

g_Menu = register_menuid("Knife Mod")
register_menucmd(g_Menu, 1023, "knifemenu")

register_clcmd("say /knife", "display_knife")

CVAR_LOWGRAV1 = register_cvar("km_lowgravity" , "400.0")
CVAR_LOWGRAV2 = register_cvar("km_lowgravity" , "400.0")
CVAR_NORMGRAV1 = get_cvar_pointer("sv_gravity")
CVAR_NORMGRAV2 = get_cvar_pointer("sv_gravity")


set_task(480.0, "kmodmsg", 0, _, _, "b")
}

public plugin_precache() {
precache_model("models/knife-zona/v_grav2.mdl")
precache_model("models/knife-zona/p_butcher1.mdl")
precache_model("models/knife-zona/v_indungipro.mdl")
precache_model("models/knife-zona/p_knife.mdl")
precache_model("models/knife-zona/v_grav22.mdl")
precache_model("models/knife-zona/p_butcher11.mdl")
precache_model("models/knife-zona/v_indungipro1.mdl")
precache_model("models/knife-zona/p_knife1.mdl")
}

public display_knife(id) {
new menuBody[512]
add(menuBody, 511, "\rBhop.Play-Arena.Ro\w^n^n")
add(menuBody, 511, "1. Cutit gravity^n")
add(menuBody, 511, "2. Cutit normal^n")
add(menuBody, 511, "3=> Cutit normal >>FPS UP<<^n")
add(menuBody, 511, "4=> Cutit gravity >>FPS UP<<^n")
add(menuBody, 511, "0. Inchide^n")

new keys = ( 1<<0 | 1<<1 | 2<<1 | 3<<1 | 4<<1 | 1<<9 )
show_menu(id, keys, menuBody, -1, "Knife Mod")
}

public knifemenu(id, key) {
switch(key)
{
case 0: SetKnife(id , 0)
case 1: SetKnife(id , 1)
case 2: SetKnife(id , 3)
case 3: SetKnife(id , 4)
default: return PLUGIN_HANDLED
}
SaveData(id)
return PLUGIN_HANDLED
}

public SetKnife(id , Knife) {
knife_model[id] = Knife
knife_model[id] = Knife

new Clip, Ammo, Weapon = get_user_weapon(id, Clip, Ammo)
if ( Weapon != CSW_KNIFE )
return PLUGIN_HANDLED

new vModel[56],pModel[56]

switch(Knife)
{
case 0: {
format(vModel,55,"models/knife-zona/v_grav2.mdl")
format(pModel,55,"models/knife-zona/p_butcher1.mdl")
}
case 1: {
format(vModel,55,"models/knife-zona/v_indungipro.mdl")
format(pModel,55,"models/knife-zona/p_knife.mdl")
}
case 3: {
format(vModel,55,"models/knife-zona/v_indungipro1.mdl")
format(pModel,55,"models/knife-zona/p_knife.mdl")
}
case 4: {
format(vModel,55,"models/knife-zona/v_grav22.mdl")
format(pModel,55,"models/knife-zona/p_butcher1.mdl")
}
}

entity_set_string(id, EV_SZ_viewmodel, vModel)
entity_set_string(id, EV_SZ_weaponmodel, pModel)

return PLUGIN_HANDLED;
}

public CurWeapon(id)
{
new Weapon = read_data(2)

// Set Knife Model
SetKnife(id, knife_model[id])
SetKnife(id, knife_model[id])

new Float:Gravity2 = (knife_model[id] == 2 && Weapon == CSW_KNIFE)? get_pcvar_float(CVAR_LOWGRAV2) : (get_pcvar_float(CVAR_NORMGRAV2) / 800.0);
set_user_gravity(id , Gravity2)
new Float:Gravity1 = (knife_model[id] == 1 && Weapon == CSW_KNIFE)? get_pcvar_float(CVAR_LOWGRAV1) : (get_pcvar_float(CVAR_NORMGRAV1) / 800.0);
set_user_gravity(id , Gravity1)
}

stock log_kill(killer, victim, weapon[],headshot) {
user_silentkill( victim );

message_begin( MSG_ALL, get_user_msgid( "DeathMsg" ), {0,0,0}, 0 );
write_byte( killer );
write_byte( victim );
write_byte( headshot );
write_string( weapon );
message_end();

new kfrags = get_user_frags( killer );
set_user_frags( killer, kfrags++ );
new vfrags = get_user_frags( victim );
set_user_frags( victim, vfrags++ );

return PLUGIN_CONTINUE
}

public kmodmsg() {

client_print(0,print_chat,"Cand faci sex sa aprinzi lumina!")
}

public client_authorized(id)
{
LoadData(id)
}

SaveData(id)
{

new authid[32]
get_user_authid(id, authid, 31)

new vaultkey[64]
new vaultdata[64]

format(vaultkey, 63, "KMOD_%s", authid)
format(vaultdata, 63, "%d", knife_model[id])
set_vaultdata(vaultkey, vaultdata)
}

LoadData(id)
{
new authid[32]
get_user_authid(id,authid,31)

new vaultkey[64], vaultdata[64]

format(vaultkey, 63, "KMOD_%s", authid)
get_vaultdata(vaultkey, vaultdata, 63)
knife_model[id] = str_to_num(vaultdata)

}

_________________
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș

Pluginurile mele publice | Afiseaza codul
Control HE Damage(s)
[Zombie mod] Liderul oamenilor
NO RUSH (MANUAL)
Salvatorul Craciunului
Harry Potter's Magic Wand [0.0.3]
New HE Grenade Effects
Upgrades Menu -> Health/Armor/Damage

Serverele care au achizitonat pluginurile mele: #1 #2

CONTACT: sef_yontu@yahoo.com | skype: cyp_yontu
Creez pluginuri contra cost


16 Feb 2018 00:48
Profile multumesc YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 46 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