
Helló mi ebben a pluginban a rossz?
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
51cf17f47e181.sma(20) : error 001: expected token: ";", but found "-identifier-"
1 Error.
Could not locate output file 51cf17f47e181.amx (compile failed).
Hiba! - Az atalakitas sikertelen. (Forras fajlok torolve.)
#include <amxmodx>
#include <cstrike>
#define PLUGIN "V.I.P/A.D.M.I.N Models"
#define VERSION "0.1"
#define AUTHOR "opo4umapy loh"
#define LEVEL_ADMIN ADMIN_IMMUNITY
#define LEVEL_VIP ADMIN_CHAT
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public plugin_precache()
{
precache_model("models/player/ADMIN_CT/ADMIN_CT.mdl")
precache_model("models/player/ADMIN_T/ADMIN_T.mdl")
precache_model("models/player/VIP_CT/VIP_CT.mdl") precache_model("models/player/VIP_T/VIP_T.mdl")
}
public resetModel(id, level, cid)
{
if(get_user_flags(id) & LEVEL_ADMIN)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T)
{
cs_set_user_model(id, "ADMIN_T")
}
else if(userTeam == CS_TEAM_CT)
{
cs_set_user_model(id, "ADMIN_CT")
}
else
{
cs_reset_user_model(id)
}
}
if(get_user_flags(id) & LEVEL_VIP) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T)
{
cs_set_user_model(id, "VIP_T")
}
else if(userTeam == CS_TEAM_CT)
{
cs_set_user_model(id, "VIP_CT")
}
else
{
cs_reset_user_model(id)
}
}
}
_________________
-----------------------------------------------------------------------------------------------------------
