Admin models

Forumas skirtas spręsti problemas iškilusias su CS 1.6 serveriais.
Post Reply
User avatar
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

Post by d92eividas »

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..

User avatar
neris111
Flooderis arba specialistas
Posts: 501
Joined: 2015 Jan 13 15:17
Skype: neris14

Re: Admin models

Post by neris111 »

Bandyk sita
Attachments
Paprasti Modeliai.rar
(2.56 MiB) Downloaded 216 times

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: Admin models

Post by laimiukas3 »

http://amxmodx.lt/viewtopic.php?f=15&t= ... lit=pmodel

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.    }} 
tik vietoj
if (!is_user_steam(client))
return;
pakeisk i

if (!(get_user_flags(client) & ADMIN_LEVEL_H)) /// pasikeisk i koki tau reikia
return
Image
Image
Image

User avatar
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

Post by d92eividas »

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! :)
Love yourself… respect yourself, there has nobody been like you before and there will never be anyone like you again… you are unique..

garbiz
Jau po truputį tampa savu
Posts: 156
Joined: 2015 Feb 01 18:15
Skype: babuinas9

Re: Admin models

Post by garbiz »

Inc failo is temos virsui parsisiust nenori ? :D
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests