INSIDE RESURSE

Resurse pentru toate jocurile online! samp, csgo, mape, muzica, filme, ps, divertisment, geforce, fzarea, muzica, clan, coduri, cfg, inside, resurse, servere, gata, facute, war, zone, pgl, long, nvid


Nu sunteti conectat. Conectati-va sau inregistrati-va

Furien Spawn Knife Mod

Por favor, faça o login para responder

Vezi subiectul anterior Vezi subiectul urmator In jos  Mesaj [Pagina 1 din 1]

#1vendME 

la data de Sam Apr 29, 2017 5:33 pm

avatar

Fondator
Fondator
Descriere: Acesta este primul meu plugin :"> , pentru Modul Furien, la fiecare inceput de runda la Furieni apare un menu cu Cutite, sunt 7 cutite diferite si cu damage diferit, primele 3 sunt free cu acelasi damage, altele 3 pe credite, si un knife numai pentru VIP, are damage x6 si primeste 255 HP, pluginul ruleaza pe nativele lui Askhanar de Furien Credits System

Descarcare: GirlShare | ZyppyShare

Nume: Furien Spawn Knife Mod
Versiune: 0.0.3
Link oficial: [Trebuie sa fiti inscris si conectat pentru a vedea acest link]

Sursa:
[sursa=SMA]
Cod:
/* Plugin generated by AMXX-Studio */
 
/* Plugin generated by AMXX-Studio */
 
/*
Changelog:
 
* v0.0.1 - Initial Release - 04.01.2014
* v0.0.2 - Update - 05.01.2014
* v0.0.3 - Update/Code optimized - 05.01.2014
* Thanks - HamletEagle
* Thanks - scosmynnnn
* Thanks - DaNe
*/
 
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
 
#pragma semicolon 1
 
new const PLUGIN[] = "Furien: Spawn Knife Mod";
new const VERSION[] = "0.0.3";
new const AUTHOR[] = "Adventx";
 
#define VIP_LEVEL ADMIN_LEVEL_H
#define is_user_vip(%1) (get_user_flags(%1) & VIP_LEVEL)
 
new bool: HaveIgnes[33];
new bool: HaveKatana[33];
new bool: HavexFother[33];
new bool: HaveNataKnife[33];
new bool: HaveDualKatana[33];
new bool: HaveHuntedKnife[33];
new bool: HaveRegeneratorElf[33];
 
new bool: HaveKnifeChoosen[33];
 
new const HaveIgnesModel[66] = "models/furien_knife/v_ignes.mdl";
new const HaveKatanaModel[66] = "models/furien_knife/v_katana.mdl";
new const HavexFotherModel[66] = "models/furien_knife/v_xfother.mdl";
 
new const HaveNataKnifeModel[66] = "models/furien_knife/v_nata_knife.mdl";
new const HaveDualKatanaModel[66] = "models/furien_knife/v_dual_katana.mdl";
new const HaveHuntedKnifeModel[66] = "models/furien_knife/v_hunted_knife.mdl";
new const HaveRegeneratorElfModel[66] = "models/furien_knife/v_elf_christmas.mdl";
 
//Native
native fcs_get_user_credits(id);
native fcs_set_user_credits(id, credits);
 
public plugin_precache()
{
precache_model(HaveIgnesModel);
precache_model(HaveKatanaModel);
precache_model(HavexFotherModel);
precache_model(HaveNataKnifeModel);
precache_model(HaveDualKatanaModel);
precache_model(HaveHuntedKnifeModel);
precache_model(HaveRegeneratorElfModel);
}
 
public client_putinserver(id)
{
HaveIgnes[id] = false;
HaveKatana[id] = false;
HavexFother[id] = false;
HaveNataKnife[id] = false;
HaveDualKatana[id] = false;
HaveHuntedKnife[id] = false;
HaveRegeneratorElf[id] = false;
}
 
public client_disconnect(id)
{
client_putinserver(id);
}
 
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))
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
ShowMenuKnife(id);
HaveKnifeChoosen[id] = false;
 
HaveIgnes[id] = false;
HaveKatana[id] = false;
HavexFother[id] = false;
HaveNataKnife[id] = false;
HaveDualKatana[id] = false;
HaveHuntedKnife[id] = false;
HaveRegeneratorElf[id] = false;
}
}
}
 
public ShowMenuKnife(id)
{
new show_credits[128];
formatex(show_credits, charsmax(show_credits), "\rFurien Knife Menu^n\yCredite: \w%d", fcs_get_user_credits(id));
 
new menu = menu_create (show_credits, "KnifeMenu");
 
menu_additem (menu, "Ignes", "1");
menu_additem (menu, "Katana", "2");
menu_additem (menu, "xFother^n", "3");
 
menu_additem (menu, "Nata Knife \r[ \y15 Credits \r]", "4");
menu_additem (menu, "Dual Katana \r[ \y20 Credits \r]", "5");
menu_additem (menu, "Hunted Knife \r[ \y25 Credits \r]", "6");
 
if(is_user_vip(id))
{
menu_additem (menu, "Regenerator Elf \r[ \rONLY VIP \r]", "7");
}
 
else
{
menu_additem (menu, "Regenerator Elf \r[ \dONLY VIP \r]", "7");
}
 
menu_setprop (menu, MPROP_EXIT, MEXIT_ALL);
menu_display (id, menu, 0);
 
return 1;
}
 
public KnifeMenu (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] !nTrebue sa fii in viata pentru a alege un cutit");
}
 
else
{
HaveIgnes[id] = true;
HaveKatana[id] = false;
HavexFother[id] = false;
HaveNataKnife[id] = false;
HaveDualKatana[id] = false;
HaveHuntedKnife[id] = false;
HaveRegeneratorElf[id] = false;
CurrentWeapon(id);
 
HaveKnifeChoosen[id] = true;
 
ChatColor(id, "!g[Furien] !nAti ales cutitul !tIgnes");
}
}
 
case 2:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nTrebue sa fii in viata pentru a alege un cutit");
}
 
else
{
HaveIgnes[id] = false;
HaveKatana[id] = true;
HavexFother[id] = false;
HaveNataKnife[id] = false;
HaveDualKatana[id] = false;
HaveHuntedKnife[id] = false;
HaveRegeneratorElf[id] = false;
CurrentWeapon(id);
 
HaveKnifeChoosen[id] = true;
 
ChatColor(id, "!g[Furien] !nAti ales cutitul !tKatana");
}
}
 
case 3:
{
 
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nTrebue sa fii in viata pentru a alege un cutit");
}
 
else
{
HaveIgnes[id] = false;
HaveKatana[id] = false;
HavexFother[id] = true;
HaveNataKnife[id] = false;
HaveDualKatana[id] = false;
HaveHuntedKnife[id] = false;
HaveRegeneratorElf[id] = false;
CurrentWeapon(id);
 
HaveKnifeChoosen[id] = true;
 
ChatColor(id, "!g[Furien] !nAti ales cutitul !txFother");
}
}
 
case 4:
{
new iCredits = fcs_get_user_credits (id) - 15;
 
if (iCredits < 0)
{
ChatColor(id, "!g[Furien] !nNu aveti destule credite pentru a cumpara !tNata Knife");
ShowMenuKnife(id);
return 1;
}
 
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nTrebue sa fii in viata pentru a alege un cutit");
}
 
else
{
HaveIgnes[id] = false;
HaveKatana[id] = false;
HavexFother[id] = false;
HaveNataKnife[id] = true;
HaveDualKatana[id] = false;
HaveHuntedKnife[id] = false;
HaveRegeneratorElf[id] = false;
CurrentWeapon(id);
 
HaveKnifeChoosen[id] = true;
 
fcs_set_user_credits(id, iCredits);
 
ChatColor(id, "!g[Furien] !nAti cumparat cutitul !tNata Knife !npentru !t15 credite");
}
}
 
case 5:
{
new iCredits = fcs_get_user_credits (id) - 20;
 
if (iCredits < 0)
{
ChatColor(id, "!g[Furien] !nNu aveti destule credite pentru a cumpara !tDual Katana");
ShowMenuKnife(id);
return 1;
}
 
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nTrebue sa fii in viata pentru a alege un cutit");
}
 
else
{
HaveIgnes[id] = false;
HaveKatana[id] = false;
HavexFother[id] = false;
HaveNataKnife[id] = false;
HaveDualKatana[id] = true;
HaveHuntedKnife[id] = false;
HaveRegeneratorElf[id] = false;
CurrentWeapon(id);
 
HaveKnifeChoosen[id] = true;
 
fcs_set_user_credits(id, iCredits);
 
ChatColor(id, "!g[Furien] !nAti cumparat cutitul !tDual Katana !npentru !t20 credite");
}
}
 
case 6:
{
new iCredits = fcs_get_user_credits (id) - 25;
 
if (iCredits < 0)
{
ChatColor(id, "!g[Furien] !nNu aveti destule credite pentru a cumpara !tHuned Knife");
ShowMenuKnife(id);
return 1;
}
 
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nTrebue sa fii in viata pentru a alege un cutit");
}
 
else
{
HaveIgnes[id] = false;
HaveKatana[id] = false;
HavexFother[id] = false;
HaveNataKnife[id] = false;
HaveDualKatana[id] = false;
HaveHuntedKnife[id] = true;
HaveRegeneratorElf[id] = false;
CurrentWeapon(id);
 
HaveKnifeChoosen[id] = true;
 
fcs_set_user_credits(id, iCredits);
 
ChatColor(id, "!g[Furien] !nAti cumparat cutitul !tHunted Knife !npentru !t25 credite");
}
}
 
case 7:
{
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nTrebue sa fii in viata pentru a alege un cutit");
}
 
if(is_user_vip(id))
{
HaveIgnes[id] = false;
HaveKatana[id] = false;
HavexFother[id] = false;
HaveNataKnife[id] = false;
HaveDualKatana[id] = false;
HaveHuntedKnife[id] = false;
HaveRegeneratorElf[id] = true;
CurrentWeapon(id);
 
HaveKnifeChoosen[id] = true;
 
set_user_health(id, get_user_health(id) +155);
 
ChatColor(id, "!g[Furien VIP] !nAti ales cutitul !tRegenerator Elf");
}
 
else
{
ChatColor(id, "!g[Furien VIP] !nPentru mai multe detalii add !gY!M: !tadventx_98yahoo.com");
ShowMenuKnife(id);
}
}
}
menu_destroy (menu);
return 1;
}
 
public CurrentWeapon(id)
{
if(HaveIgnes [id] && get_user_weapon(id) == CSW_KNIFE)
{
set_pev(id, pev_viewmodel2, HaveIgnesModel);
}
 
if(HaveKatana [id] && get_user_weapon(id) == CSW_KNIFE)
{
set_pev(id, pev_viewmodel2, HaveKatanaModel);
}
 
if(HavexFother [id] && get_user_weapon(id) == CSW_KNIFE)
{
set_pev(id, pev_viewmodel2, HavexFotherModel);
}
 
if(HaveNataKnife [id] && get_user_weapon(id) == CSW_KNIFE)
{
set_pev(id, pev_viewmodel2, HaveNataKnifeModel);
}
 
if(HaveDualKatana [id] && get_user_weapon(id) == CSW_KNIFE)
{
set_pev(id, pev_viewmodel2, HaveDualKatanaModel);
}
 
if(HaveHuntedKnife [id] && get_user_weapon(id) == CSW_KNIFE)
{
set_pev(id, pev_viewmodel2, HaveHuntedKnifeModel);
}
 
if(HaveRegeneratorElf [id] && get_user_weapon(id) == CSW_KNIFE)
{
set_pev(id, pev_viewmodel2, HaveRegeneratorElfModel);
}
}
 
public Player_TakeDamage (iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits )
{
if(iInflictor == iAttacker && HaveIgnes [iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 2.0);
return HAM_HANDLED;
}
 
if(iInflictor == iAttacker && HaveKatana [iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 2.0);
return HAM_HANDLED;
}
 
if(iInflictor == iAttacker && HavexFother [iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 2.0);
return HAM_HANDLED;
}
 
if(iInflictor == iAttacker && HaveNataKnife [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 && HaveDualKatana [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 && HaveHuntedKnife [iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 5.0);
return HAM_HANDLED;
}
 
if(iInflictor == iAttacker && HaveRegeneratorElf [iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_KNIFE && cs_get_user_team(iAttacker) == CS_TEAM_T)
{
SetHamParamFloat(4, fDamage * 6.0);
return HAM_HANDLED;
}
return HAM_IGNORED;
}
 
public ClCmdSayKnife(id)
{
if(cs_get_user_team(id) == CS_TEAM_T && HaveKnifeChoosen[id])
{
ChatColor(id, "!g[Furien] !nTi-ai ales deja !tKnife !nin runda aceasta, asteapta pina runda urmatoare!" );
return 1;
}
 
if(cs_get_user_team(id) == CS_TEAM_CT || HaveKnifeChoosen[id] || !is_user_alive(id))
{
return 1;
}
ShowMenuKnife(id);
return 0;
}
 
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();
}
}
}
}
 
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/[/sursa]
 
Sursa:
[sursa=Versiunea lui cyby]
/* Plugin generated by AMXX-Studio */
 
/*
Changelog:
 
* v0.0.1 - Initial Release - 04.01.2014
* v0.0.2 - Update - 05.01.2014
* v0.0.3 - Update/Code optimized - 05.01.2014
* v0.0.4 - Update/Code optimized 100% - 10.01.2014
* Thanks - HamletEagle
* Thanks - scosmynnnn
* Thanks - DaNe
* Thanks - cyby
*/
 
// Scurtat foarte muult, eliminat functii degeaba (cyby)
/*  Lungesc codul.
Nu trebuia introdusa functia client_putin respectiv disconnect odata ce dadea la toti knife 0 la spawn (deci useless).
Buguri la vizualizarea skinului la CT al cutitului.
Inlaturat if mult si inlocuit cu switch.
return HAM_HANDLED; sters ca n-are niciun scop, daca pui SetHamParamFloat(4, fDamage * 2.0); deja ii modifica damage-ul, deci merge prin ignorare, nu handled
sa blochezi comunicarea cu engine-ul.
Nu mai folosi multe cazuri in if. Gen: if(cs_get_user_team(id) == CS_TEAM_T && use_knife[id]), mai ok sa returnezi daca nu e din echipa X si apoi returnezi daca
variabila e falsa.
Ma rog n-are rost sa ma lungesc ca n-am prea mult timp la dispozitie, e 2:40 noaptea si am scoala si trebuie sa ma trezesc la 6:30.
Noapte buna.
 
PS: Nu mai furati curent ca Hades ca nu stiu ce, N-AI ALTA METODA DE A FACE UN PLUGIN SIMILAR, DACA STIE CINEVA SA-MI ARATE SI MIE.
*/
 
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
 
#pragma semicolon 1
 
new const PLUGIN[] = "Furien: Spawn Knife Mod";
new const VERSION[] = "0.0.4";
new const AUTHOR[] = "Adventx | cyby";
 
#define VIP_LEVEL  ADMIN_LEVEL_H
#define is_user_vip(%1)  (get_user_flags(%1) & VIP_LEVEL)
 
new knife[33];
 
new const KNIFES[][] =
{
"",
"models/furien_knife/v_ignes.mdl", // 1
"models/furien_knife/v_katana.mdl", // 2
"models/furien_knife/v_xfother.mdl", // 3
"models/furien_knife/v_nata_knife.mdl", // 4
"models/furien_knife/v_dual_katana.mdl", // 5
"models/furien_knife/v_hunted_knife.mdl", // 6
"models/furien_knife/v_elf_christmas.mdl" // 7 [only vip]
};
 
new const NAME_KNIFES[][] =
{
"",
"Ignes", // 1
"Katana", // 2
"xFother", // 3
"Nata Knife", // 4
"Dual Katana", // 5
"Hunted Knife", // 6
"Regenerator Elf" // 7 [only vip]
};
 
new const COST[] =
{
0, // Nu conteaza
0, // 1
0, // 2
0, // 3
15, // 4
20, // 5
25, // 6
1284182 // VIP [pentru item vip pune cost 1284182 pentru a aparea in lista de meniuri ONLY VIP]
};
 
new const CONTACT[] = "ID";
 
//Native
native fcs_get_user_credits(id);
native fcs_set_user_credits(id, credits);
 
public plugin_precache()
{
for(new i = 1; i < sizeof KNIFES; i++)
precache_model(KNIFES[i]);
}
 
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
 
register_clcmd("say /knife","ClCmdSayKnife");
 
RegisterHam(Ham_Spawn, "player", "hamPlayerSpawnPost", 1);
register_event("CurWeapon", "CurrentWeapon", "be", "1=1");
RegisterHam(Ham_TakeDamage, "player", "Player_TakeDamage");
}
 
public ShowMenuKnife(id)
{
static show_credits[128], mesaj[60], numar[32];
formatex(show_credits, charsmax(show_credits), "\rFurien Knife Menu^n\yCredite: \w%d", fcs_get_user_credits(id));
 
new menu = menu_create (show_credits, "KnifeMenu");
for(new i = 1; i < sizeof NAME_KNIFES; i++)
{
formatex(numar, charsmax(numar) - 1, "%d", i);
if(COST[i] < 1)
formatex(mesaj, charsmax(mesaj) - 1, "%s", NAME_KNIFES[i]);
else if(COST[i] == 1284182)
formatex(mesaj, charsmax(mesaj) - 1, "%s  \y[ O N L Y  V I P ]", NAME_KNIFES[i]);
else
formatex(mesaj, charsmax(mesaj) - 1, "%s  \r[ C O S T : %d ]", NAME_KNIFES[i], COST[i]);
menu_additem(menu, mesaj, numar);
}
menu_setprop (menu, MPROP_EXIT, MEXIT_ALL);
menu_display (id, menu, 0);
 
return 1;
}
 
public KnifeMenu (id, menu, item)
{
if(item == MENU_EXIT)
return 1;
 
if(get_user_team(id) != 1)
return 1;
 
if(!is_user_alive(id))
{
ChatColor(id, "!g[Furien] !nTrebue sa fii in viata pentru a alege un cutit.");
return 1;
}
 
if(knife[id] > 0)
{
ChatColor(id, "!g[Furien] !nAi ales deja un cutit.");
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 .. 3:
{
knife[id] = key;
CurrentWeapon(id);
ChatColor(id, "!g[Furien] !nAti ales cutitul !t%s.", NAME_KNIFES[key]);
}
case 4 .. 6:
{
new iCredits = fcs_get_user_credits(id) - COST[key];
if(iCredits < 0)
{
ChatColor(id, "!g[Furien] !nNu aveti destule credite pentru a cumpara !t%s.", NAME_KNIFES[key]);
return 1;
}
knife[id] = key;
CurrentWeapon(id);
fcs_set_user_credits(id, iCredits);
ChatColor(id, "!g[Furien] !nAti cumparat cutitul !t%s !npentru !t%d credite.", NAME_KNIFES[key], COST[key]);
}
case 7:
{
if(!is_user_vip(id))
{
ChatColor(id, "!g[Furien VIP] !nPentru mai multe detalii add !gY!M: !t%s.", CONTACT);
ShowMenuKnife(id);
return 1;
}
 
knife[id] = key;
set_pev(id, pev_health, pev(id, pev_health) + 155.0);
CurrentWeapon(id);
ChatColor(id, "!g[Furien VIP] !nAti ales cutitul !t%s.", NAME_KNIFES[key]);
}
}
menu_destroy (menu);
return 1;
}
 
public hamPlayerSpawnPost(id)
{
if(!is_user_alive(id))
return;
 
if(get_user_team(id) == 1)
{
knife[id] = 0;
set_task(0.1, "ShowMenuKnife", id);
}
}
 
public CurrentWeapon(id)
{
if(get_user_weapon(id) == CSW_KNIFE && (knife[id] > 0))
set_pev(id, pev_viewmodel2, KNIFES[knife[id]]);
}
 
public Player_TakeDamage (iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits )
{
if(iVictim == iAttacker || !is_user_connected(iAttacker) || get_user_team(iAttacker) != 1)
return HAM_IGNORED;
 
switch(knife[iAttacker])
{
case 1 .. 3: fDamage = fDamage * 2.0;
case 4 .. 7: fDamage = fDamage * (float(knife[iAttacker]) - 1.0);
}
SetHamParamFloat(4, fDamage);
return HAM_IGNORED;
}
 
public ClCmdSayKnife(id)
{
if(get_user_team(id) != 1 || !is_user_alive(id))
return 1;
 
if(knife[id] > 0)
{
ChatColor(id, "!g[Furien] !nTi-ai ales deja !tKnife !nin runda aceasta, asteapta pina runda urmatoare!" );
return 1;
}
ShowMenuKnife(id);
return 0;
}
 
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();
}
}
}
}[/sursa]

Instalare:
1. Fisierul furien_spawn_knife_mod.sma il puneti in addons/amxmodx/scripting
2. Fisierul furien_spawn_knife_mod.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
furien_spawn_knife_mod.amxx debug

Comenzi publice (se tasteaza in joc prin apasarea tastei Y):
/knife - in caz ca nu apare meniul sau dispare, asta se intimpla mai degraba cand se da votemap sau altele

Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):
- Amxmodx
- Cstrike
- Fakemeta
- Hamsandwich
- Fun


http://resurseinside.forumgratuit.ro

Vezi subiectul anterior Vezi subiectul urmator Sus  Mesaj [Pagina 1 din 1]

Por favor, faça o login para responder

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum