It is currently 16 Jan 2019 14:45






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

Joined: 21 Nov 2015 11:02
Posts: 32
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Salut , am editat acest meniu de knife am adaugat eu inca un knife dar nu stiu de ce cand il aleg nu imi da knife ca modelul l am bagat , va las aici sursa :

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

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

new const PLUGIN[] = "Furien: Knife Mod";
new const VERSION[] = "1.4";
new const AUTHOR[] = "Adventx";

#pragma semicolon 1

#define is_user_vip(%1) (get_user_flags(%1) & ADMIN_LEVEL_H)

new const HaveKnifeTigerModel[66] = "models/furien/v_knife_tiger.mdl";
new const HaveKnifeThorModel[66] = "models/furien/v_knife_thor.mdl";
new const HaveKnifeHarryModel[66] = "models/furien/v_knife_harry.mdl";
new const HaveKnifeDarkModel[66] = "models/furien/v_knife_dark.mdl";

new const HaveKnifeDangerModel[66] = "models/v_knife_r.mdl";
new const HaveKnifeKataklismModel[66] = "models/furien/v_knife_kataklism.mdl";
new const HaveKnifeKatanaModel[66] = "models/furien/v_knife_katana.mdl";

new bool: HaveKnifeTiger[33];
new bool: HaveKnifeThor[33];
new bool: HaveKnifeHarry[33];
new bool: HaveKnifeDark[33];
new bool: HaveKnifeDanger[33];
new bool: HaveKnifeKataklism[33];
new bool: HaveKnifeKatana[33];
new bool: HaveKnifeChoosen[33];

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);

register_clcmd("say /knife","ClCmdSayKnife");

register_event("CurWeapon", "CurrentWeapon", "be", "1=1");
RegisterHam(Ham_Spawn, "player", "hamPlayerSpawnPost", 1);
RegisterHam(Ham_TakeDamage, "player", "Player_TakeDamage");
}

public hamPlayerSpawnPost(id)
{
if(is_user_alive(id))
{
HaveKnifeChoosen[id] = false;

HaveKnifeTiger[id] = false;
HaveKnifeThor[id] = false;
HaveKnifeHarry[id] = false;
HaveKnifeDark[id] = false;

HaveKnifeDanger[id] = false;
HaveKnifeKataklism[id] = false;
HaveKnifeKatana[id] = false;

if(cs_get_user_team(id) == CS_TEAM_T)
{
ShowMenuKnife(id);
}
}
}

public plugin_precache()
{
precache_model(HaveKnifeTigerModel);
precache_model(HaveKnifeThorModel);
precache_model(HaveKnifeHarryModel);
precache_model(HaveKnifeDarkModel);

precache_model(HaveKnifeDangerModel);
precache_model(HaveKnifeKataklismModel);
precache_model(HaveKnifeKatanaModel);
}

public client_putinserver(id)
{
HaveKnifeTiger[id] = false;
HaveKnifeThor[id] = false;
HaveKnifeHarry[id] = false;
HaveKnifeDark[id] = false;

HaveKnifeDanger[id] = false;
HaveKnifeKataklism[id] = false;
HaveKnifeKatana[id] = false;
}

public client_disconnect(id)
{
HaveKnifeTiger[id] = false;
HaveKnifeThor[id] = false;
HaveKnifeHarry[id] = false;
HaveKnifeDark[id] = false;

HaveKnifeDanger[id] = false;
HaveKnifeKataklism[id] = false;
HaveKnifeKatana[id] = false;
}

public ShowMenuKnife(id)
{
new menu = menu_create ("\rFurien \yKnife Menu", "GiveKnife");
menu_additem(menu, "Knife Tiger", "1");
menu_additem(menu, "Knife Thor", "2");
menu_additem(menu, "Knife Harry^n", "3");
menu_additem(menu, "Knife Dark", "4");

menu_additem(menu, "\yUltimate Knife \r(Only VIP)", "4");

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0 );

return 1;
}

public GiveKnife(id, menu, item)
{
if(item == MENU_EXIT)
{
return 1;
}

new data [6], szName [64];
new access, callback;
menu_item_getinfo (menu, item, access, data,charsmax (data), szName,charsmax (szName), callback);
new key = str_to_num (data);

switch (key)
{
case 1:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nYou not can choose the knife when you're dead");
return 1;
}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeTiger[id] = true;
HaveKnifeThor[id] = false;
HaveKnifeHarry[id] = false;
HaveKnifeDark[id] = false;
CurrentWeapon(id);

ChatColor(id, "!g[Furien] !nYou chose the !tKnife Tiger");
}
}

case 2:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nYou not can choose the knife when you're dead");
return 1;
}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeTiger[id] = false;
HaveKnifeThor[id] = true;
HaveKnifeHarry[id] = false;
HaveKnifeDark[id] = false;
CurrentWeapon(id);

ChatColor(id, "!g[Furien] !nYou chose the !tKnife Thor");
}
}

case 3:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien]!nYou not can choose the knife when you're dead");
return 1;
}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeTiger[id] = false;
HaveKnifeThor[id] = false;
HaveKnifeHarry[id] = true;
HaveKnifeDark[id] = false;
CurrentWeapon(id);

ChatColor(id, "!g[Furien] !nYou chose the !tKnife Harry");

}
}

case 4:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien]!nYou not can choose the knife when you're dead");

}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeTiger[id] = false;
HaveKnifeThor[id] = false;
HaveKnifeHarry[id] = false;
HaveKnifeDark[id] = true;

ChatColor(id, "!g[Furien] !nYou choose the !tKnife Dark");
}
}

case 5:
{
if(is_user_vip(id))
{
ShowMenuVIP(id);
}

else
{
ChatColor(id, "!g[Furien]!nThis knife is reserved only for VIP");
ShowMenuKnife(id);
}
}
}

menu_destroy (menu);
return 1;
}

public ShowMenuVIP(id)
{
new menu = menu_create ("\rFurien VIP \yKnife Menu", "GiveKnifeVIP");
menu_additem(menu, "Knife Danger", "1");
menu_additem(menu, "Knife Kataklism", "2");
menu_additem(menu, "Knife Katana", "3");

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0 );

return 1;
}

public GiveKnifeVIP(id, menu, item)
{
if(item == MENU_EXIT)
{
return 1;
}

new data [6], szName [64];
new access, callback;
menu_item_getinfo (menu, item, access, data,charsmax (data), szName,charsmax (szName), callback);
new key = str_to_num (data);

switch (key)
{
case 1:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nYou not can choose the knife when you're dead");
return 1;
}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeDanger[id] = true;
HaveKnifeKataklism[id] = false;
HaveKnifeKatana[id] = false;
CurrentWeapon(id);

ChatColor(id, "!g[Furien] !nYou chose the !tKnife Danger");
}
}

case 2:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nYou not can choose the knife when you're dead");
return 1;
}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeDanger[id] = false;
HaveKnifeKataklism[id] = true;
HaveKnifeKatana[id] = false;
CurrentWeapon(id);

ChatColor(id, "!g[Furien] !nYou chose the !tKnife Kataklism");
}
}

case 3:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nYou not can choose the knife when you're dead");
return 1;
}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeDanger[id] = false;
HaveKnifeKataklism[id] = false;
HaveKnifeKatana[id] = true;
CurrentWeapon(id);

ChatColor(id, "!g[Furien] !nYou chose the !tKnife Katana");
}
}
}

menu_destroy (menu);
return 1;
}

public CurrentWeapon(id)
{
if(HaveKnifeTiger[id] && get_user_weapon(id) == CSW_KNIFE)
set_pev(id, pev_viewmodel2, HaveKnifeTigerModel);

if(HaveKnifeThor[id] && get_user_weapon(id) == CSW_KNIFE)
set_pev(id, pev_viewmodel2, HaveKnifeThorModel);

if(HaveKnifeHarry[id] && get_user_weapon(id) == CSW_KNIFE)
set_pev(id, pev_viewmodel2, HaveKnifeHarryModel);

if(HaveKnifeDanger[id] && get_user_weapon(id) == CSW_KNIFE)
set_pev(id, pev_viewmodel2, HaveKnifeDangerModel);

if(HaveKnifeKataklism[id] && get_user_weapon(id) == CSW_KNIFE)
set_pev(id, pev_viewmodel2, HaveKnifeKataklismModel);

if(HaveKnifeKatana[id] && get_user_weapon(id) == CSW_KNIFE)
set_pev(id, pev_viewmodel2, HaveKnifeKatanaModel);
}


public Player_TakeDamage (iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits)
{
if(iInflictor == iAttacker && HaveKnifeTiger[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 3.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && HaveKnifeThor[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 3.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && HaveKnifeHarry[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 3.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && HaveKnifeDanger[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 4.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && HaveKnifeKataklism[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 4.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && HaveKnifeKatana[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 4.0);
return HAM_HANDLED;
}

return HAM_IGNORED;
}

public ClCmdSayKnife(id)
{
if(HaveKnifeChoosen[id])
{
ChatColor(id, "!g[Furien] !nYou have already chosen a knife in this round");
return;
}

if(cs_get_user_team(id) == CS_TEAM_T)
{
ShowMenuKnife(id);
}
}

stock ChatColor(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);

replace_all(msg, 190, "!g", "^4"); // Green Color
replace_all(msg, 190, "!n", "^1"); // Default Color
replace_all(msg, 190, "!t", "^3"); // Team Color
replace_all(msg, 190, "!t2", "^0"); // Team2 Color

if (id) players[0] = id; else get_players(players, count, "ch");
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}


Poze cu meniul :
https://imgur.com/a/42wzWLa ( se poate sa nu mai fie spatiul ala intre knife ? )
Daca merge sa fie 3 knife sus si 3 mai in jos e perfect da sa nu fiu nevoit sa apas pagina urmatoare adica sa ramana pe prima pagina si meniu cu vip!


Last edited by cs_all on 05 Jan 2019 17:44, edited 1 time in total.

Titlul editat.



05 Jan 2019 15:15
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1666
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Fond eXtream: 0
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

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

new const PLUGIN[] = "Furien: Knife Mod";
new const VERSION[] = "1.4";
new const AUTHOR[] = "Adventx";

#pragma tabsize 0

#define is_user_vip(%1) (get_user_flags(%1) & ADMIN_LEVEL_H)

new const HaveKnifeTigerModel[66] = "models/furien/v_knife_tiger.mdl";
new const HaveKnifeThorModel[66] = "models/furien/v_knife_thor.mdl";
new const HaveKnifeHarryModel[66] = "models/furien/v_knife_harry.mdl";
new const HaveKnifeDarkModel[66] = "models/furien/v_knife_dark.mdl";

new const HaveKnifeDangerModel[66] = "models/v_knife_r.mdl";
new const HaveKnifeKataklismModel[66] = "models/furien/v_knife_kataklism.mdl";
new const HaveKnifeKatanaModel[66] = "models/furien/v_knife_katana.mdl";

new bool: HaveKnifeTiger[33];
new bool: HaveKnifeThor[33];
new bool: HaveKnifeHarry[33];
new bool: HaveKnifeDark[33];
new bool: HaveKnifeDanger[33];
new bool: HaveKnifeKataklism[33];
new bool: HaveKnifeKatana[33];
new bool: HaveKnifeChoosen[33];

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);

register_clcmd("say /knife","ClCmdSayKnife");

register_event("CurWeapon", "CurrentWeapon", "be", "1=1");
RegisterHam(Ham_Spawn, "player", "hamPlayerSpawnPost", 1);
RegisterHam(Ham_TakeDamage, "player", "Player_TakeDamage");
}

public hamPlayerSpawnPost(id)
{
if(is_user_alive(id))
{
HaveKnifeChoosen[id] = false;

HaveKnifeTiger[id] = false;
HaveKnifeThor[id] = false;
HaveKnifeHarry[id] = false;
HaveKnifeDark[id] = false;

HaveKnifeDanger[id] = false;
HaveKnifeKataklism[id] = false;
HaveKnifeKatana[id] = false;

if(cs_get_user_team(id) == CS_TEAM_T)
{
ShowMenuKnife(id);
}
}
}

public plugin_precache()
{
precache_model(HaveKnifeTigerModel);
precache_model(HaveKnifeThorModel);
precache_model(HaveKnifeHarryModel);
precache_model(HaveKnifeDarkModel);

precache_model(HaveKnifeDangerModel);
precache_model(HaveKnifeKataklismModel);
precache_model(HaveKnifeKatanaModel);
}

public client_disconnect(id)
{
HaveKnifeTiger[id] = false;
HaveKnifeThor[id] = false;
HaveKnifeHarry[id] = false;
HaveKnifeDark[id] = false;

HaveKnifeDanger[id] = false;
HaveKnifeKataklism[id] = false;
HaveKnifeKatana[id] = false;
}

public ShowMenuKnife(id)
{
new menu = menu_create ("\rFurien \yKnife Menu", "GiveKnife");
menu_additem(menu, "Knife Tiger", "1");
menu_additem(menu, "Knife Thor", "2");
menu_additem(menu, "Knife Harry", "3");
menu_additem(menu, "Knife Dark", "4");

menu_additem(menu, "\yUltimate Knife \r(Only VIP)", "5");

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0 );

return 1;
}

public GiveKnife(id, menu, item)
{
if(item == MENU_EXIT)
{
return 1;
}

new data [6], szName [64];
new access, callback;
menu_item_getinfo (menu, item, access, data,charsmax (data), szName,charsmax (szName), callback);
new key = str_to_num (data);

switch (key)
{
case 1:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nYou not can choose the knife when you're dead");
return 1;
}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeTiger[id] = true;
HaveKnifeThor[id] = false;
HaveKnifeHarry[id] = false;
HaveKnifeDark[id] = false;
CurrentWeapon(id);

ChatColor(id, "!g[Furien] !nYou chose the !tKnife Tiger");
}
}

case 2:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nYou not can choose the knife when you're dead");
return 1;
}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeTiger[id] = false;
HaveKnifeThor[id] = true;
HaveKnifeHarry[id] = false;
HaveKnifeDark[id] = false;
CurrentWeapon(id);

ChatColor(id, "!g[Furien] !nYou chose the !tKnife Thor");
}
}

case 3:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien]!nYou not can choose the knife when you're dead");
return 1;
}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeTiger[id] = false;
HaveKnifeThor[id] = false;
HaveKnifeHarry[id] = true;
HaveKnifeDark[id] = false;
CurrentWeapon(id);

ChatColor(id, "!g[Furien] !nYou chose the !tKnife Harry");

}
}

case 4:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien]!nYou not can choose the knife when you're dead");

}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeTiger[id] = false;
HaveKnifeThor[id] = false;
HaveKnifeHarry[id] = false;
HaveKnifeDark[id] = true;

ChatColor(id, "!g[Furien] !nYou choose the !tKnife Dark");
}
}

case 5:
{
if(is_user_vip(id))
{
ShowMenuVIP(id);
}

else
{
ChatColor(id, "!g[Furien]!nThis knife is reserved only for VIP");
ShowMenuKnife(id);
}
}
}

menu_destroy (menu);
return 1;
}

public ShowMenuVIP(id)
{
new menu = menu_create ("\rFurien VIP \yKnife Menu", "GiveKnifeVIP");
menu_additem(menu, "Knife Danger", "1");
menu_additem(menu, "Knife Kataklism", "2");
menu_additem(menu, "Knife Katana", "3");

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0 );

return 1;
}

public GiveKnifeVIP(id, menu, item)
{
if(item == MENU_EXIT)
{
return 1;
}

new data [6], szName [64];
new access, callback;
menu_item_getinfo (menu, item, access, data,charsmax (data), szName,charsmax (szName), callback);
new key = str_to_num (data);

switch (key)
{
case 1:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nYou not can choose the knife when you're dead");
return 1;
}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeDanger[id] = true;
HaveKnifeKataklism[id] = false;
HaveKnifeKatana[id] = false;
CurrentWeapon(id);

ChatColor(id, "!g[Furien] !nYou chose the !tKnife Danger");
}
}

case 2:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nYou not can choose the knife when you're dead");
return 1;
}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeDanger[id] = false;
HaveKnifeKataklism[id] = true;
HaveKnifeKatana[id] = false;
CurrentWeapon(id);

ChatColor(id, "!g[Furien] !nYou chose the !tKnife Kataklism");
}
}

case 3:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nYou not can choose the knife when you're dead");
return 1;
}

else
{
HaveKnifeChoosen[id] = true;

HaveKnifeDanger[id] = false;
HaveKnifeKataklism[id] = false;
HaveKnifeKatana[id] = true;
CurrentWeapon(id);

ChatColor(id, "!g[Furien] !nYou chose the !tKnife Katana");
}
}
}

menu_destroy (menu);
return 1;
}

public CurrentWeapon(id)
{
if(HaveKnifeTiger[id] && get_user_weapon(id) == CSW_KNIFE)
set_pev(id, pev_viewmodel2, HaveKnifeTigerModel);

if(HaveKnifeThor[id] && get_user_weapon(id) == CSW_KNIFE)
set_pev(id, pev_viewmodel2, HaveKnifeThorModel);

if(HaveKnifeHarry[id] && get_user_weapon(id) == CSW_KNIFE)
set_pev(id, pev_viewmodel2, HaveKnifeHarryModel);

if(HaveKnifeDanger[id] && get_user_weapon(id) == CSW_KNIFE)
set_pev(id, pev_viewmodel2, HaveKnifeDangerModel);

if(HaveKnifeKataklism[id] && get_user_weapon(id) == CSW_KNIFE)
set_pev(id, pev_viewmodel2, HaveKnifeKataklismModel);

if(HaveKnifeKatana[id] && get_user_weapon(id) == CSW_KNIFE)
set_pev(id, pev_viewmodel2, HaveKnifeKatanaModel);

if(HaveKnifeDark[id] && get_user_weapon(id) == CSW_KNIFE)
set_pev(id, pev_viewmodel2, HaveKnifeDarkModel);
}


public Player_TakeDamage (iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits)
{
if(iInflictor == iAttacker && HaveKnifeTiger[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 3.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && HaveKnifeThor[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 3.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && HaveKnifeHarry[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 3.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && HaveKnifeDanger[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 4.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && HaveKnifeKataklism[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 4.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && HaveKnifeKatana[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 4.0);
return HAM_HANDLED;
}

if(iInflictor == iAttacker && HaveKnifeDark[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 4.0);
return HAM_HANDLED;
}

return HAM_IGNORED;
}

public ClCmdSayKnife(id)
{
if(HaveKnifeChoosen[id])
{
ChatColor(id, "!g[Furien] !nYou have already chosen a knife in this round");
return;
}

if(cs_get_user_team(id) == CS_TEAM_T)
{
ShowMenuKnife(id);
}
}

stock ChatColor(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);

replace_all(msg, 190, "!g", "^4"); // Green Color
replace_all(msg, 190, "!n", "^1"); // Default Color
replace_all(msg, 190, "!t", "^3"); // Team Color
replace_all(msg, 190, "!t2", "^0"); // Team2 Color

if (id) players[0] = id; else get_players(players, count, "ch");
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


05 Jan 2019 15:41
Profile multumesc ICQ YIM
Membru, skill 0
Membru, skill 0

Joined: 21 Nov 2015 11:02
Posts: 32
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Nu merge nici un knife cand iau un knife nu imi da nimic !


05 Jan 2019 17:23
Profile multumesc WWW
Moderator
Moderator
User avatar

Joined: 17 Dec 2013 19:51
Posts: 567
Location: Mystic Falls, Virginia
Detinator Steam: Da
SteamID: /id/csall
Reputatie: Moderator
Fost Membru Club eXtreamCS (o luna)
Fond eXtream: 0
Mutat in categoria corespunzatoare.

_________________
CUMPAR SMS / EXCHANGE PaySafeCard-PayPal


05 Jan 2019 17:42
Profile multumesc
Membru, skill 0
Membru, skill 0

Joined: 21 Nov 2015 11:02
Posts: 32
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
UPP!


06 Jan 2019 15:34
Profile multumesc WWW
Moderator ajutator
Moderator ajutator

Joined: 16 Feb 2014 16:28
Posts: 1525
Detinator Steam: Nu
CS Status: N-avem!
Detinator server CS: Zm.Darkcs.ro
Reputatie: Moderator Ajutator
Fond eXtream: 0
lasa pluginul default si modelul knife ului si ti l fac eu.

_________________
Inactiv pana dupa bac.


08 Jan 2019 20:49
Profile multumesc
Membru, skill 0
Membru, skill 0

Joined: 14 May 2017 22:26
Posts: 7
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Sper sati placa :ok:
Download:
| Afiseaza codul
https://www.dropbox.com/s/905ia92zxix0mqb/Menu%20Knife%201%20euro%20beta%201.rar?dl=1

PS: Nu l-am testat Da-mi PM daca e ceva


12 Jan 2019 10:04
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: Majestic-12 [Bot] and 37 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