Код за потвърждение: Избери целия код
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#include <cstrike>
#include <fun>
#include <engine>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Nuhannad"
new const g_VipPlayerModels[][] =
{
"models/Player/Predator/Predatorct.mdl",
"models/Player/heavybear/heavybeart.mdl",
"models/Player/cross/SJB-GR.mdl",
"models/Player/halo 2/haloct.mdl",
"models/Player/Predator/Predatort.mdl",
"models/Player/heavybear/heavybearct.mdl",
"models/Player/cross/SJB-BL.mdl",
"models/Player/halo 2/halot.mdl"
};
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /vskins", "vipmenuShow")
}
public plugin_precache() {
for ( new i = 0 ; i < sizeof( g_VipPlayerModels ) ; i++ )
precache_model( g_VipPlayerModels[ i ] );
}
public vipmenuShow(id, item)
{
if (get_user_flags(id) & ADMIN_IMMUNITY)
{
new menu = menu_create( "\r[\dVIP\r]Skins \wMenu", "VipPlayerMenu_Handler");
menu_additem(menu, "\rPredator", "1", 0)
menu_additem(menu, "\rHeavy \dBear", "2", 0)
menu_additem(menu, "\rcross \dfire", "3", 0)
menu_additem(menu, "\rhalo", "4", 0);
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL );
menu_display(id, menu, 0 );
}
else
{
ColorChat(0,NORMAL,"^4These Skins ^3is ^1only ^3For ^4VIP's.")
}
return PLUGIN_CONTINUE;
}
public VipPlayerMenu_Handler(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[4];
new key = str_to_num(data)
switch( key ) {
case 1: {
if( cs_get_user_team(id) != CS_TEAM_CT )
{
cs_set_user_model( id, "Predatorct" );
}
else if ( cs_get_user_team(id) != CS_TEAM_T )
{
cs_set_user_model( id, "Predatort" );
}
}
case 2: {
if( cs_get_user_team(id) != CS_TEAM_CT )
{
cs_set_user_model( id, "heavybearct" );
}
else if ( cs_get_user_team(id) != CS_TEAM_T )
{
cs_set_user_model( id, "heavybeart" );
}
}
case 3: {
if( cs_get_user_team(id) != CS_TEAM_CT )
{
cs_set_user_model( id, "SJB-GR" );
}
else if ( cs_get_user_team(id) != CS_TEAM_T )
{
cs_set_user_model( id, "SJB-BL" );
}
}
case 4: {
if( cs_get_user_team(id) != CS_TEAM_CT )
{
cs_set_user_model( id, "haloct" );
}
else if ( cs_get_user_team(id) != CS_TEAM_T )
{
cs_set_user_model( id, "halot" );
}
}
}
return PLUGIN_HANDLED;
}