Önce AmxModx i Açın Sonra Üstte Tools'dan Yapın Gerisi Resimlerde
Settings'e Tıkladıktan Sonra
Code-Snippetslerden Add A Tıklayarak Ekleyebilirsiniz.
Şimdi Kodları Veriyorum .
==========================
[CSA] Konsol Komutu
PHP Kod:
console_cmd(id, "amx_cvar hook_speed 8")
[b][CSA] Formatex Menu[/b]
PHP Kod:
public coBX(id) {
static Item[128]
formatex(Item, charsmax(Item),"\r[CSAilesi.com] \d-- \yMenu")
new Menu = menu_create(Item, "coBX_devam")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "1")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "2")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "3")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "4")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "5")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "6")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "7")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "8")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "9")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "10")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "11")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "12")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "13")
formatex(Item, charsmax(Item),"\w[\rYAZI\w]")
menu_additem(Menu, Item, "14")
menu_setprop(Menu,MPROP_BACKNAME,"\wGeri")
menu_setprop(Menu,MPROP_NEXTNAME,"\wIleri")
menu_setprop(Menu,MPROP_EXITNAME,"\wCikis")
menu_display(id, Menu,0)
}
public coBX_devam(id, menu, item) {
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
switch(key)
{
case 1:{
//
}
case 2:{
//
}
case 3:{
//
}
case 4:{
//
}
case 5:{
//
}
case 6:{
//
}
case 7:{
//
}
case 8:{
//
}
case 9:{
//
}
case 10:{
//
}
case 11:{
//
}
case 12:{
//
}
case 13:{
//
}
case 14:{
//
}
}
return PLUGIN_HANDLED
}
[b][b][CSA] Komutlar[/b][/b]
PHP Kod:
register_clcmd("say /komut", "komut")
register_clcmd("say_team /komut", "komut")
[CSA] Renkli Yazi
PHP Kod:
stock renkli_yazi(const id, const input[], any:...) // yeni renkler
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
replace_all(msg, 190, "!g", "^x04"); // Yeşil Renk
replace_all(msg, 190, "!t", "^x03"); // Takım Renk( CT mavi , T kırmızı )
if (id) players[0] = id; else get_players(players, count, "ch");
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
[b][CSA] Rastgele Komutu[/b]
PHP Kod:
public rastgele(id)
{
switch(random_num(0,10))
{
case 0 :
{
//
}
case 1:
{
//
}
case 2 :
{
//
}
case 3 :
{
//
}
case 4 :
{
//
}
case 5 :
{
//
}
case 6 :
{
//
}
case 7 :
{
//
}
case 8 :
{
//
}
case 9 :
{
//
}
case 10 :
{
//
}
}
}
[b][b][CSA] Sadece Jaile Ozel Yapmak[/b][/b]
PHP Kod:
new map[32]; // Tanıtmak Gerek
get_mapname(map,31); // Pluginin tamamını jb mapında kullanmak istiyorsanız plugin init
if((containi(map,"jail") == -1) && (containi(map,"jb_") == -1) && (containi(map,"some1s_") == -1)) return
[b][b][b][CSA] El Basi[/b][/b][/b]
PHP Kod:
register_logevent("Event_RoundStart", 2, "1=Round_Start")
Yeni tur baslayinca calisir
}
public Event_RoundStart()
{
}
[b][b][b][b][CSA] El Sonu[/b][/b][/b][/b]
PHP Kod:
register_logevent("Event_RoundEnd", 2, "1=Round_End")
}
public Event_RoundEnd()
{
}
[b][b][b][b][b][CSA] Biri Ölünce Çalışır[/b][/b][/b][/b][/b]
PHP Kod:
register_event("DeathMsg", "Event_DeathMsg", "a")
//Biri olunce calisir.
}
public Event_DeathMsg()
{
new olen = read_data(1)
new olduren = read_data(2)
new headshotalgilama = read_data(3)
new silahismi[20]
read_data(4, silahismi, charsmax(silahismi))
}
[b][b][b][b][b][b][CSA] Hasar Alınca[/b][/b][/b][/b][/b][/b]
PHP Kod:
RegisterHam(Ham_TakeDamage, "player", "On_TakeDamage")
Adam hasar yiyince On_TakeDamageyi calistirir.
public On_TakeDamage(hasaralan, inflictor, saldiran, Float:hasar, hasarturu)
{
return HAM_SUPERCEDE ; HASAR ALMAYI ENGELLER
}
[b][b][b][b][b][b][b][CSA] Adam Doğduktan Sonra[/b][/b][/b][/b][/b][/b][/b]
PHP Kod:
RegisterHam(Ham_Spawn, "player", "FwdHamSpawn", 1)
Adam dogduktan sonra calisir
public FwdHamSpawn(id)
{
}
[b][b][b][b][b][b][b][b][CSA] Includeler[/b][/b][/b][/b][/b][/b][/b][/b]
PHP Kod:
/* Ana Includeler*/
#include <amxmisc>
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>
/* BB*/
#inlcude <basebuilder>
/* Bio*/
#include <biohazard>
/*Cssats*/
#include <csstats>
/*Engine*/
#include <engine>
/*Fakemata*/
#include <fakemeta>
/*Yeni Tip Menüler*/
#include <newmenus>
/*Nvault*/
#include <nvault>
/*Vault*/
#include <vault>
/*Jbmenuler İçin*/
#include <xs>
/*ZombiPlague*/
#include <zombieplague>
/*ZombiPlague New 1.3*/
#include <zombieplaguenew1.3>
/*Jail İnclude*/
#include <jail>
[b][b][b][b][b][b][b][b][b][CSA] Format Motd[/b][/b][/b][/b][/b][/b][/b][/b][/b]
PHP Kod:
static motd[1501], len
len = format(motd, 1500,"<body bgcolor=black><font color=white><pre>")
len += format(motd[len], 1500-len,"<span style='font-weight: bold; color: rgb(244, 132, 12); '>Komutcu 1: </span>KOMUTCU HARFLERI YAZILACAK<br />")
len += format(motd[len], 1500-len,"<span style='font-weight: bold; color: rgb(244, 132, 12); '>Komutcu 2: </span>KOMUTCU HARFLERI YAZILACAK<br />")
len += format(motd[len], 1500-len,"<span style='font-weight: bold; color: rgb(244, 132, 12); '>Komutcu 3: </span>KOMUTCU HARFLERI YAZILACAK<br />")
len += format(motd[len], 1500-len,"<span style='font-weight: bold; color: rgb(244, 132, 12); '>Komutcu 4: </span>KOMUTCU HARFLERI YAZILACAK<br />")
show_motd(id, motd, "Komutcu Yetkilerimiz")
[b][b][b][b][b][b][b][b][b][b][CSA] Menu Olarak Adam Seçme[/b][/b][/b][/b][/b][/b][/b][/b][/b][/b]
PHP Kod:
public adi(id)
{
new ad[32],sznum[6]
new Menu;
static Item[64]
formatex(Item,charsmax(Item),"\yBURAYA BISEY YAZ")
Menu = menu_create(Item,"adi_devam")
for(new i = 1;i<=get_maxplayers();i++)
if(is_user_connected(i) && get_user_team(i) == 2 && is_user_alive(i))
{
num_to_str(i,sznum,5)
get_user_name(i,ad,31)
menu_additem(Menu,ad,sznum)
}
menu_display(id,Menu, 0)
return PLUGIN_HANDLED
}
public adi_devam(id,menu,item) {
if(item == MENU_EXIT) {
menu_destroy(menu)
return PLUGIN_HANDLED
}
new ad[32],callback,access,data[6]
menu_item_getinfo(menu,item,access,data,5,ad,31,callback)
new name[32];
get_user_name(id,name,31)
new tid = str_to_num(data)
BuryPlayer(tid)
cobox_yazi(id,"!t[!g %s !t] !t%s !nNickli Mahkum !g%s !nNickli Gardiyani !tGomdu.",TAG,name,ad)
return PLUGIN_HANDLED
}