I want one plugin with
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <ColorChat>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "[Furien] V.I.P"
#define VERSION "1.0"
#define AUTHOR "SkepT Jr."
#define VIP_FLAG ADMIN_LEVEL_H
native fcs_get_user_credits ( id );
native fcs_set_user_credits ( id, amount );
static const COLOR[] = "^x04"; // Green for display VIP
#pragma semicolon 1
public plugin_init ( ) {
register_plugin ( PLUGIN, VERSION, AUTHOR );
register_clcmd ( "say /wantvip", "motd" );
register_clcmd ( "say /vips", "vip_who" );
register_message ( get_user_msgid ( "ScoreAttrib" ),"vip_tabscore");
RegisterHam ( Ham_Spawn, "player", "fwPlayerSpawn", true );
// Add your code here..
}
public motd ( id )
show_motd ( id, "/addons/amxmodx/configs/vip.html" );
//Code by .....
public vip_who(user) {
new adminnames[33][32];
new message[256];
new id, count, x, len;
for(id = 1 ; id <= get_maxplayers() ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & VIP_FLAG)
get_user_name(id, adminnames[count++], 31);
len = format(message, 255, "%sMembri VIP 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, "Nu sunt membri VIP online.");
print_message(user, message);
}
}
print_message(id, msg[]) {
message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, id);
write_byte(id);
write_string(msg);
message_end();
}
//Code by je
public vip_tabscore ( const MsgId, const MsgType, const MsgDest ) {
static id;
id = get_msg_arg_int ( 1 );
if ( get_user_flags ( id ) & VIP_FLAG )
set_msg_arg_int ( 2, ARG_BYTE, ( 1 << 2 ) );
}
public fwPlayerSpawn ( id ) {
if( is_user_alive ( id ) && get_user_flags ( id ) & VIP_FLAG ) {
set_pev ( id, pev_health, 150.0 );
set_pev ( id, pev_armorvalue, 150.0 );
fcs_set_user_credits ( id, fcs_get_user_credits ( id ) + 5 );
ColorChat ( id, GREEN, "[V.I.P] -^3 Ai primit 5 credite si 150 HP + 150 AP pentru ca esti V.I.P ." );
}
}
and skin Furien : vip_t , skin Antifurien : vip_ct , when kill receive 15 HP and headshot 30 HP , i want ONE plugin with all , only for vips , FLAG VIP T