PHP- Kodu:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>
#include <chatcolor>
#define ADMIN_YETKI ADMIN_KICK
new tag[]="^4[ ~ GlowAim ~ ]^1"
new tus[]="v"
new kirmizi[33]
new pembe[33]
new mavi[33]
new deniz[33]
new yesil[33]
new kahverengi[33]
new beyaz[33]
new sari[33]
new turuncu[33]
new mor[33]
new violet[33]
new altin[33]
new gumus[33]
new bronz[33]
new gri[33]
new kapat[33]
new oyuncular
const MENU_TUSLARI = MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_9|MENU_KEY_0
public plugin_init() {
register_plugin("Glow Aim", "v0.0", "OrjinaLp.")
register_clcmd("/glowaim","Glow_Menu")
register_clcmd("say /glowaim","Glow_Menu")
register_clcmd("say_team /glowaim","Glow_Menu")
register_clcmd("boya", "oyuncu_tikla")
register_menu("Menu 1", MENU_TUSLARI, "Oyun_Menusu")
register_menu("Menu 2", MENU_TUSLARI, "Oyun_Menusu2")
register_menu("Menu 3", MENU_TUSLARI, "Oyun_Menusu3")
}
public client_PreThink(id) {
if(get_user_weapon(id) == CSW_KNIFE && is_user_alive(id)) {
if (get_user_button(id) & IN_RELOAD && get_user_button(id) & IN_JUMP) {
Glow_Menu(id)
}
} else if(!is_user_alive(id)) {
if (get_user_button(id) & IN_RELOAD && get_user_button(id) & IN_JUMP) {
Glow_Menu(id)
}
}
return PLUGIN_CONTINUE
}
public oyuncu_tikla(id){
if(!(get_user_flags(id) & ADMIN_YETKI)) {
chat_color(id,"%s Yetkin Olmadigi Icin Kimseyi Boyayamiyorsun.",tag)
return PLUGIN_HANDLED
}
new hedef, vucut
get_user_aiming(id,hedef,vucut)
if(hedef && is_valid_ent(hedef) && hedef!=id) {
if(hedef<=oyuncular) {
if(is_user_alive(hedef) && !(get_user_flags(hedef) & ADMIN_YETKI)) {
boya_kontrol(id,hedef)
}
} else if(entity_get_int(hedef,EV_INT_solid)!=4) {
boya_kontrol(id,hedef)
}
}
return PLUGIN_HANDLED
}
public boya_kontrol(id,hedef){
new admin_ismi[32],vucut
new hedef_ismi[32]
get_user_aiming(id,hedef,vucut)
get_user_name(hedef,hedef_ismi,31)
get_user_name(id,admin_ismi,31)
if(kirmizi[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,255, 0, 0, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Kirmizi ^1Renge Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(pembe[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,255, 190, 190, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Pembe ^1Renge Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(mavi[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,0, 0, 255, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Mavi ^1Renge Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(deniz[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,0, 150, 255, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Deniz ^1Rengine Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(yesil[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,0, 255, 0, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Yesil ^1Renge Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(kahverengi[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,150, 63, 0, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Kahve^1Rengine Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(beyaz[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,255, 255, 255, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Beyaz ^1Renge Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(sari[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,255, 255, 0, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Sari ^1Renge Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(turuncu[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,255, 150, 0, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Turuncu ^1Renge Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(mor[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,255, 0, 255, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Mor ^1Renge Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(violet[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,100, 0, 100, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Voilet ^1Rengine Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(altin[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,220, 220, 0, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Altin ^1Rengine Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(gumus[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,192, 192, 192, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Gumus ^1Rengine Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(bronz[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,190, 100, 10, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Bronz ^1Renge Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(gri[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,114, 114, 114, kRenderNormal, 30)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncuyu ^4Gri ^1Renge Boyadi.",tag,admin_ismi,hedef_ismi)
}
if(kapat[id]) {
set_user_rendering(hedef, kRenderFxGlowShell,0, 0, 0, kRenderNormal, 255)
chat_color(0,"%s ADMIN ^3%s ^4%s^1 Isimli Oyuncunun Boyasini Temizledi.",tag,admin_ismi,hedef_ismi)
}
}
public Glow_Menu(id){
if(!(get_user_flags(id) & ADMIN_YETKI)) {
chat_color(id,"%s Yetkin Olmadigi Icin Kimseyi Boyayamiyorsun.",tag)
return PLUGIN_HANDLED
}
bronz[id]=false;
gumus[id]=false;
altin[id]=false;
yesil[id]=false;
mavi[id]=false;
pembe[id]=false;
kirmizi[id]=false;
deniz[id]=false;
kahverengi[id]=false;
beyaz[id]=false;
sari[id]=false;
turuncu[id]=false;
mor[id]=false;
violet[id]=false;
gri[id]=false;
kapat[id]=false;
client_cmd(id,"bind mwheeldown slot10")
client_cmd(id,"bind mwheelup slot9")
static Menu[512], satir
satir = 0
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\yRenk Secin 1/3^n^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r1.\w Kirmizi^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r2.\w Sari^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r3.\w Mavi^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r4.\w Deniz^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r5.\w Yesil^n^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r9.\w Ileri \y(Fare Topu Yukari)^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r0.\w Cikis \y(Fare Topu Asagi)")
show_menu(id, MENU_TUSLARI, Menu, -1, "Menu 1")
return PLUGIN_HANDLED
}
public Oyun_Menusu(id, Tus) {
switch (Tus) {
case 0: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Kirmizi ^1Rengi Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
kirmizi[id]=true;
}
case 1: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Sari ^1Rengi Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
sari[id]=true;
}
case 2: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Mavi ^1Rengi Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
mavi[id]=true;
}
case 3: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Deniz ^1Rengini Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
deniz[id]=true;
}
case 4: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Yesil ^1Rengi Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
yesil[id]=true;
}
case 8: {
Glow_Menu2(id)
}
case 9: {
client_print(id,print_chat,"Menuden Ciktiniz")
duzelt(id)
}
}
return PLUGIN_HANDLED;
}
public Glow_Menu2(id){
static Menu[512], satir
satir = 0
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\yRenk Secin 2/3^n^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r1.\w Kahverengi^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r2.\w Beyaz^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r3.\w Pembe^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r4.\w Turuncu^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r5.\w Mor^n^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r9.\w Ileri \y(Fare Topu Yukari)^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r0.\w Geri \y(Fare Topu Asagi)")
show_menu(id, MENU_TUSLARI, Menu, -1, "Menu 2")
}
public Oyun_Menusu2(id, Tus){
switch (Tus) {
case 0: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Kahve ^1Rengini Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
kahverengi[id]=true;
}
case 1: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Beyaz ^1Rengi Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
beyaz[id]=true;
}
case 2: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Pembe ^1Rengi Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
pembe[id]=true;
}
case 3: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Turuncu ^1Rengi Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
turuncu[id]=true;
}
case 4: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Mor ^1Rengi Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
mor[id]=true;
}
case 8: {
client_cmd(id,"bind %s boya",tus)
Glow_Menu3(id)
}
case 9: {
client_cmd(id,"bind %s boya",tus)
Glow_Menu(id)
}
}
return PLUGIN_HANDLED;
}
public Glow_Menu3(id){
static Menu[512], satir
satir = 0
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\yRenk Secin 3/3^n^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r1.\w Altin^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r2.\w Gumus^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r3.\w Bronz^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r4.\w Gri^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r5.\w Normal Renk^n^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r9.\w Ileri \y(Fare Topu Yukari)^n")
satir += formatex(Menu[satir], charsmax(Menu) - satir, "\r0.\w Geri \y(Fare Topu Asagi)")
show_menu(id, MENU_TUSLARI, Menu, -1, "Menu 3")
}
public Oyun_Menusu3(id, Tus){
switch (Tus) {
case 0: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Altin ^1Rengini Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
altin[id]=true;
}
case 1: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Gumus ^1Rengini Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
gumus[id]=true;
}
case 2: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Bronz ^1Rengi Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
bronz[id]=true;
}
case 3: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s ^3Gri ^1Rengi Sectiniz Istediginiz Oyuncunun Uzerine %s ye Basiniz.",tag,tus)
duzelt(id)
gri[id]=true;
}
case 4: {
client_cmd(id,"bind %s boya",tus)
chat_color(id,"%s Istediginzi Oyuncunun Uzerine %s ye Basarak Rengi Kaldirabilirsiniz",tag,tus)
duzelt(id)
kapat[id]=true;
}
case 8: {
client_cmd(id,"bind %s boya",tus)
Glow_Menu3(id)
}
case 9: {
client_cmd(id,"bind %s boya",tus)
Glow_Menu2(id)
}
}
return PLUGIN_HANDLED;
}
public duzelt(id) {
client_cmd(id,"bind mwheeldown +jump")
client_cmd(id,"bind mwheelup +duck")
}