Okey, let's try. The steps for making your task:
1.
Вы должны зарегистрироваться, чтобы видеть ссылки.2.
Вы должны зарегистрироваться, чтобы видеть ссылки.3.
Вы должны зарегистрироваться, чтобы видеть ссылки.// Weapons:
weapon_usp
weapon_glock18
weapon_deagle
weapon_p228
weapon_elite
weapon_fiveseven
weapon_m3
weapon_xm1014
weapon_mp5navy
weapon_tmp
weapon_p90
weapon_mac10
weapon_ump45
weapon_famas
weapon_sg552
weapon_ak47
weapon_m4a1
weapon_aug
weapon_scout
weapon_awp
weapon_g3sg1
weapon_sg550
weapon_galil
weapon_m249
// Ammo:
ammo_45acp
ammo_9mm
ammo_50ae
ammo_357sig
ammo_57mm
ammo_buckshot
ammo_556nato
ammo_762nato
ammo_338magnum
ammo_308
ammo_556natobox
// Items:
item_kevlar
item_assaultsuit
weapon_flashbang
weapon_hegrenade
weapon_smokegrenade
item_thighpack
item_nvgs
weapon_shield
4.
Вы должны зарегистрироваться, чтобы видеть ссылки.5. For fast speed u need hook HAM event Ham_Item_PreFrame(or Ham_Player_ResetMaxSpeed from the latest versions of amxmodx) cause without this, it'll be reset an amount of speed:
- Код: Выделить всё
RegisterHam(Ham_Item_PreFrame, "player", "PlayerResetMaxSpeed", 0);
Then Supercede it, if there aren't our amount:
- Код: Выделить всё
public PlayerResetMaxSpeed(pPlayer)
{
if (!is_user_connected(pPlayer))
return HAM_IGNORED;
if (get_user_maxspeed(pPlayer) != 400.0)
return HAM_IGNORED;
return HAM_SUPERCEDE;
}
To assign the amount of the speed u need function called set_user_maxspeed
6. For chameleon u have to use fm_cs_set_user_model, but u have to add in your code the next:
in plugin_init():
- Код: Выделить всё
register_forward( FM_SetClientKeyValue, "fw_SetClientKeyValue" )
Somewhere in the end of the code:
- Код: Выделить всё
public fw_SetClientKeyValue( id, const infobuffer[], const key[] )
{
if ( g_has_custom_model[id] && equal( key, "model" ) )
{
new currentmodel[32]
fm_cs_get_user_model( id, currentmodel, charsmax( currentmodel ) )
if ( !equal( currentmodel, g_player_model[id] ) )
fm_cs_set_user_model( id, g_player_model[id] )
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}
- Код: Выделить всё
stock fm_cs_set_user_model( player, const modelname[] )
{
engfunc( EngFunc_SetClientKeyValue, player, engfunc( EngFunc_GetInfoKeyBuffer, player ), "model", modelname )
copy(g_player_model[id], charsmax(g_player_model[]), modelname);
g_has_custom_model[player] = true
}
//Other functions for the work with model(get model name and resetting model )
- Код: Выделить всё
stock fm_cs_get_user_model( player, model[], len )
{
engfunc( EngFunc_InfoKeyValue, engfunc( EngFunc_GetInfoKeyBuffer, player ), "model", model, len )
}
- Код: Выделить всё
stock fm_cs_reset_user_model( player )
{
g_has_custom_model[player] = false
dllfunc( DLLFunc_ClientUserInfoChanged, player, engfunc( EngFunc_GetInfoKeyBuffer, player ) )
}
7.
Invisible:
- Код: Выделить всё
set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,0)
Visible:
- Код: Выделить всё
set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,255)
That's all
P.S. Gl