Admin models
- d92eividas
- Ar galit patikėti? Jis jau parašė 20 žinučių
- Posts: 21
- Joined: 2016 Nov 10 00:12
- Skype: deivioskype
- Location: Panevėžys
- Contact:
Admin models
Sveiki noriu paklausti dėl admin models. Įsidėjau į serverį admin models iš čia: https://forums.alliedmods.net/showthrea ... 28?p=97428 Kaip ir viskas veikia pluginas pasileidžia modelius atsiunčia tvarka, tačiau yra čia padaryta, kad admin model veikia tik nuo antro round, kaip padaryt kad man veiktų csdm serve iškarto?
Love yourself… respect yourself, there has nobody been like you before and there will never be anyone like you again… you are unique..
- laimiukas3
- Moderatorius
- Posts: 4569
- Joined: 2012 Aug 03 01:12
- Skype: laimiukas3
- Location: Vilnius
- Contact:
Re: Admin models
http://amxmodx.lt/viewtopic.php?f=15&t= ... lit=pmodel
geriau naudok sita
tik vietoj
if (!is_user_steam(client))
return;
pakeisk i
if (!(get_user_flags(client) & ADMIN_LEVEL_H)) /// pasikeisk i koki tau reikia
return
geriau naudok sita
Code: Select all
#include <amxmodx>#include <pmodel> new const T_Model[] = "arsteam_te"new const CT_Model[] = "arsteam_ct" public plugin_precache(){ PrecachePlayerModel(T_Model) PrecachePlayerModel(CT_Model)} public plugin_init(){ register_event("TeamInfo", "OnTeamInfo", "a"); // Uzregistruojam ivyki, kai zaidėjo komanda pasikeicia. UsePlayerModels(); // Sita butina panaudot, kitaip SetPlayerModel() neveiks.} public client_disconnected(id){ SetPlayerModel(id)} public OnTeamInfo(){ new client = read_data(1); // Gaunam zaidėjo ID iš ivykio. // Imanoma, kad jis atsijunge, tad reikia patikrinti. if (!is_user_connected(client)) return; if (!is_user_steam(client)) return; // Gaunam nauja zaidejo komanda is ivykio. new team[2]; read_data(2, team, charsmax(team)); switch (team[0]) // Tikrinam pirma komandos raide. { case 'T': SetPlayerModel(client, T_Model); // Jei T, nustatom CT skin'a. case 'C': SetPlayerModel(client, CT_Model); // Jei CT, nustatom T skin'a. }}
if (!is_user_steam(client))
return;
pakeisk i
if (!(get_user_flags(client) & ADMIN_LEVEL_H)) /// pasikeisk i koki tau reikia
return
- d92eividas
- Ar galit patikėti? Jis jau parašė 20 žinučių
- Posts: 21
- Joined: 2016 Nov 10 00:12
- Skype: deivioskype
- Location: Panevėžys
- Contact:
Re: Admin models
Compline erroras:
AMXXPC compile.exe
// by the AMX Mod X Dev Team
//// amx_adminmodel.sma
//
// C:\Users\d92ei\Desktop\New folder\amx_adminmodel.sma(2) : fatal error 100: cannot read from file: "pmodel"
//
// Compilation aborted.
// 1 Error.
// Could not locate output file C:\Users\d92ei\Desktop\New folder\compiled\amx_adminmodel.amx (compile failed).
//
// Compilation Time: 0.16 sec
Help!
AMXXPC compile.exe
// by the AMX Mod X Dev Team
//// amx_adminmodel.sma
//
// C:\Users\d92ei\Desktop\New folder\amx_adminmodel.sma(2) : fatal error 100: cannot read from file: "pmodel"
//
// Compilation aborted.
// 1 Error.
// Could not locate output file C:\Users\d92ei\Desktop\New folder\compiled\amx_adminmodel.amx (compile failed).
//
// Compilation Time: 0.16 sec
Help!

Love yourself… respect yourself, there has nobody been like you before and there will never be anyone like you again… you are unique..
Who is online
Users browsing this forum: Amazon [Bot] and 2 guests