Участник
Пользователь
- Сообщения
- 141
- Реакции
- 55
- Помог
- 2 раз(а)
- Ошибка
-
I want to have semiclip (transparency) for VIP users. This code does not work (model full visiable).
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5263
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.721-dev
- ReGamedll
-
ReGameDLL version: 5.13.0.447-dev+m
- Версия Metamod
-
Metamod-r v1.3.0.128, API (5:13)
- Список метамодулей
-
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.92c ini Start Never
[ 2] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 3] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 4] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5263 ini Start ANY
[ 5] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 6] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 7] Revoice RUN - revoice_mm_i386.so v0.1.0.33 ini Start Never
[ 8] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 9] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[10] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl4 ANY ANY
[11] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl4 ANY Never
[12] ReAPI RUN - reapi_amxx_i386.so v5.12.0.192-dev pl4 ANY Never
[13] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl4 ANY ANY
[14] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl4 ANY ANY
[15] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl4 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl4 ANY ANY
[17] ReCSDM RUN - csdm_amxx_i386.so v3.6 pl4 ANY ANY
[18] hackdetector RUN - hackdetector_amxx_i386.so v0.15.328.lite pl4 ANY ANY
[19] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl4 ANY ANY
[20] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl4 ANY ANY
- Список плагинов
-
too many ;)
- Автор плагина
- benio101 & speedkill
- Версия плагина
- 12.3.0.2
- Исходный код
-
#include <amxmodx>
#include <fun>
#include <hamsandwich>
new bool:g_Vip[33];
public plugin_init(){
register_plugin("VIP Ultimate", "12.3.0.2", "benio101 & speedkill");
RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1);
}
public client_authorized(id , const authid[]){
if(get_user_flags(id) & ADMIN_RESERVATION == ADMIN_RESERVATION){
client_authorized_vip(id);
}
}
public client_authorized_vip(id){
g_Vip[id]=true;
}
public client_disconnected(id){
if(g_Vip[id]){
client_disconnect_vip(id);
}
}
public client_disconnect_vip(id){
g_Vip[id]=false;
}
public SpawnedEventPre(id){
if(g_Vip[id]){
if(is_user_alive(id)){
SpawnedEventPreVip(id);
}
}
}
public SpawnedEventPreVip(id){
set_user_rendering(id, kRenderFxNone, 0,0,0, kRenderTransAlpha, 150);
}
I want to have semiclip (transparency) for VIP users. This code does not work (player model remains full visiable).
I would like to set VIP users to 50% transparency. If needed by seperate plugin. But optimized code above would be cool.
If anyone can say if the code is crap, thanks a lot!
I would like to set VIP users to 50% transparency. If needed by seperate plugin. But optimized code above would be cool.
If anyone can say if the code is crap, thanks a lot!