/vip - co daje vip
/vips - vipy online
Oraz dodanie takie menu, czyli jak jest poczatek rundy wyskakuje menu z wyborem:
1. Normalny marker
2. Super marker
Normalny marker - MP5
Super marker- P90
#include <amxmodx>
#include <fun>
#include <hamsandwich>
new bool:g_Vip[33];
public plugin_init(){
register_plugin("VIP Ultimate", "5.1.0.2", "benio101 & speedkill");
RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1);
register_event("DeathMsg", "DeathMsg", "a");
}
public client_authorized(id){
if(get_user_flags(id) & 524288 == 524288){
client_authorized_vip(id);
}
}
public client_authorized_vip(id){
g_Vip[id]=true;
}
public client_disconnect(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_health(id, get_user_health(id)+100);
give_item(id, "p90");
if(get_user_team(id)%2){
give_item(id, "item_thighpack");
}
}
public DeathMsg(){
new killer=read_data(1);
new victim=read_data(2);
if(is_user_alive(killer) && g_Vip[killer]){
if(get_user_team(killer) != get_user_team(victim)){
new g_Hs=read_data(3);
new g_Hp=get_user_health(killer);
if(g_Hs){
if(g_Hp < 130){
if(g_Hp + 150 > 200){
new g_Dif = 200 - g_Hp;
set_user_health(killer,g_Hp + g_Dif);
}
else
set_user_health(killer,g_Hp + 150);
}
}
else{
if(g_Hp < 200){
if(g_Hp + 100 > 200 ){
new g_Dif = 200 - g_Hp;
set_user_health(killer,g_Hp + g_Dif);
}
else
set_user_health(killer,g_Hp + 100);
}
}
}
}
}
Oczywiscie poleci +
Użytkownik MoNsTeR KiLl edytował ten post 06.10.2012 19:37


Dodatki SourceMod



Temat jest zamknięty







