Quote:
Originally Posted by Godofwar
Hello I need a plugin that gives VIP. It looks like this: The Player is under Top3 at /top15 Place. In my Server some Users are registered with Flag Y in ADMIN_ADMIN. I dont know how i can it explain. The Plugin should check when one of both are ADMIN_ADMIN Players and ADMIN_USER Players and they are at top3 that they get Flags "BIRT" (ADMIN_LEVEL_H, ADMIN_LEVEL_F, ADMIN_CHAT, ADMIN_RESERVATION)
I am using 1..8.3 Compiler. I hope really anyone can help me.
ADMIN_ADMIN (Flag Y) and ADMIN_USER (Flag Z)
|
Try this
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <csx>
new vip_player[3][45]
public plugin_init() {
register_plugin("TOP3 FREE VIP", "1.1, MrAbdo)
new stats[8],bodyhits[8],name[32];
for(new i; i <= 3; i++)
get_stats(i,stats,bodyhits,name,31,vip_player[i],44)
}
public client_putinserver(id)
{
new player_authid[45]
get_user_authid(id, player_authid, 44)
for(new i; i <= 3; i++)
if(equal(player_authid, vip_player[i]))
{
set_user_flags(id,read_flags("bijt"))
return;
}
}