LEVEL S co to za flaga?
Flagi - AMXX.pl: Support AMX Mod X tutaj flagi
Łap na flagę G jest to podflaga S
Spoiler
#include <amxmodx>
#include <amxmisc>
#include <codmod>
#include <fakemeta>
#include <engine>
#define FL_WATERJUMP (1<<11) // popping out of the water
#define FL_ONGROUND (1<<9) // not moving on the ground
new bool:ma_klase[33];
new const nazwa[] = "Predator";
new const opis[] = "Posiada auto bh oraz widzi niewidzialnych";
new const bronie = 1<<CSW_MP5NAVY;
new const zdrowie = 10;
new const kondycja = 18;
new const inteligencja = 10;
new const wytrzymalosc = 5;
public plugin_init() {
register_plugin(nazwa, "1.0", "eSkill");
register_forward(FM_AddToFullPack, "FwdAddToFullPack", 1)
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
}
public cod_class_enabled(id) {
if(!(get_user_flags(id) & ADMIN_LEVEL_G))
{
client_print(id, print_chat, "Nie masz uprawnien, aby uzywac tej klasy.", nazwa)
return COD_STOP;
}
ma_klase[id] = true;
return COD_CONTINUE;
}
public cod_class_disabled(id)
ma_klase[id] = false;
public FwdAddToFullPack(es_handle, e, ent, host, hostflags, player, pSet) {
if(!is_user_connected(host) || !is_user_connected(ent))
return;
if(!ma_klase[host])
return;
set_es(es_handle, ES_RenderAmt, 255.0);
}
public client_PreThink(id)
{
if(!ma_klase[id])
return PLUGIN_CONTINUE
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)
}
return PLUGIN_CONTINUE
}