It is currently 15 Feb 2019 21:23



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
 Cerere plugin /skinuri 
Author Message
Online
Utilizator neserios (tepar)
Utilizator neserios (tepar)
User avatar

Joined: 25 Feb 2017 12:29
Posts: 473
Detinator Steam: Da
CS Status: Intunericul meu e lumina ta,
Detinator server CS: NORD.PLAY-ARENA.RO
SteamID: /cafeanord
Reputatie: Utilizator neserios (tepar)
Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
Nu este cum vreau eu, eu vreau cand apesi /skin sa apara un meniu sa pui 5 skin-uri numele si modele le aleg eu dupa, doar sa fie 5 sloturi mai exact pentru skin-uri, si sa fie doar pe un flag cum vreau eu , un exemplu admin_level_h [T]

_________________
--> Tranzactii incheiate cu succes! <--



-> Teparii descoperiti de mine <-


Website: http://www.play-arena.ro/forum

Server detinut
: NORD.PLAY-ARENA.RO [IP: 89.40.233.161:27015]


08 Feb 2019 21:55
Profile multumesc WWW
Online
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 10 Oct 2014 05:21
Posts: 3579
Location: Roman, Neamț
Detinator Steam: Da
SteamID: /id/london_extreamcs
Reputatie: Scripter eXtreamCS
Moderator ajutator
Membru Club eXtreamCS (6 luni)
Fond eXtream: 0
ForWWarD wrote:
Vreau si eu plugin acesta dar sa fie cu urmatoarele: /skin doar la un flag anume, si sa aiba in meniu 5 skin-uri sa puna pe arma,

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fvault>

#define is_user_valid(%1) (1 <= %1 <= get_maxplayers())

#define VAULT_NAME "arme_5"

new g_Models[][] = {
"models/5skinuri/1.mdl",
"models/5skinuri/2.mdl",
"models/5skinuri/3.mdl",
"models/5skinuri/4.mdl",
"models/5skinuri/5.mdl"
};

new g_SkinID[33];

public plugin_precache()
{
for(new i = 0; i < sizeof(g_Models); i++)
engfunc(EngFunc_PrecacheModel, g_Models[i]);
}

public plugin_init()
{
register_plugin("5 Skinuri", "1.0", "LondoN eXtream");
register_event("CurWeapon", "event_curweapon", "be");
register_clcmd("say /skin", "MenuSkin", ADMIN_LEVEL_H);
}

public MenuSkin(Player)
{
new menu = menu_create("\w[\rVIP Skins\w] \yAlegeti un \rSkin \y!", "menu_handler");

menu_additem(menu, "\wSkin \rDeagle");
menu_additem(menu, "\wSkin \rAWP");
menu_additem(menu, "\wSkin \rM4A1-S");
menu_additem(menu, "\wSkin \rAK47");
menu_additem(menu, "\wSkin \rKNIFE");

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

return;
}

public menu_handler(Player, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu);
return;
}

new w = get_user_weapon(Player);

g_SkinID[Player] = item;

switch(item)
{
case 0: if(w == CSW_DEAGLE) set_pev(Player, pev_viewmodel2, g_Models[0]);
case 1: if(w == CSW_AWP) set_pev(Player, pev_viewmodel2, g_Models[1]);
case 2: if(w == CSW_M4A1) set_pev(Player, pev_viewmodel2, g_Models[2]);
case 3: if(w == CSW_AK47) set_pev(Player, pev_viewmodel2, g_Models[3]);
case 4: if(w == CSW_KNIFE) set_pev(Player, pev_viewmodel2, g_Models[4]);
}
}

public client_connect(Player)
{
if(is_user_bot(Player) || is_user_hltv(Player))
return;

new name[32], data[16];
get_user_name(Player, name, charsmax(name));
if(fvault_get_data(VAULT_NAME, name, data, charsmax(data)))
g_SkinID[Player] = str_to_num(data);
}

public client_disconnect(Player)
{
if(is_user_bot(Player) || is_user_hltv(Player))
return;

new name[32];
get_user_name(Player, name, charsmax(name));
fvault_set_data(VAULT_NAME, name, g_SkinID[Player]);
}

public event_curweapon(Player)
{
if(!is_user_valid(Player))
return;

new w = get_user_weapon(Player);

if(w == CSW_DEAGLE) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_AWP) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_M4A1) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_AK47) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_KNIFE) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
}


Skinurile se si salveaza..gen daca ai skin pe ak si intri peste o ora iti pune iar skinul de pe ak..

_________________
METODA BOOST/DROP 2018 GRATUITA (pentru CS 1.6)
AMX XMAS Gifts 2.0 - Private Plugin
AMX Christmass Addons (2019)
[VAND] Addons Zombie v7.1 (Release 10 February 2018)[/center]


09 Feb 2019 01:48
Profile multumesc
Online
Utilizator neserios (tepar)
Utilizator neserios (tepar)
User avatar

Joined: 25 Feb 2017 12:29
Posts: 473
Detinator Steam: Da
CS Status: Intunericul meu e lumina ta,
Detinator server CS: NORD.PLAY-ARENA.RO
SteamID: /cafeanord
Reputatie: Utilizator neserios (tepar)
Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
LondoN eXtream wrote:
ForWWarD wrote:
Vreau si eu plugin acesta dar sa fie cu urmatoarele: /skin doar la un flag anume, si sa aiba in meniu 5 skin-uri sa puna pe arma,

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fvault>

#define is_user_valid(%1) (1 <= %1 <= get_maxplayers())

#define VAULT_NAME "arme_5"

new g_Models[][] = {
"models/5skinuri/1.mdl",
"models/5skinuri/2.mdl",
"models/5skinuri/3.mdl",
"models/5skinuri/4.mdl",
"models/5skinuri/5.mdl"
};

new g_SkinID[33];

public plugin_precache()
{
for(new i = 0; i < sizeof(g_Models); i++)
engfunc(EngFunc_PrecacheModel, g_Models[i]);
}

public plugin_init()
{
register_plugin("5 Skinuri", "1.0", "LondoN eXtream");
register_event("CurWeapon", "event_curweapon", "be");
register_clcmd("say /skin", "MenuSkin", ADMIN_LEVEL_H);
}

public MenuSkin(Player)
{
new menu = menu_create("\w[\rVIP Skins\w] \yAlegeti un \rSkin \y!", "menu_handler");

menu_additem(menu, "\wSkin \rDeagle");
menu_additem(menu, "\wSkin \rAWP");
menu_additem(menu, "\wSkin \rM4A1-S");
menu_additem(menu, "\wSkin \rAK47");
menu_additem(menu, "\wSkin \rKNIFE");

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

return;
}

public menu_handler(Player, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu);
return;
}

new w = get_user_weapon(Player);

g_SkinID[Player] = item;

switch(item)
{
case 0: if(w == CSW_DEAGLE) set_pev(Player, pev_viewmodel2, g_Models[0]);
case 1: if(w == CSW_AWP) set_pev(Player, pev_viewmodel2, g_Models[1]);
case 2: if(w == CSW_M4A1) set_pev(Player, pev_viewmodel2, g_Models[2]);
case 3: if(w == CSW_AK47) set_pev(Player, pev_viewmodel2, g_Models[3]);
case 4: if(w == CSW_KNIFE) set_pev(Player, pev_viewmodel2, g_Models[4]);
}
}

public client_connect(Player)
{
if(is_user_bot(Player) || is_user_hltv(Player))
return;

new name[32], data[16];
get_user_name(Player, name, charsmax(name));
if(fvault_get_data(VAULT_NAME, name, data, charsmax(data)))
g_SkinID[Player] = str_to_num(data);
}

public client_disconnect(Player)
{
if(is_user_bot(Player) || is_user_hltv(Player))
return;

new name[32];
get_user_name(Player, name, charsmax(name));
fvault_set_data(VAULT_NAME, name, g_SkinID[Player]);
}

public event_curweapon(Player)
{
if(!is_user_valid(Player))
return;

new w = get_user_weapon(Player);

if(w == CSW_DEAGLE) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_AWP) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_M4A1) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_AK47) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_KNIFE) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
}


Skinurile se si salveaza..gen daca ai skin pe ak si intri peste o ora iti pune iar skinul de pe ak..

Nu e ok... adica daca intru fara sa am nimic, imi arata awp la knife gen si ak47 la usp. si daca aleg o arma cum ar fi ak47 atunci se pune skinu peste tot usp etc.. testeaza te rog si revin-o cu edit mersi.

_________________
--> Tranzactii incheiate cu succes! <--



-> Teparii descoperiti de mine <-


Website: http://www.play-arena.ro/forum

Server detinut
: NORD.PLAY-ARENA.RO [IP: 89.40.233.161:27015]


09 Feb 2019 19:54
Profile multumesc WWW
Online
Utilizator neserios (tepar)
Utilizator neserios (tepar)
User avatar

Joined: 25 Feb 2017 12:29
Posts: 473
Detinator Steam: Da
CS Status: Intunericul meu e lumina ta,
Detinator server CS: NORD.PLAY-ARENA.RO
SteamID: /cafeanord
Reputatie: Utilizator neserios (tepar)
Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
ForWWarD wrote:
LondoN eXtream wrote:
ForWWarD wrote:
Vreau si eu plugin acesta dar sa fie cu urmatoarele: /skin doar la un flag anume, si sa aiba in meniu 5 skin-uri sa puna pe arma,

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fvault>

#define is_user_valid(%1) (1 <= %1 <= get_maxplayers())

#define VAULT_NAME "arme_5"

new g_Models[][] = {
"models/5skinuri/1.mdl",
"models/5skinuri/2.mdl",
"models/5skinuri/3.mdl",
"models/5skinuri/4.mdl",
"models/5skinuri/5.mdl"
};

new g_SkinID[33];

public plugin_precache()
{
for(new i = 0; i < sizeof(g_Models); i++)
engfunc(EngFunc_PrecacheModel, g_Models[i]);
}

public plugin_init()
{
register_plugin("5 Skinuri", "1.0", "LondoN eXtream");
register_event("CurWeapon", "event_curweapon", "be");
register_clcmd("say /skin", "MenuSkin", ADMIN_LEVEL_H);
}

public MenuSkin(Player)
{
new menu = menu_create("\w[\rVIP Skins\w] \yAlegeti un \rSkin \y!", "menu_handler");

menu_additem(menu, "\wSkin \rDeagle");
menu_additem(menu, "\wSkin \rAWP");
menu_additem(menu, "\wSkin \rM4A1-S");
menu_additem(menu, "\wSkin \rAK47");
menu_additem(menu, "\wSkin \rKNIFE");

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

return;
}

public menu_handler(Player, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu);
return;
}

new w = get_user_weapon(Player);

g_SkinID[Player] = item;

switch(item)
{
case 0: if(w == CSW_DEAGLE) set_pev(Player, pev_viewmodel2, g_Models[0]);
case 1: if(w == CSW_AWP) set_pev(Player, pev_viewmodel2, g_Models[1]);
case 2: if(w == CSW_M4A1) set_pev(Player, pev_viewmodel2, g_Models[2]);
case 3: if(w == CSW_AK47) set_pev(Player, pev_viewmodel2, g_Models[3]);
case 4: if(w == CSW_KNIFE) set_pev(Player, pev_viewmodel2, g_Models[4]);
}
}

public client_connect(Player)
{
if(is_user_bot(Player) || is_user_hltv(Player))
return;

new name[32], data[16];
get_user_name(Player, name, charsmax(name));
if(fvault_get_data(VAULT_NAME, name, data, charsmax(data)))
g_SkinID[Player] = str_to_num(data);
}

public client_disconnect(Player)
{
if(is_user_bot(Player) || is_user_hltv(Player))
return;

new name[32];
get_user_name(Player, name, charsmax(name));
fvault_set_data(VAULT_NAME, name, g_SkinID[Player]);
}

public event_curweapon(Player)
{
if(!is_user_valid(Player))
return;

new w = get_user_weapon(Player);

if(w == CSW_DEAGLE) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_AWP) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_M4A1) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_AK47) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_KNIFE) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
}


Skinurile se si salveaza..gen daca ai skin pe ak si intri peste o ora iti pune iar skinul de pe ak..

Nu e ok... adica daca intru fara sa am nimic, imi arata awp la knife gen si ak47 la usp. si daca aleg o arma cum ar fi ak47 atunci se pune skinu peste tot usp etc.. testeaza te rog si revin-o cu edit mersi.
Bump

_________________
--> Tranzactii incheiate cu succes! <--



-> Teparii descoperiti de mine <-


Website: http://www.play-arena.ro/forum

Server detinut
: NORD.PLAY-ARENA.RO [IP: 89.40.233.161:27015]


11 Feb 2019 16:43
Profile multumesc WWW
Online
Utilizator neserios (tepar)
Utilizator neserios (tepar)
User avatar

Joined: 25 Feb 2017 12:29
Posts: 473
Detinator Steam: Da
CS Status: Intunericul meu e lumina ta,
Detinator server CS: NORD.PLAY-ARENA.RO
SteamID: /cafeanord
Reputatie: Utilizator neserios (tepar)
Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
ForWWarD wrote:
ForWWarD wrote:
LondoN eXtream wrote:
ForWWarD wrote:
Vreau si eu plugin acesta dar sa fie cu urmatoarele: /skin doar la un flag anume, si sa aiba in meniu 5 skin-uri sa puna pe arma,

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fvault>

#define is_user_valid(%1) (1 <= %1 <= get_maxplayers())

#define VAULT_NAME "arme_5"

new g_Models[][] = {
"models/5skinuri/1.mdl",
"models/5skinuri/2.mdl",
"models/5skinuri/3.mdl",
"models/5skinuri/4.mdl",
"models/5skinuri/5.mdl"
};

new g_SkinID[33];

public plugin_precache()
{
for(new i = 0; i < sizeof(g_Models); i++)
engfunc(EngFunc_PrecacheModel, g_Models[i]);
}

public plugin_init()
{
register_plugin("5 Skinuri", "1.0", "LondoN eXtream");
register_event("CurWeapon", "event_curweapon", "be");
register_clcmd("say /skin", "MenuSkin", ADMIN_LEVEL_H);
}

public MenuSkin(Player)
{
new menu = menu_create("\w[\rVIP Skins\w] \yAlegeti un \rSkin \y!", "menu_handler");

menu_additem(menu, "\wSkin \rDeagle");
menu_additem(menu, "\wSkin \rAWP");
menu_additem(menu, "\wSkin \rM4A1-S");
menu_additem(menu, "\wSkin \rAK47");
menu_additem(menu, "\wSkin \rKNIFE");

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

return;
}

public menu_handler(Player, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu);
return;
}

new w = get_user_weapon(Player);

g_SkinID[Player] = item;

switch(item)
{
case 0: if(w == CSW_DEAGLE) set_pev(Player, pev_viewmodel2, g_Models[0]);
case 1: if(w == CSW_AWP) set_pev(Player, pev_viewmodel2, g_Models[1]);
case 2: if(w == CSW_M4A1) set_pev(Player, pev_viewmodel2, g_Models[2]);
case 3: if(w == CSW_AK47) set_pev(Player, pev_viewmodel2, g_Models[3]);
case 4: if(w == CSW_KNIFE) set_pev(Player, pev_viewmodel2, g_Models[4]);
}
}

public client_connect(Player)
{
if(is_user_bot(Player) || is_user_hltv(Player))
return;

new name[32], data[16];
get_user_name(Player, name, charsmax(name));
if(fvault_get_data(VAULT_NAME, name, data, charsmax(data)))
g_SkinID[Player] = str_to_num(data);
}

public client_disconnect(Player)
{
if(is_user_bot(Player) || is_user_hltv(Player))
return;

new name[32];
get_user_name(Player, name, charsmax(name));
fvault_set_data(VAULT_NAME, name, g_SkinID[Player]);
}

public event_curweapon(Player)
{
if(!is_user_valid(Player))
return;

new w = get_user_weapon(Player);

if(w == CSW_DEAGLE) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_AWP) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_M4A1) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_AK47) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
if(w == CSW_KNIFE) set_pev(Player, pev_viewmodel2, g_Models[g_SkinID[Player]]);
}


Skinurile se si salveaza..gen daca ai skin pe ak si intri peste o ora iti pune iar skinul de pe ak..

Nu e ok... adica daca intru fara sa am nimic, imi arata awp la knife gen si ak47 la usp. si daca aleg o arma cum ar fi ak47 atunci se pune skinu peste tot usp etc.. testeaza te rog si revin-o cu edit mersi.
Bump

_________________
--> Tranzactii incheiate cu succes! <--



-> Teparii descoperiti de mine <-


Website: http://www.play-arena.ro/forum

Server detinut
: NORD.PLAY-ARENA.RO [IP: 89.40.233.161:27015]


12 Feb 2019 21:55
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 05 Jan 2018 06:40
Posts: 66
Location: Giurgiu
Detinator Steam: Da
CS Status: My name is smokra
Detinator server CS: Offensive.IceGame.RO
Fond eXtream: 0
Nu mai este extreamcs ce a fost odata :) nu te mai ajuta nimeni aici in ziua de azi csz dai T/C ca nici in ziua de azi nu am primit ajutor la faza cu html-ul !


13 Feb 2019 21:32
Profile multumesc
Membru, skill 0
Membru, skill 0
User avatar

Joined: 12 Jan 2011 00:33
Posts: 82
Location: Constanta
Detinator Steam: Da
CS Status: I`m fine .
Detinator server CS: Da
SteamID: madfather_ro
Fond eXtream: 0
GoGuT112 wrote:
Nu mai este extreamcs ce a fost odata :) nu te mai ajuta nimeni aici in ziua de azi csz dai T/C ca nici in ziua de azi nu am primit ajutor la faza cu html-ul !

Ti-am raspuns si eu cu o varianta, ti s-au mai dat si vre-o 2 variante cum sa faci.

_________________
GO.FRAGWAY.RO - Server CS1.6 Mod CSGO

Tranzactii reusite, a dat primul. Click


14 Feb 2019 01:10
Profile multumesc WWW
Moderator ajutator
Moderator ajutator
User avatar

Joined: 10 May 2013 13:25
Posts: 2921
Location: Gura Humorului
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Fond eXtream: 0
Daca dorești, iti pot face in asa fel incat sa iti afişeze toate skin-urile dintr un fisier, datoria ta e sa treci in fisier numele skin-urilor, iar printr o comanda in chat sa ti le afiseze intr un meniu acele skin-uri.
Dupa cum ai cerut tu, tre sa faci un fisier html in care sa iti pui manual acele skin-uri.

_________________
„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


14 Feb 2019 18:02
Profile multumesc YIM WWW
Online
Utilizator neserios (tepar)
Utilizator neserios (tepar)
User avatar

Joined: 25 Feb 2017 12:29
Posts: 473
Detinator Steam: Da
CS Status: Intunericul meu e lumina ta,
Detinator server CS: NORD.PLAY-ARENA.RO
SteamID: /cafeanord
Reputatie: Utilizator neserios (tepar)
Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
YONTU wrote:
Daca dorești, iti pot face in asa fel incat sa iti afişeze toate skin-urile dintr un fisier, datoria ta e sa treci in fisier numele skin-urilor, iar printr o comanda in chat sa ti le afiseze intr un meniu acele skin-uri.
Dupa cum ai cerut tu, tre sa faci un fisier html in care sa iti pui manual acele skin-uri.

Pe mine m-ai putea ajuta in felul urmator daca te rog si ai timp, deci. sa fie un fisier.ini in configs. si acolo sa trec numele si skin-ul care-l doresc sa aiba persoana respectiva. gen. ca la vip
deschid fisierul si trec. axinte m4a1cyrex intelegi? si sa fie pe m4a1 etc. daca te rog.

_________________
--> Tranzactii incheiate cu succes! <--



-> Teparii descoperiti de mine <-


Website: http://www.play-arena.ro/forum

Server detinut
: NORD.PLAY-ARENA.RO [IP: 89.40.233.161:27015]


14 Feb 2019 20:03
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 05 Jan 2018 06:40
Posts: 66
Location: Giurgiu
Detinator Steam: Da
CS Status: My name is smokra
Detinator server CS: Offensive.IceGame.RO
Fond eXtream: 0
YONTU wrote:
Daca dorești, iti pot face in asa fel incat sa iti afişeze toate skin-urile dintr un fisier, datoria ta e sa treci in fisier numele skin-urilor, iar printr o comanda in chat sa ti le afiseze intr un meniu acele skin-uri.
Dupa cum ai cerut tu, tre sa faci un fisier html in care sa iti pui manual acele skin-uri.

Incearca poate reusesti :D !


14 Feb 2019 22:16
Profile multumesc
Moderator ajutator
Moderator ajutator
User avatar

Joined: 10 May 2013 13:25
Posts: 2921
Location: Gura Humorului
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Fond eXtream: 0
GoGuT112 wrote:
YONTU wrote:
Daca dorești, iti pot face in asa fel incat sa iti afişeze toate skin-urile dintr un fisier, datoria ta e sa treci in fisier numele skin-urilor, iar printr o comanda in chat sa ti le afiseze intr un meniu acele skin-uri.
Dupa cum ai cerut tu, tre sa faci un fisier html in care sa iti pui manual acele skin-uri.

Incearca poate reusesti :D !

skins_info.sma | Afiseaza codul
Code:
#include <amxmodx>

#define PLUGIN_NAME "citeste fisier"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "YONTU"

enum _:data
{
    skin_name[32]
    // add ur code here
}
new Array:skins, total_skins = 0, cvar_hostname, hostname[64], menu_title[128];

public plugin_init()
{
    register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);

    register_clcmd("say skins", "cmd_show_skins");
    register_clcmd("say_team skins", "cmd_show_skins");
    register_clcmd("say /skins", "cmd_show_skins");
    register_clcmd("say_team /skins", "cmd_show_skins");

    cvar_hostname = get_cvar_pointer("hostname");

    _read_skins();
}

public plugin_cfg()
{
    get_pcvar_string(cvar_hostname, hostname, charsmax(hostname));
    formatex(menu_title, charsmax(menu_title), "\rS K I N S   I N F O^n\wSkin-urile disponibile pe serverul^n\y%s", hostname);
}

_read_skins()
{
    new path[64];
    get_localinfo("amxx_configsdir", path, charsmax(path));
    format(path, charsmax(path), "%s/skins.ini", path);
    
    new file 
= fopen(path, "r+");
    
    if
(!file_exists(path))
    {
        new format_txt[128];
        log_amx("Nu am gasit fisierul '%s'. Il creez acum!", path);

        format(format_txt, charsmax(format_txt), "; Aici introduci skin-urile, dupa modelul urmator:^n");
        write_file(path, format_txt);
        format(format_txt, charsmax(format_txt), "; ^"NUME SKIN^"^n^n");
        write_file(path, format_txt);
        write_file(path, "^"M4A1 Dragon^"^n^"AK-47 preferata mea .....^"");
    }
    
    if
(total_skins)
    {
        ArrayClear(skins);
        total_skins = 0;
    }
    
    skins 
= ArrayCreate(data);

    new text[32], data_text[data];
    while(!feof(file))
    {
        fgets(file, text, charsmax(text));
        trim(text);
        
        if
(text[0] == ';' || !strlen(text)) 
        
{
            continue; 
        
}
        
        parse
(text, text, charsmax(text));
        copy(data_text[skin_name], charsmax(data_text), text);
        ArrayPushArray(skins, data_text);
        total_skins++;
    }
    
    fclose
(file);
}

public plugin_end()
{
    ArrayDestroy(skins);
}

public cmd_show_skins(id)
{
    if(!is_user_connected(id))
        return PLUGIN_HANDLED;

    new data_text[data], info[2], i, menu;
    menu = menu_create(menu_title, "skins_handler");
    
    for
(= 0; i < total_skins; i++)
    {
        ArrayGetArray(skins, i, data_text);

        info[0] = i;
        info[1] = 0;
        menu_additem(menu, data_text[skin_name], info);
    }
    menu_display(id, menu);
    return PLUGIN_CONTINUE;
}

public skins_handler(id, menu, item)
{
    menu_destroy(menu);
    return PLUGIN_HANDLED;
}


Testeaza si revino cu replay. N-am testat.
Pluginul iti creeaza automat un fisier in configs numit skins.ini
Acolo o sa gasesti un model de adaugare al skin-urilor. Poti adauga cate vrei tu
Meniul se deschide prin comanda in chat skins sau /skins
Daca vrei sa ii mau adaug ceva, spre exemplu costul, descriere, etc pe fiecare skin in parte, imi spui

_________________
„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


15 Feb 2019 11:02
Profile multumesc YIM WWW
Moderator ajutator
Moderator ajutator
User avatar

Joined: 10 May 2013 13:25
Posts: 2921
Location: Gura Humorului
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Fond eXtream: 0
ForWWarD wrote:
YONTU wrote:
Daca dorești, iti pot face in asa fel incat sa iti afişeze toate skin-urile dintr un fisier, datoria ta e sa treci in fisier numele skin-urilor, iar printr o comanda in chat sa ti le afiseze intr un meniu acele skin-uri.
Dupa cum ai cerut tu, tre sa faci un fisier html in care sa iti pui manual acele skin-uri.

Pe mine m-ai putea ajuta in felul urmator daca te rog si ai timp, deci. sa fie un fisier.ini in configs. si acolo sa trec numele si skin-ul care-l doresc sa aiba persoana respectiva. gen. ca la vip
deschid fisierul si trec. axinte m4a1cyrex intelegi? si sa fie pe m4a1 etc. daca te rog.

change_wp_skin.sma | Afiseaza codul
#include <amxmodx>
#include <fakemeta>

#define PLUGIN_NAME "Change Weapon Skin (V)"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "YONTU"

enum _:data
{
player_name[32],
weap_id[3],
skin_name[32]
// add ur code here
}
new Array:skins, total_skins = 0;
new name[33][32];

// aici se afla folderul din models unde se afla skin-urile
new const model_location[] = "skins_csgo";

// from zombie plague mod
// Primary and Secondary Weapon Names
new const WEAPONNAMES[][] = { "", "P228 Compact", "", "Schmidt Scout", "", "XM1014 M4", "", "Ingram MAC-10", "Steyr AUG A1",
"", "Dual Elite Berettas", "FiveseveN", "UMP 45", "SG-550 Auto-Sniper", "IMI Galil", "Famas",
"USP .45 ACP Tactical", "Glock 18C", "AWP Magnum Sniper", "MP5 Navy", "M249 Para Machinegun",
"M3 Super 90", "M4A1 Carbine", "Schmidt TMP", "G3SG1 Auto-Sniper", "", "Desert Eagle .50 AE",
"SG-552 Commando", "AK-47 Kalashnikov", "", "ES P90" };

public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);

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

_read_skins();
}

public _read_skins()
{
new path[64];
get_localinfo("amxx_configsdir", path, charsmax(path));
format(path, charsmax(path), "%s/skins.ini", path);

new file = fopen(path, "r+");

if(!file_exists(path))
{
new format_txt[128];
log_amx("Nu am gasit fisierul '%s'. Il creez acum!", path);

format(format_txt, charsmax(format_txt), "; Aici introduci numele jucatorilor si skin-ul sau (fara .mdl), dupa modelul urmator:");
write_file(path, format_txt);
format(format_txt, charsmax(format_txt), "; ^"NUME JUCATOR^" ^"ID ARMA^" ^"NUME SKIN^"^n");
write_file(path, format_txt);
format(format_txt, charsmax(format_txt), "; Modelele le pui in folderul din 'models/%s/'", model_location);
write_file(path, format_txt);
format(format_txt, charsmax(format_txt), "; ID ARMA disponibile:^n");
write_file(path, format_txt);
for(new i = 1; i <= CSW_P90; i++)
{
if(!equal(WEAPONNAMES[i], ""))
{
format(format_txt, charsmax(format_txt), ";%d - %s", i, WEAPONNAMES[i]);
write_file(path, format_txt);
}
}
write_file(path, "^n^n^"YONTU^" ^"26^" ^"v_m4a1^" ");
}

if(total_skins)
{
ArrayClear(skins);
total_skins = 0;
}

skins = ArrayCreate(data);

new text[32], player_data[data], data_text[data];
while(!feof(file))
{
fgets(file, text, charsmax(text));
trim(text);

if(text[0] == ';' || !strlen(text))
{
continue;
}

parse(text, player_data[player_name], charsmax(player_data), player_data[weap_id], charsmax(player_data), player_data[skin_name], charsmax(player_data));
copy(data_text[player_name], charsmax(data_text), player_data[player_name]);
copy(data_text[weap_id], charsmax(data_text), player_data[weap_id]);
copy(data_text[skin_name], charsmax(data_text), player_data[skin_name]);
ArrayPushArray(skins, data_text);
total_skins++;
}

fclose(file);
}

public plugin_end()
{
ArrayDestroy(skins);
}

public plugin_precache()
{
new data_text[data], buffer[100];
for(new i = 0; i < total_skins; i++)
{
ArrayGetArray(skins, i, data_text);
format(buffer, charsmax(buffer), "models/%s/%s/%s.mdl", model_location, data_text[skin_name], data_text[skin_name]);
precache_model(buffer);
}
}

public client_putinserver(id)
{
get_user_name(id, name[id], charsmax(name));
}

public event_curweapon(id)
{
if(!is_user_alive(id))
return PLUGIN_HANDLED;

new weaponid, data_text[data], p_name[32];
weaponid = read_data(2);
get_user_name(id, p_name, charsmax(p_name));

for(new i = 0; i < total_skins; i++)
{
ArrayGetArray(skins, i, data_text);

if(equal(p_name, data_text[player_name]))
{
if(weaponid == str_to_num(data_text[weap_id]))
{
set_pev(id, pev_viewmodel2, data_text[skin_name]);
break;
}
}
}

return PLUGIN_CONTINUE;
}


Testeaza. Se creeaza automat un fisier in configs numit skins.ini. Acolo ai model de adaugare a skin-urilor pentru jucatori. Poti seta mi-a multe cate un skin pentru o singura arma. Am facut doar pentru v_.mdl. Daca vrei si pentru p_.mdl zici in topic

_________________
„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


15 Feb 2019 19:24
Profile multumesc YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 24 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: Duracell2k19, JAMMA, Jucks, Lux0R^ and 123 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