•  
     

[Download] Plugin

Descrição:
- Esse plugin adiciona jogadores VIP no seu servidor, possuindo mais vantagens.

- Vantagens VIP:

- Bunny Hop;
- Novo model da Knife;
- +10 de HP por matar;
- +20 de HP por hs;
- 1 HE, 1 FLASH e 1 SMOKE no inicio do round;
- Menu para escolher: Ak Sniper e Deagle Sniper.

- Flag VIP / Comandos:

Flag: ADMIN_RESERVATION // você pode mudar se quiser.
Comando p/ abrir o menu: /vip ou /menuvip


- Downloads:

Plugin: http://www.amxmodx.o...o=dl&id=1250831
Models: http://www.mediafire...5qj3tryqycj672p

- Sma do plugin logo abaixo. Peço que não removam os devidos créditos.
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <fun>
#include <cstrike>
#include <hamsandwich>

#define FL_WATERJUMP (1<<11)
#define FL_ONGROUND (1<<9)


const m_iFOV = 363
const m_iPlayer = 41
const m_iClipAmmo = 51

new view_deagle_sniper[] = "models/vip_menu/v_deagle_sniper.mdl"
new view_ak_sniper[] = "models/vip_menu/v_ak47_sniper.mdl"

new gAlive[33], gZoom[33], gReloading[33]

new deagle_sniper[33], ak_sniper [33]

new bool:menu_vip[33]

new arma

new KNIFE1_VIEW [] = "models/vip_menu/v_knife1.mdl"
new KNIFE1_PLAYER [] = "models/vip_menu/p_knife1.mdl"


public plugin_init()
{
register_plugin("VIP Plugin by Andre", "1.0", "Andre Neves")
register_event("CurWeapon", "Event_CurWeapon", "be","1=1")
register_clcmd( "say /vip", "cmdVip" )
register_clcmd( "say /menuvip", "cmdVip" )

register_forward(FM_CmdStart, "fwCmdStart")

RegisterHam(Ham_Spawn, "player", "fwPlayerSpawn", 1)
register_event("DeathMsg", "fwKilled", "a", "1>0");
RegisterHam(Ham_Weapon_Reload, "weapon_ak47", "fwWeaponReload")

}


public cmdVip(id)
{
if (!access(id, ADMIN_RESERVATION))
{
client_print (id, print_chat, "Comando apenas para vip")
return PLUGIN_HANDLED
}
if(!menu_vip[id])
{
client_print (id, print_chat, "Voce ja usou o menu")
return PLUGIN_HANDLED
}
new menu = menu_create("Menu Vip!", "vipMenu_Funcoes")

menu_additem(menu, "\wDeagle Zoom", "1")
menu_additem(menu, "\wAk47 Zoom", "2")


menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)

menu_display(id, menu)
return PLUGIN_CONTINUE
}
public vipMenu_Funcoes(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}

new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data)
menu_vip[id] = false

switch(key)
{
case 1:
{
deagle_sniper[id] = 1
client_print (id, print_chat, "[VIP] Voce escolheu Deagle Sniper.")
}
case 2:
{
ak_sniper[id] = 1
client_print (id, print_chat, "[VIP] Voce escolheu Ak Sniper")
}
}
return PLUGIN_CONTINUE
}


public plugin_precache()
{
precache_model(KNIFE1_VIEW)
precache_model(KNIFE1_PLAYER)
precache_model(view_deagle_sniper)
precache_model(view_ak_sniper)
}

public Event_CurWeapon(id)
{
arma = get_user_weapon(id)
if (arma == CSW_KNIFE && access(id, ADMIN_RESERVATION))
{
entity_set_string(id, EV_SZ_viewmodel, KNIFE1_VIEW)
entity_set_string(id, EV_SZ_weaponmodel, KNIFE1_PLAYER)
}

if(arma == CSW_DEAGLE && deagle_sniper[id])
{
entity_set_string(id, EV_SZ_viewmodel, view_deagle_sniper)
}

if (arma == CSW_AK47 && ak_sniper[id])
{
entity_set_string(id, EV_SZ_viewmodel, view_ak_sniper)
}
}

public client_PreThink(id)
{

entity_set_float(id, EV_FL_fuser2, 0.0)
if (!access(id, ADMIN_RESERVATION))
{
return PLUGIN_HANDLED
}

if (entity_get_int(id, EV_INT_button) & 2)
{
new flags = entity_get_int(id, EV_INT_flags)

if (flags & FL_WATERJUMP)
{
return PLUGIN_CONTINUE
}

if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )
{
return PLUGIN_CONTINUE
}

if ( !(flags & FL_ONGROUND) )
{
return PLUGIN_CONTINUE
}

new Float:velocity[3]
entity_get_vector(id, EV_VEC_velocity, velocity)
velocity[2] += 250.0
entity_set_vector(id, EV_VEC_velocity, velocity)

entity_set_int(id, EV_INT_gaitsequence, 6) // Play the Jump Animation
}
return PLUGIN_CONTINUE
}


public fwCmdStart(id, uc_handle, seed)
{
if (!gAlive[id] && !access(id, ADMIN_RESERVATION))
{
return FMRES_IGNORED;
}


static button, oldbuttons, weapon;
button = get_uc(uc_handle, UC_Buttons);
oldbuttons = pev(id, pev_oldbuttons);

if ((button & IN_ATTACK2) && !(oldbuttons & IN_ATTACK2))
{
weapon = get_user_weapon(id)
if (weapon == CSW_DEAGLE && deagle_sniper[id] || weapon == CSW_AK47 && ak_sniper[id])
{
if (!gZoom[id] && !gReloading[id])
{
gZoom[id] = true;
set_pdata_int(id, m_iFOV, 35, 5);
emit_sound(id, CHAN_ITEM, "weapons/zoom.wav", 0.20, 2.40, 0, 100);
}
else
{
if (gZoom[id])
{
gZoom[id] = false;
set_pdata_int(id, m_iFOV, 90, 5);
}
}
}
}
return FMRES_IGNORED;
}

public fwPlayerSpawn(id)
{
if(!access(id, ADMIN_RESERVATION))
return PLUGIN_HANDLED;

if (is_user_alive(id))
{
gAlive[id] = true
deagle_sniper[id] = 0
ak_sniper [id] = 0
menu_vip[id] = true
give_item (id, "weapon_hegrenade")
give_item (id, "weapon_flashbang")
give_item (id, "weapon_smokegrenade")
}
return PLUGIN_CONTINUE
}

public fwKilled()
{
new Killer = read_data(1)
new Victim = read_data(2)
new headshot = read_data(3)
gAlive[Victim] = false
if(!access(Killer, ADMIN_RESERVATION))
return PLUGIN_HANDLED;

if(headshot)
set_user_health(Killer, get_user_health(Killer) + 20);
else
set_user_health(Killer, get_user_health(Killer) + 10);

return PLUGIN_CONTINUE
}

public fwWeaponReload(weapon)
{
if (fm_get_weapon_ammo(weapon) != 7 || fm_get_weapon_ammo(weapon) != 30)
{
static id;
id = get_pdata_cbase(weapon, m_iPlayer, 4);

set_pdata_int(id, m_iFOV, 90, 5);

gReloading[id] = true;
set_task(2.3, "taskWeaponReloaded", id);
}
}

public taskWeaponReloaded(id)
{
gReloading[id] = false;
}

stock fm_get_weapon_ammo(weapon)
{
return get_pdata_int(weapon, m_iClipAmmo, 0);
}


- Créditos: [T] ruten (eu)
Moseka
 
pow man naum ta dando para baixar esse plugin tem como você me mandar ele pelo skype por favor


meu skype: ZeNNyC