Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public invisible(id) {
- new grav = get_pcvar_num( g_SviCvarovi[ NEVIDLJIVOST_CENA ] );
- if(get_pcvar_num( g_SviCvarovi[ NEVIDLJIVOST ] ) == 1 && is_user_alive(id) && cs_get_user_money(id) >= grav && !nev[id]) {
- ColorChat(id, TEAM_COLOR, "^4[VIP]^1 %L", LANG_SERVER, "BOUGHT_INVISIBLE", get_pcvar_num( g_SviCvarovi[ NEVIDLJIVOST_TRAJANJE ] ), grav);
- cs_set_user_money(id, cs_get_user_money(id) - grav);
- set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0,kRenderTransColor,1);
- nev[id] = true;
- set_task(get_pcvar_float( g_SviCvarovi[ NEVIDLJIVOST_TRAJANJE ] ),"gasi_nev",id);
- }
- }
- public gasi_nev(id) {
- if(is_user_alive(id) && nev[id]) {
- set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0,kRenderTransColor,255);
- nev[id] = false;
- ColorChat(id, TEAM_COLOR, "^4[VIP]^3 %L", LANG_SERVER, "DEFAULT_INVISIBLE");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement