Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zawartość użytkownika Pazdzioch

Odnotowano 22 pozycji dodanych przez Pazdzioch (Rezultat wyszukiwania ograniczony do daty: 07.06.2023 )


Sortuj według                Sortuj  

#373839 Przerobienie zapisu

Napisano przez Pazdzioch w 02.03.2012 07:44 w Pluginy

witam, proszę o przerobienie tego exp moda zeby exp zapisywał sie na nick i od razu skompilowanie do pliku .amxx po przerobieniu. Poprzedni jak mi kolega kompilował plik to podawal mi jeszcze plik colorchat.inc zeby plugin działał.
Oto SMA w załączniku*

Załączone pliki




#372672 pluginem xp mod by funfel

Napisano przez Pazdzioch w 28.02.2012 19:08 w Problemy z pluginami

oto .SMA


http://speedy.sh/MffWV/expmod.sma



#372235 pluginem xp mod by funfel

Napisano przez Pazdzioch w 27.02.2012 21:20 w Problemy z pluginami

a dokładniej? bo sie mecze pół dnia i zadnego postępu



#372082 pluginem xp mod by funfel

Napisano przez Pazdzioch w 27.02.2012 18:29 w Problemy z pluginami

witam mam problem z pluginem xp mod by funfel. Problem jest widoczny gołym okiem na SS w załączniku. proszę o pomoc

Załączone pliki




#368627 DMG HE

Napisano przez Pazdzioch w 21.02.2012 19:44 w Szukam pluginu

syczaj, ten plugin nie dziala, dalej sa takie same obrazenia, a co do ciebie nakupenda to chce sam do he a nie do wszystkich broni .



#368591 DMG HE

Napisano przez Pazdzioch w 21.02.2012 18:37 w Szukam pluginu

witam, poszukuje pluginy, którym moge zmniejszyc obrazenia z he granade, np. max do 50



#366354 [HNS] expmod pomoc [PlikLang]

Napisano przez Pazdzioch w 17.02.2012 22:28 w Problemy

Witam serdecznie , posiadam plugin expmoda na serwer easyblock , sma + amxx.
Lecz nie mam pliku expmod.txt który pakuje sie do data/lang
I przez to jest błąd i nie chce mi się połączyć z serwerem.
Da się jakoś zrobić ten plik czy coś?

proszę o pomoc :)



#353521 Przerobienie VIP

Napisano przez Pazdzioch w 25.01.2012 10:16 w Pluginy

dzięki, leci rep dla obu za pomoc ;d



#353371 Przerobienie VIP

Napisano przez Pazdzioch w 24.01.2012 20:10 w Pluginy

to jak przerobi mi ktos ten plugin ?>



#352802 Przerobienie VIP

Napisano przez Pazdzioch w 22.01.2012 20:01 w Pluginy

proszę o przerobienie mojego vipa, tzn chce zeby vip w ct nie dostawal granatów. O to sma:
(w tt granaty maja zostac)


#define DAMAGE_RECIEVED
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
new mpd, mkb, mhb
new maxplayers
new g_MsgSync
new health_add
new health_hs_add
new health_max
new nKiller
new nKiller_hp
new nHp_add
new nHp_max
#if defined DAMAGE_RECIEVED
new g_MsgSync2
#endif
public plugin_init()
{
register_plugin("VIP part1", "2.0", "Dunno")
mpd = register_cvar("money_per_damage","1")
mkb = register_cvar("money_kill_bonus","100")
mhb = register_cvar("money_hs_bonus","200")
health_add = register_cvar("amx_vip_hp", "20")
health_hs_add = register_cvar("amx_vip_hp_hs", "40")
health_max = register_cvar("amx_vip_max_hp", "200")
register_event("Damage","Damage","b")
register_event("DeathMsg","death_msg","a")
register_logevent("logevent_Round_Start", 2, "1=Round_Start");
register_event("DeathMsg", "hook_death", "a", "1>0")
maxplayers = get_maxplayers()
register_event("Damage", "on_damage", "b", "2!0", "3=0", "4!0")
g_MsgSync = CreateHudSyncObj()
#if defined DAMAGE_RECIEVED
g_MsgSync2 = CreateHudSyncObj()
#endif
}
public on_damage(id)
{
new attacker = get_user_attacker(id)
#if defined DAMAGE_RECIEVED
// id should be connected if this message is sent, but lets check anyway
if ( is_user_connected(id) && is_user_connected(attacker) )
if (get_user_flags(attacker) & ADMIN_LEVEL_H)
{
new damage = read_data(2)
set_hudmessage(255, 0, 0, 0.45, 0.50, 2, 0.1, 4.0, 0.1, 0.1, -1)
ShowSyncHudMsg(id, g_MsgSync2, "%i^n", damage)
#else
if ( is_user_connected(attacker) && if (get_user_flags(attacker) & ADMIN_LEVEL_H) )
{
new damage = read_data(2)
#endif
set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1)
ShowSyncHudMsg(attacker, g_MsgSync, "%i^n", damage)
}
}
public Damage(id)
{
new weapon, hitpoint, attacker = get_user_attacker(id,weapon,hitpoint)
if(attacker<=maxplayers && is_user_alive(attacker) && attacker!=id)
if (get_user_flags(attacker) & ADMIN_LEVEL_H)
{
new money = read_data(2) * get_pcvar_num(mpd)
if(hitpoint==1) money += get_pcvar_num(mhb)
cs_set_user_money(attacker,cs_get_user_money(attacker) + money)
}
}
public death_msg()
{
if(read_data(1)<=maxplayers && read_data(1) && read_data(1)!=read_data(2)) cs_set_user_money(read_data(1),cs_get_user_money(read_data(1)) + get_pcvar_num(mkb) - 300)
}
public logevent_Round_Start()
{
new players[32], player, pnum;
get_players(players, pnum, "a");
for(new i = 0; i < pnum; i++)
{
player = players[i];
if(get_user_flags(player) & ADMIN_LEVEL_H)
{
give_item(player, "weapon_hegrenade");
give_item(player, "weapon_flashbang");
give_item(player, "weapon_flashbang");
give_item(player, "weapon_smokegrenade");
give_item(player, "item_kevlar");
give_item(player, "item_assaultsuit");
give_item(player, "item_thighpack");
}
}
}
public hook_death()
{
// Killer id
nKiller = read_data(1)

if ( (read_data(3) == 1) && (read_data(5) == 0) )
{
nHp_add = get_pcvar_num (health_hs_add)
}
else
nHp_add = get_pcvar_num (health_add)
nHp_max = get_pcvar_num (health_max)
// Updating Killer HP
if(!(get_user_flags(nKiller) & ADMIN_LEVEL_H))
return;
nKiller_hp = get_user_health(nKiller)
nKiller_hp += nHp_add
// Maximum HP check
if (nKiller_hp > nHp_max) nKiller_hp = nHp_max
set_user_health(nKiller, nKiller_hp)
// Hud message "Healed +20/+40 hp"
set_hudmessage(0, 255, 0, -1.0, 0.15, 0, 1.0, 1.0, 0.1, 0.1, -1)
show_hudmessage(nKiller, "Healed +%d hp", nHp_add)
// Screen fading
message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, nKiller)
write_short(1<<10)
write_short(1<<10)
write_short(0x0000)
write_byte(0)
write_byte(0)
write_byte(200)
write_byte(75)
message_end()

}



#350264 Przerobienie Sklepiku HNS

Napisano przez Pazdzioch w 16.01.2012 18:13 w Pluginy

proszę o przerobienie tego sklepiku mianowicie chce zeby mi ktos zrobil respienie 1x na runde

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

#define PLUGIN "HnS MyShop"
#define VERSION "1.0"
#define AUTHOR "R3X"

#define LOTTO_SHOT 25

enum Color {
NORMAL = 1, // clients scr_concolor cvar color
GREEN, // Green
TEAM_COLOR, // Red, grey, blue
GREY, // grey
RED, // Red
BLUE, // Blue
};

new TeamName[][] = {
"",
"TERRORIST",
"CT",
"SPECTATOR"
};
enum HnSShop{
ITEM_FLASH,
ITEM_HE,
ITEM_SG,
ITEM_RESPAWN,
ITEM_SUPERHE,
ITEM_LOTTO
};
enum HnSShopLotto{
LOTTO_INV,
LOTTO_SPEED,
LOTTO_pHP,
LOTTO_pFRAGS,
LOTTO_mFRAGS,
};

#define fm_create_entity(%1) engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, %1))
#define KeysGanianyShop (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<9) // Keys: 12340

new gmsgScoreInfo;

new gcvarItems[HnSShop];
new gcvarSuperHEPow;
new gcvarPlusFragPow, gcvarMinusFragPow;
new gcvarSuperSpeedPow;
new gcvarHPPow;

new bool:gbSpeed[33];
new bool:gbLotted[33];
new bool:gbSuperHe[33];
new bool:gbgranaty[33];

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

register_clcmd("say kup","ShowGanianyShop");
register_clcmd("say /kup","ShowGanianyShop");
register_clcmd("say_team kup","ShowGanianyShop");
register_clcmd("say_team /kup","ShowGanianyShop");

gcvarItems[ITEM_FLASH]= register_cvar("ganiany_flash_cost","5");
gcvarItems[ITEM_HE]= register_cvar("ganiany_he_cost","7");
gcvarItems[ITEM_SG]= register_cvar("ganiany_smoke_cost","8");
gcvarItems[ITEM_RESPAWN]=register_cvar("ganiany_respawn_cost","12");
gcvarItems[ITEM_SUPERHE]=register_cvar("ganiany_superhe_cost","15");
gcvarItems[ITEM_LOTTO]=register_cvar("ganiany_lotto_cost","6");

gcvarHPPow=register_cvar("ganiany_hp_power","20");

gcvarPlusFragPow=register_cvar("ganiany_plus_frag_power","6");
gcvarMinusFragPow=register_cvar("ganiany_minus_frag_power","6");

gcvarSuperHEPow=register_cvar("ganiany_superhe_power","300");
gcvarSuperSpeedPow=register_cvar("ganiany_superspeed_power","290");

register_event("HLTV", "eventRoundInit", "a", "1=0", "2=0");
register_event("CurWeapon","eventCurWeapon","be","1=1");

RegisterHam(Ham_TakeDamage, "player","fwTakeDamage",1);

register_forward(FM_SetModel, "fwSetModel",1);

register_menucmd(register_menuid("GanianyShop"), KeysGanianyShop, "PressedGanianyShop")
gmsgScoreInfo=get_user_msgid("ScoreInfo");

//register_clcmd("test","test");
}
public test(id){
if(cs_get_user_bpammo(id, CSW_HEGRENADE)==0)
fm_give_item(id, "weapon_hegrenade");
gbSuperHe[id]=true;
}
public fwSetModel(ent, const model[]){
new szClass[32];
pev(ent, pev_classname, szClass, 31);
if(!equal(szClass, "grenade"))
return FMRES_IGNORED;
if(equal(model[7],"w_hegrenade.mdl")){
new id=pev(ent, pev_owner);
if(is_user_connected(id)){
if(gbSuperHe[id]){
set_pev(ent, pev_iuser1, 1);

gbSuperHe[id]=false;
}
}
}
return FMRES_IGNORED;
}
public fwTakeDamage(this, idinflictor, idattacker, Float:damage, damagebits){
if(is_user_connected(idattacker) && idinflictor!=idattacker/* && this!=idattacker*/){
if(damagebits==16777216){
//Nade Attack
if(pev(idinflictor, pev_iuser1)){
makeBoom(this, idinflictor);
}
}
}
}
public makeBoom(id, ent){

new Float:fStart[3], Float:fEnd[3];
pev(id, pev_origin, fStart);
pev(ent, pev_origin, fEnd);


getNormal(fStart, fEnd,fStart);

new Float:fPower=get_pcvar_float(gcvarSuperHEPow);
fStart[0] *= fPower;
fStart[1] *= fPower;
fStart[2] *= -fPower;

if(pev(id, pev_flags)&FL_ONGROUND)
fStart[2] += 45.0;

set_pev(id, pev_velocity, fStart);

}
stock getNormal(const Float:o1[3], const Float:o2[3], Float:normal[3]){
normal[0] = o1[0] - o2[0];
normal[1] = o1[1] - o2[1];
normal[2] = - o1[2] + o2[2];

vector_to_angle(normal, normal);
angle_vector(normal, ANGLEVECTOR_FORWARD, normal);
}
public eventCurWeapon(id){
if(gbSpeed[id]){
set_superspeed(id);
}
}
public eventAmmoX(id){
if(gbSuperHe[id]){
if(cs_get_user_bpammo(id, CSW_HEGRENADE)==0)
gbSuperHe[id]=false;
}

}
set_superspeed(id){
new Float:SUPERSPEED=get_pcvar_float(gcvarSuperSpeedPow);
set_pev(id, pev_maxspeed, SUPERSPEED);
client_cmd(id, "cl_forwardspeed %.1f",SUPERSPEED);
client_cmd(id, "cl_backspeed %.1f",SUPERSPEED);
client_cmd(id, "cl_sidespeed %.1f",SUPERSPEED);
}
public client_putinserver(id){
gbSpeed[id]=false;
gbLotted[id]=false;
gbgranaty[id]=false;
}
public eventRoundInit(){
for(new i=1;i<33;i++){
gbSpeed[i]=false;
gbLotted[i]=false;
gbgranaty[i]=false;
}
}
public refreshFrags(id){
new ideaths=cs_get_user_deaths(id);
new ifrags=pev(id, pev_frags);
new kteam=_:cs_get_user_team(id);

message_begin( MSG_ALL, gmsgScoreInfo, {0,0,0}, 0 );
write_byte( id );
write_short( ifrags );
write_short( ideaths);
write_short( 0 );
write_short( kteam );
message_end();
}
stock fm_give_item( index, const item[] ) {
if (!equal(item, "weapon_", 7) && !equal(item, "ammo_", 5) && !equal(item, "item_", 5))
return 0;

new ent = fm_create_entity(item);
if (!pev_valid(ent))
return 0;

new Float:origin[3];
pev(index, pev_origin, origin);
set_pev(ent, pev_origin, origin);
set_pev(ent, pev_spawnflags, pev(ent, pev_spawnflags) | SF_NORESPAWN);
dllfunc(DLLFunc_Spawn, ent);

new save = pev(ent, pev_solid);
dllfunc(DLLFunc_Touch, ent, index);
if (pev(ent, pev_solid) != save)
return ent;

engfunc(EngFunc_RemoveEntity, ent);

return -1;
}
stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16) {
new Float:RenderColor[3]
RenderColor[0] = float®
RenderColor[1] = float(g)
RenderColor[2] = float( B)

set_pev(entity, pev_renderfx, fx)
set_pev(entity, pev_rendercolor, RenderColor)
set_pev(entity, pev_rendermode, render)
set_pev(entity, pev_renderamt, float(amount))

return 1
}

public ShowGanianyShop(id) {
new CsTeams:iTeam=cs_get_user_team(id);
if(iTeam!=CS_TEAM_CT && iTeam!=CS_TEAM_T){
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Dostepny tylko dla CT i TE");
return PLUGIN_HANDLED;
}
new szMenu[256];
formatex(szMenu, 255,"\yGaniany Sklep^n\w^n\r1.\w Flash - \y%d fragi^n\r2.\w He Grenade - \y%d fragi^n\r3.\w Smoke - \y%d fragow^n\r4.\w Respawn - \y%d fragow^n\r5.\w SuperHe - \y%d fragow^n\r6.\w Loteria - \y%d fragow^n^n\r0.\w Wyjscie",
get_pcvar_num(gcvarItems[ITEM_FLASH]), get_pcvar_num(gcvarItems[ITEM_HE]),get_pcvar_num(gcvarItems[ITEM_SG]),get_pcvar_num(gcvarItems[ITEM_RESPAWN]), get_pcvar_num(gcvarItems[ITEM_SUPERHE]), get_pcvar_num(gcvarItems[ITEM_LOTTO]));
show_menu(id, KeysGanianyShop, szMenu, -1, "GanianyShop") // Display menu
return PLUGIN_CONTINUE;
}

public PressedGanianyShop(id, key) {
if(key==9)
return PLUGIN_HANDLED;
/* Menu:
* Ganiany Sklep
*
* 1. Flash - 5 fragi
* 2. He Grenade - 7 fragi
* 3. Smoke - 8 fragow
* 4. Respawn - 12 fragow
* 5. SuperHE - 15 fragow
*
* 0. Wyście
*/
new iFrags=pev(id, pev_frags);
iFrags-=get_pcvar_num(gcvarItems[HnSShop:key]);
if(iFrags<0){
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Masz za malo fragow");
return PLUGIN_HANDLED;
}

switch (key) {
case 0: { // 1
if(!is_user_alive(id)) {
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Musisz byc zywy!");
return PLUGIN_HANDLED;
}
if(cs_get_user_bpammo(id, CSW_FLASHBANG)>=2) {
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Masz juz 2 flashbangi.");
return PLUGIN_HANDLED;
}
fm_give_item(id, "weapon_flashbang");
}
case 1: { // 2
if(!is_user_alive(id)) {
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Musisz byc zywy!");
return PLUGIN_HANDLED;
}
if(cs_get_user_bpammo(id, CSW_HEGRENADE)>=1) {
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Masz juz granat.");
return PLUGIN_HANDLED;
}
if(gbgranaty[id]){
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Juz kupiles granata w tej rundzie");
return PLUGIN_HANDLED;
}
fm_give_item(id, "weapon_hegrenade");
gbgranaty[id]=true;
}
case 2: { // 3
if(!is_user_alive(id)) {
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Musisz byc zywy!");
return PLUGIN_HANDLED;
}
if(cs_get_user_bpammo(id, CSW_SMOKEGRENADE)>=1) {
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Masz juz zamrazajacy granat.");
return PLUGIN_HANDLED;
}
if(gbgranaty[id]){
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Juz kupiles granata w tej rundzie");
return PLUGIN_HANDLED;
}
fm_give_item(id, "weapon_smokegrenade");
gbgranaty[id]=true;
}
case 3: { // 4
if(is_user_alive(id)) {
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Musisz byc martwy!");
return PLUGIN_HANDLED;
}
set_task(0.5, "respawn_player",id);


}
case 4: { // 5
if(!is_user_alive(id)) {
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Musisz byc zywy!");
return PLUGIN_HANDLED;
}
if(gbgranaty[id]){
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Juz kupiles granata w tej rundzie");
return PLUGIN_HANDLED;
}
fm_give_item(id, "weapon_hegrenade");
gbSuperHe[id]=true;
gbgranaty[id]=true;
}
case 5: { //6
if(!is_user_alive(id)) {
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Musisz byc zywy!");
return PLUGIN_HANDLED;
}
if(gbLotted[id]){
ColorChat(id, BLUE, "^x04[Ganiany Sklep]^x01 Juz raz losowales w tej rundzie!");
return PLUGIN_HANDLED;
}
set_pev(id, pev_frags, float(iFrags));
random_lottoitem(id);
gbLotted[id]=true;
refreshFrags(id);
return PLUGIN_CONTINUE;
}
}
set_pev(id, pev_frags, float(iFrags));
refreshFrags(id);
return PLUGIN_CONTINUE;
}
random_lottoitem(id){
new CsTeams:iTeam=cs_get_user_team(id);
new Color:iColor;
if(iTeam==CS_TEAM_CT)
iColor=BLUE;
else if(iTeam==CS_TEAM_T)
iColor=RED;
else
return 0;
new szTitle[20];
new szName[32];
get_user_name(id, szName, 31);
switch(random_num(0, _:HnSShopLotto-1)){
case LOTTO_INV:{
copy(szTitle, 19, "Granat");
//+Granat
switch(random_num(0, 3)){
case 0:{
fm_give_item(id, "weapon_flashbang");
}
case 1:{
fm_give_item(id, "weapon_smokegrenade");
}
case 2:{
fm_give_item(id, "weapon_hegrenade");
}
case 3:{
if(cs_get_user_bpammo(id, CSW_HEGRENADE)==0)
fm_give_item(id, "weapon_hegrenade");
gbSuperHe[id]=true;
}
}

}
case LOTTO_pHP:{
new iBonus=get_pcvar_num(gcvarHPPow);
formatex(szTitle, 19, "+%d HP", iBonus);

new Float:fHP;
pev(id, pev_health, fHP);
set_pev(id, pev_health, fHP+float(iBonus));
}
case LOTTO_SPEED:{
copy(szTitle, 19, "+Szybkosc");
gbSpeed[id]=true;
set_superspeed(id);
}
case LOTTO_pFRAGS:{
new iBonus=get_pcvar_num(gcvarPlusFragPow);
formatex(szTitle, 19, "+%d fragow", iBonus);
new Float:fFrags;
pev(id, pev_frags,fFrags);
set_pev(id, pev_frags,fFrags+float(iBonus));
refreshFrags(id)
}
case LOTTO_mFRAGS:{
new iBonus=get_pcvar_num(gcvarMinusFragPow);
formatex(szTitle, 19, "-%d fragow",iBonus);
new Float:fFrags;
pev(id, pev_frags,fFrags);
set_pev(id, pev_frags,fFrags-float(iBonus));
refreshFrags(id)
}
default:{
return 0;
}
}
ColorChat(id, iColor, "^x04[Ganiany Sklep]^x01 Gracz^x03 %s^x01 wylosowal^x04 %s^x01 !", szName, szTitle);
return 1;
}
//by Miczu
public respawn_player(id){
if (!is_user_connected(id) || is_user_alive(id) || cs_get_user_team(id) == CS_TEAM_SPECTATOR) return;

set_pev(id, pev_deadflag, DEAD_RESPAWNABLE)
dllfunc(DLLFunc_Think, id)

if (is_user_bot(id) && pev(id, pev_deadflag) == DEAD_RESPAWNABLE)
{
dllfunc(DLLFunc_Spawn, id)
}
if(gbSpeed[id]){
set_superspeed(id);
}
}
// ColorChat - Start
ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...) {
new message[256];

switch(type) {
case NORMAL: message[0] = 0x01;
case GREEN: message[0] = 0x04;
default: message[0] = 0x03;
}

vformat(message[1], 251, msg, 4);

// Make sure message is not longer than 192 character. Will crash the server.
message[192] = '^0';

new team, ColorChange, index, MSG_Type;

if(id) {
MSG_Type = MSG_ONE;
index = id;
} else {
index = FindPlayer();
MSG_Type = MSG_ALL;
}

team = get_user_team(index);
ColorChange = ColorSelection(index, MSG_Type, type);

ShowColorMessage(index, MSG_Type, message);

if(ColorChange)
Team_Info(index, MSG_Type, TeamName[team]);
}

ShowColorMessage(id, type, message[]) {
static bool:saytext_used;
static get_user_msgid_saytext;
if(!saytext_used) {
get_user_msgid_saytext = get_user_msgid("SayText");
saytext_used = true;
}
message_begin(type, get_user_msgid_saytext, _, id);
write_byte(id);
write_string(message);
message_end();
}

Team_Info(id, type, team[]) {
static bool:teaminfo_used;
static get_user_msgid_teaminfo;
if(!teaminfo_used) {
get_user_msgid_teaminfo = get_user_msgid("TeamInfo");
teaminfo_used = true;
}
message_begin(type, get_user_msgid_teaminfo, _, id);
write_byte(id);
write_string(team);
message_end();

return 1;
}

ColorSelection(index, type, Color:Type) {
switch(Type) {
case RED: return Team_Info(index, type, TeamName[1]);
case BLUE: return Team_Info(index, type, TeamName[2]);
case GREY: return Team_Info(index, type, TeamName[0]);
}

return 0;
}

FindPlayer(){
new i = -1;

while(i <= get_maxplayers())
if(is_user_connected(++i))
return i;

return -1;
}



#349473 Usuniecie HE granade

Napisano przez Pazdzioch w 15.01.2012 22:11 w Problemy

wydaje mi sie ze to bedzie w głównym pluginie HNS to zaraz ci dodam sma

Jest ktos w stanie mi pomoc ?



#349454 Przerobienie sklepiku 1 linijka

Napisano przez Pazdzioch w 15.01.2012 22:05 w Pluginy

proszę o przerobionie tego .SMA . Mianowicie tylko jedna rzecz jest do przerobienia. Chce zeby mozna kupywac wszystko po jeden raz na runde, a jest ustawione na mape (zmienic zeby szolo kupywac wszystko po 1x na runde a nie na mape)

Reput poleci za pomoc :)

Załączone pliki




#349459 Usuniecie HE granade

Napisano przez Pazdzioch w 14.01.2012 22:52 w Problemy

nie chodzi mi o to ... Chodzi mi o ty zeby usunac he z ekwipunku, na hns terro dostaje ekwipunek (1 he, 2 flash i 1 smoke) i chce usunac tylko he z ekwipunku. Ale HE w moim shopie na serwerze ma byc nadal do kupienia



#349447 Usuniecie HE granade

Napisano przez Pazdzioch w 14.01.2012 22:34 w Problemy

Mam problem, Mam serwer hns i chce usunac he granade, tt dostają po 1 he granade na start co runde i chce je usunac z ekwipunki pojniewaz na serwerze mam shop i chce zeby tylko mozna bylo kupic HE ze sklepu.

edit

http://speedy.sh/U6gBE/hidenseek.sma



#349357 HNS SHOP by Waq

Napisano przez Pazdzioch w 14.01.2012 19:53 w Pluginy AMXX

W KTÓREJ LINIJCIE TO POPRAWIC ZEBY BYŁO NA RUNDE A NIE NA MAPE ?



#349329 Plugin pozwalający dokończyć rundę po timeleft

Napisano przez Pazdzioch w 14.01.2012 18:54 w Szukam pluginu

Mam problem taki: mapa zmieni mi sie od razu po timeleft, a chce zeby mi sie zmieniala po timeleft ale jak sie runda skonczy a nie w polowie. Jak to zrobic ?



#349145 [ROZWIĄZANE] Granaty

Napisano przez Pazdzioch w 14.01.2012 12:25 w Problemy

dzięki



#349053 [ROZWIĄZANE] Granaty

Napisano przez Pazdzioch w 14.01.2012 09:02 w Problemy

Witam wszystkich
Mam taki problem na serwerze hns, ze mozna miec tylko 1 he, 1 smoke i 2 flash,a chce to odblokowac zeby mozna bylo miec wiecej granatow przy sobie bo mam xp moda który daje tez swoje granaty



#348490 Vip na hns

Napisano przez Pazdzioch w 12.01.2012 19:36 w Szukam pluginu

Poszukuje równiesz przerobionego Vipa, który sie nadaje na HNS



#348489 Sklepik HNS

Napisano przez Pazdzioch w 12.01.2012 19:35 w Szukam pluginu

Witam, poszukuje przerobiony sklepik hns, chodzi mi o to, zeby mozna było losowac, kupywac, respawn itd. wszystko po tylko jeden raz na runde. Oczywiscie sklepik ma byc za fragi. W losowaniu chciałbym tez miec np. AWP 1 ammo , speed, + i - fragi do wygrania speed itd..



#347688 Szukam Blokade LPM

Napisano przez Pazdzioch w 10.01.2012 20:16 w Szukam pluginu

tak jak w temacie poszukuje pluginy lub komendy na blokase lewego przycisku mysze ( tylko do uzycia norza) chodzi o to ze jak nacisne lewy to atak byl taki sam jak PPM. Potrzebuje to na serwer HNS