- 150 HP
- Flash
- Smoke
- Napis w tabeli gdy się żyje "VIP"
- Gdy wchodzi się na serwer pisze "Na serwer właśnie wszedł nick gracza"
Z gory dziekuje.
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Napisano 22.07.2011 18:45
Napisano 27.07.2011 17:27
Napisano 27.07.2011 17:51
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>
#include <hamsandwich>
#define VIP ADMIN_LEVEL_H
new const gPluginName[] = "VIP";
new const gPluginVersion[] = "0.1";
new const gPluginAuthor[] = "kapi10072";
static id;
public plugin_init() {
register_plugin(gPluginName, gPluginVersion, gPluginAuthor)
register_message(get_user_msgid("ScoreAttrib"), "msgScoreAttrib");
RegisterHam(Ham_Spawn, "player", "fwSpawn", 1);
}
public client_putinserver(id)
{
if(get_user_flags(id) & VIP)
{
new name[32]
get_user_name(id, name, 31);
set_hudmessage(200, 0, 0, 0.05, 0.65, 2, 5.0, 30.0, 0.03, 0.3, 2) ;
show_hudmessage(0, "Na serwer wszedl VIP %s", name);
}
}
public msgScoreAttrib( const MsgId, const MsgType, const MsgDest )
{
id = get_msg_arg_int( 1 );
if( ( get_user_flags( id ) & VIP ) && !get_msg_arg_int( 2 ))
{
set_msg_arg_int( 2, ARG_BYTE, ( 1 << 2 ) );
}
}
public fwSpawn(id)
{
if ( !is_user_alive(id) ) return HAM_IGNORED;
if(get_user_flags(id) & VIP)
{
fm_give_item(id, "weapon_flashbang");
fm_give_item(id, "weapon_smokegrenade");
fm_set_user_health(id, 150);
}
return HAM_IGNORED;
}
Najlepszy serwer TeamPlay w Polsce !
Pomogłem, wejdź
Zapraszam na BHZ-Game.pl
Bo nie liczą się fragi tylko dobra atmosfera ;D
Napisano 27.07.2011 18:27
Napisano 28.07.2011 19:12
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>
#include <hamsandwich>
#define VIP ADMIN_LEVEL_H
new const gPluginName[] = "VIP";
new const gPluginVersion[] = "0.1";
new const gPluginAuthor[] = "kapi10072";
/*---------------EDIT ME------------------*/
static const COLOR[] = "^x04" //green
static const CONTACT[] = ""
/*----------------------------------------*/
new maxplayers
new gmsgSayText
static id;
public plugin_init() {
register_plugin(gPluginName, gPluginVersion, gPluginAuthor)
register_message(get_user_msgid("ScoreAttrib"), "msgScoreAttrib");
RegisterHam(Ham_Spawn, "player", "fwSpawn", 1);
maxplayers = get_maxplayers()
gmsgSayText = get_user_msgid("SayText")
register_clcmd("say", "handle_say")
register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER)
}
public client_putinserver(id)
{
if(get_user_flags(id) & VIP)
{
new name[32]
get_user_name(id, name, 31);
set_hudmessage(200, 0, 0, 0.05, 0.65, 2, 5.0, 30.0, 0.03, 0.3, 2) ;
show_hudmessage(0, "Na serwer wszedl VIP %s", name);
}
}
public msgScoreAttrib( const MsgId, const MsgType, const MsgDest )
{
id = get_msg_arg_int( 1 );
if( ( get_user_flags( id ) & VIP ) && !get_msg_arg_int( 2 ))
{
set_msg_arg_int( 2, ARG_BYTE, ( 1 << 2 ) );
}
}
public fwSpawn(id)
{
if ( !is_user_alive(id) ) return HAM_IGNORED;
if(get_user_flags(id) & VIP)
{
fm_give_item(id, "weapon_flashbang");
fm_give_item(id, "weapon_smokegrenade");
fm_set_user_health(id, 150);
}
return HAM_IGNORED;
}
public handle_say(id) {
new said[192]
read_args(said,192)
if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/vips") != -1 )
set_task(0.1,"print_adminlist",id)
return PLUGIN_CONTINUE
}
public print_adminlist(user)
{
new adminnames[33][32]
new message[256]
new contactinfo[256], contact[112]
new id, count, x, len
for(id = 1 ; id <= maxplayers ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & VIP)
get_user_name(id, adminnames[count++], 31)
len = format(message, 255, "%s VIP'Y ONLINE: ",COLOR)
if(count > 0) {
for(x = 0 ; x < count ; x++) {
len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
if(len > 96 ) {
print_message(user, message)
len = format(message, 255, "%s ",COLOR)
}
}
print_message(user, message)
}
else {
len += format(message[len], 255-len, "Brak VIP'ow ONLINE.")
print_message(user, message)
}
get_cvar_string("amx_contactinfo", contact, 63)
if(contact[0]) {
format(contactinfo, 111, "%s Kontakt z adminem -- %s", COLOR, contact)
print_message(user, contactinfo)
}
}
print_message(id, msg[]) {
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
Użytkownik kapi10072 edytował ten post 28.07.2011 19:13
Najlepszy serwer TeamPlay w Polsce !
Pomogłem, wejdź
Zapraszam na BHZ-Game.pl
Bo nie liczą się fragi tylko dobra atmosfera ;D
|
Nowy Plugin
[KOSZ] pluginNapisany przez Frodo1981, 25.02.2024 nowy plugin |
|
|||
Nowy Plugin
vip pbNapisany przez One ShooT, 04.02.2024 nowy plugin |
|
||||
Nowy Plugin
Admin menuNapisany przez stół z powyłamywanymi, 22.09.2022 nowy plugin |
|
||||
Nowy Plugin
Prośba o napisanie pluginuNapisany przez stół z powyłamywanymi, 15.08.2022 nowy plugin |
|
||||
Nowy Plugin
PLUGIN NA DRplugin Napisany przez bawarskagolonka123, 25.06.2021 nowy plugin |
|
0 użytkowników, 0 gości, 0 anonimowych