renkli_yazi En Altta ekli Fakat undefined symbol hatasi veriyor
PHP Kod:
////////// ////////// /////////// * CSAilesi.com Forum Kullanicisi *
// // // // // * Berk Tarafindan Codlanip Paylsldı *
// ////////// /////////// * Eklentiyi Satmak YASAKTIR *
// // // // * www.csailesi.com Paylaşım Platfor *
// // // // * Sattığınız Anda Cezai İşlem *
////////// ////////// // // * Uygulanacaktır Emeğe Saygı Lütfen *
//* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <hlsdk_const>
#include <fakemeta>
#include <fun>
#include <engine>
#define DEAGLE_HASAR 1.3
#define M4A1_HASAR 1.5
#define MP5_HASAR 1.4
#define XM1014_HASAR 0.9
#define AK47_HASAR 1.5
#define fm_cs_set_weapon_ammo(%1,%2) set_pdata_int(%1, 51, %2, 4)
new const g_MaxClipAmmo[] = {
0, 13, 0, 10, 0, 7, 0, 30, 30, 0, 15, 20, 25, 30, 35, 25, 12, 20,
10, 30, 100, 8, 30, 30, 20, 0, 7, 30, 30, 0, 50
}
// CVARS
new VIEW_DEAGLEGOLD[] = "models/v_golden_deagle.mdl"; // Golden Deagle Model
new PLAYER_DEAGLEGOLD[] = "models/p_deagle.mdl"; // Golden Deagle Model
new VIEW_AK47GOLD[] = "models/v_golden_ak47.mdl";
new PLAYER_AK47GOLD[] = "models/p_ak47.mdl";
new VIEW_M4A1GOLD[] = "models/v_golden_m4a1.mdl"; // Golden Deagle Model
new PLAYER_M4A1GOLD[] = "models/p_m4a1.mdl"; // Golden M4a1 Model
new VIEW_MP5GOLD[] = "models/v_goldmp5.mdl"; // Golden Deagle Model
new PLAYER_MP5GOLD[] = "models/p_goldmp5.mdl"; // Golden M4a1 Model
new VIEW_XM1014GOLD[] = "models/v_golden_xm1014.mdl"; // Golden Deagle Model
new PLAYER_XM1014GOLD[] = "models/p_xm1014.mdl"; // Golden M4a1 Model;
new Gorunmezlik[33],
bool:engel2[33], engel3[33], engel4[33], engel5[33], engel6[33], engel7[33],
bool:deagle[33], bool:m4a1[33], bool:ak47[33], bool:mp5[33], bool:xm1014[33];
new unammocuk[33],
#define PLUGIN "Admin Silah"
#define VERSION "v1.0"
#define AUTHOR "Berk"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /adminsilah", "ozelyonetici")
register_event("CurWeapon", "HookCurWeapon", "be", "1=1")
register_logevent("YeniTur", 2, "1=Round_Start")
register_logevent("ElSonu", 2, "1=Round_End")
register_event("CurWeapon", "HookCurWeapon", "be", "1=1")
RegisterHam(Ham_Spawn, "player", "FwdHamPlayerSpawn", 1)
RegisterHam(Ham_TakeDamage, "player", "silahhasar", 0);
register_event("CurWeapon" , "Event_CurWeapon" , "be" , "1=1" );
}
public Event_CurWeapon(id){
if(unammocuk[id]){
new iWeapon = read_data(2)
{
fm_cs_set_weapon_ammo( get_pdata_cbase(id, 373) , g_MaxClipAmmo[ iWeapon ] )
}
}
}
public plugin_precache()
{
precache_model(VIEW_DEAGLEGOLD)
precache_model(PLAYER_DEAGLEGOLD)
precache_model(VIEW_M4A1GOLD)
precache_model(PLAYER_M4A1GOLD)
precache_model(VIEW_AK47GOLD)
precache_model(PLAYER_AK47GOLD)
precache_model(VIEW_MP5GOLD)
precache_model(PLAYER_MP5GOLD)
precache_model(VIEW_XM1014GOLD)
precache_model(PLAYER_XM1014GOLD)
}
public ozelyonetici(id)
{
if(get_user_flags(id) & ADMIN_RCON)
{
new menu = menu_create("\yCsAilesi ~\y Pro \r// \yYonetici Menu", "ozelyonetici1")
if(engel2[id])
{
menu_additem(menu, "\yCsAilesi \r// \y250 Hp Satin Al \rKullandiniz", "1", 0);
}
else
{
menu_additem(menu, "\yCsAilesi \r// \y250 Hp Satin Al \rBeles", "1", 0);
}
if(engel3[id])
{
menu_additem(menu, "\yCsAilesi \r// \yGolden M4A1 \rKullandiniz", "5", 0);
}
else
{
menu_additem(menu, "\yCsAilesi \r// \yGolden M4A1 \rBeles", "5", 0);
}
if(engel3[id])
{
menu_additem(menu, "\yCsAilesi \r// \yGolden AK47 \rKullandiniz", "6", 0);
}
else
{
menu_additem(menu, "\yCsAilesi \r// \yGolden AK47 \rBeles", "6", 0);
}
if(engel3[id])
{
menu_additem(menu, "\yCsAilesi \r// \yGolden MP5 \rKullandiniz", "7", 0);
}
else
{
menu_additem(menu, "\yCsAilesi \r// \yGolden MP5 \rBeles", "7", 0);
}
if(engel3[id])
{
menu_additem(menu, "\yCsAilesi \r// \yGolden XM1014 \rKullandiniz", "8", 0);
}
else
{
menu_additem(menu, "\yCsAilesi \r// \yGolden XM1014 \rBeles", "8", 0);
}
if(engel4[id])
{
menu_additem(menu, "\yCsAilesi \r// \yGolden Deagle \rKullandiniz", "9", 0);
}
else
{
menu_additem(menu, "\yCsAilesi \r// \yGolden Deagle \rBeles", "9", 0);
}
if(engel5[id])
{
menu_additem(menu, "\yCsAilesi \r// \y20 Saniye Gorunmezlik \rKullandiniz", "2", 0);
}
else
{
menu_additem(menu, "\yCsAilesi \r// \y20 Saniye Gorunmezlik \rBeles", "2", 0)
}
if(engel6[id])
{
menu_additem(menu, "\yCsAilesi \r// \y5000 Dolar Satin Al \rKullandiniz", "3", 0);
}
else
{
menu_additem(menu, "\yCsAilesi \r// \y5000 Dolar Satin Al \rBeles", "3", 0);
}
if(engel7[id])
{
menu_additem(menu, "\yCsAilesi \r// \y30 Saniye Unammo \rKullandiniz", "4", 0);
}
else
{
menu_additem(menu, "\yCsAilesi \r// \y30 Saniye Unammo \rBeles", "4", 0);
}
menu_setprop(menu, MPROP_EXITNAME, "\rCikis")
menu_display(id, menu, 0)
}
}
public ozelyonetici1(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], iName[64], Access, Callback
menu_item_getinfo(menu, item, Access, data, sizeof(data) -1, iName, sizeof(iName) -1, Callback)
new key = str_to_num(data)
switch(key)
{
case 1: {
if(engel2[id])
{
renkli_yazi(id, "!t[!gCsAilesi] !tHer El Bir Kere..")
renkli_yazi(id, "!t[!gCsAilesi!t] !t Diger El Tekrar Dene")
ozelyonetici(id)
}
else
{
set_user_health(id,get_user_health(id) + 250)
engel2[id] = true
renkli_yazi(id, "!n[ !gCsAilesi !n] !tBedava !g250 HP Aldin.")
}
}
case 2: {
if(engel5[id])
{
renkli_yazi(id, "!t[!gCsAilesi] !tHer El Bir Kere..")
renkli_yazi(id, "!t[!gCsAilesi!t] !t Diger El Tekrar Dene")
ozelyonetici(id)
}
else
{
set_entity_visibility(id, 0)
set_task(20.0, "GorunmezlikBitir", id)
engel5[id] = true
renkli_yazi(id, "!n[ !gCsAilesi !n] !tBedava !gGorunmezlik Aldin.")
}
}
case 3: {
if(engel6[id])
{
renkli_yazi(id, "!t[!gCsAilesi] !tHer El Bir Kere..")
renkli_yazi(id, "!t[!gCsAilesi!t] !t Diger El Tekrar Dene")
ozelyonetici(id)
}
else
{
engel6[id] = true
cs_set_user_money(id,cs_get_user_money(id) + 5000)
renkli_yazi(id, "!n[ !gCsAilesi !n] !tBedava !g5000 Dolar Aldin.")
}
}
case 4: {
if(engel7[id])
{
renkli_yazi(id, "!t[!gCsAilesi] !tHer El Bir Kere..")
renkli_yazi(id, "!t[!gCsAilesi!t] !t Diger El Tekrar Dene")
ozelyonetici(id)
}
else
{
unammocuk[id] = true
set_task(30.0, "UnammoBitir", id)
engel7[id] = true
renkli_yazi(id, "!n[ !gCsAilesi !n] !tBedava !g30 Sn Unammo Aldin.")
}
}
case 5: {
if(engel3[id])
{
renkli_yazi(id, "!t[!gCsAilesi] !tHer El Bir Kere..")
renkli_yazi(id, "!t[!gCsAilesi!t] !t Diger El Tekrar Dene")
ozelyonetici(id)
}
else
{
give_item(id, "weapon_m4a1")
cs_set_user_bpammo(id, CSW_M4A1, 200)
m4a1[id] = true
engel3[id] = true
renkli_yazi(id, "!n[ !gCsAilesi !n] !tBedava !gGolden M4A1 Aldin.")
}
}
case 6: {
if(engel3[id])
{
renkli_yazi(id, "!t[!gCsAilesi] !tHer El Bir Kere..")
renkli_yazi(id, "!t[!gCsAilesi!t] !t Diger El Tekrar Dene")
ozelyonetici(id)
}
else
{
give_item(id, "weapon_ak47")
cs_set_user_bpammo(id, CSW_AK47, 200)
ak47[id] = true
engel3[id] = true
renkli_yazi(id, "!n[ !gCsAilesi !n] !tBedava !gGolden AK47 Aldin.")
}
}
case 7: {
if(engel3[id])
{
renkli_yazi(id, "!t[!gCsAilesi] !tHer El Bir Kere..")
renkli_yazi(id, "!t[!gCsAilesi!t] !t Diger El Tekrar Dene")
ozelyonetici(id)
}
else
{
give_item(id, "weapon_mp5navy")
cs_set_user_bpammo(id, CSW_MP5NAVY, 200)
mp5[id] = true
engel3[id] = true
renkli_yazi(id, "!n[ !gCsAilesi !n] !tBedava !gGolden MP5 Aldin.")
}
}
case 8: {
if(engel3[id])
{
renkli_yazi(id, "!t[!gCsAilesi] !tHer El Bir Kere..")
renkli_yazi(id, "!t[!gCsAilesi!t] !t Diger El Tekrar Dene")
ozelyonetici(id)
}
else
{
give_item(id, "weapon_xm1014")
cs_set_user_bpammo(id, CSW_XM1014, 200)
xm1014[id] = true
engel3[id] = true
renkli_yazi(id, "!n[ !gCsAilesi !n] !tBedava !gGolden XM1014 Aldin.")
}
}
case 9: {
if(engel4[id])
{
renkli_yazi(id, "!t[!gCsAilesi] !tHer El Bir Kere..")
renkli_yazi(id, "!t[!gCsAilesi!t] !t Diger El Tekrar Dene")
ozelyonetici(id)
}
else
{
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id, CSW_DEAGLE, 200)
deagle[id] = true
engel4[id] = true
renkli_yazi(id, "!n[ !gCsAilesi !n] !tBedava !gGolden DEAGLE Aldin.")
}
}
}
public GorunmezlikBitir(id)
{
set_entity_visibility(id, 1)
renkli_yazi(id, "!n[ !gCsAilesi !n] !tBedava !gGorunmezligin Bitti.")
}
public UnammoBitir(id)
{
unammocuk[id] = false
renkli_yazi(id, "!n[ !gCsAilesi !n] !tBedava !gUnammo !tBitti.")
}
public YeniTur()
{
new players[32], inum;
static Uid;
get_players(players, inum, "a")
for(new i; i < inum; i++) {
Uid = players[i];
Gorunmezlik[Uid] = -1
engel2[Uid] = false
engel3[Uid] = false
engel4[Uid] = false
engel5[Uid] = false
engel6[Uid] = false
engel7[Uid] = false
deagle[Uid] = false
m4a1[Uid] = false
ak47[Uid] = false
mp5[Uid] = false
xm1014[Uid] = false
set_entity_visibility(Uid, 1)
}
}
public ElSonu() {
new players[32], inum;
static Uid;
get_players(players, inum, "a")
for(new i; i < inum; i++) {
Uid = players[i];
Gorunmezlik[Uid] = -1
engel2[Uid] = false
engel3[Uid] = false
engel4[Uid] = false
engel5[Uid] = false
engel6[Uid] = false
engel7[Uid] = false
deagle[Uid] = false
m4a1[Uid] = false
ak47[Uid] = false
mp5[Uid] = false
xm1014[Uid] = false
set_entity_visibility(Uid, 1)
}
}
public FwdHamPlayerSpawn(id)
{
deagle[id] = false
m4a1[id] = false
ak47[id] = false
mp5[id] = false
xm1014[id] = false
Gorunmezlik[id] = -1
set_entity_visibility(id, 1)
}
public silahhasar(pevVictim, pevInflictor, pevAttacker, Float:flDamage, iDmgBits)
{
if(!(1 <= pevAttacker <= get_maxplayers())) {
return HAM_HANDLED;
}
if(!is_user_alive(pevAttacker)) {
return HAM_HANDLED;
}
if(deagle[pevAttacker]) {
SetHamParamFloat(4, flDamage * DEAGLE_HASAR);
}
if(m4a1[pevAttacker]) {
SetHamParamFloat(4, flDamage * M4A1_HASAR);
}
if(ak47[pevAttacker]) {
SetHamParamFloat(4, flDamage * AK47_HASAR);
}
if(mp5[pevAttacker]) {
SetHamParamFloat(4, flDamage * MP5_HASAR);
}
if(xm1014[pevAttacker]) {
SetHamParamFloat(4, flDamage * XM1014_HASAR);
}
}
public HookCurWeapon(id)
{
new silahID = read_data(2);
switch(get_user_team(id))
{
case 2: {
if(deagle[id] && silahID == CSW_DEAGLE)
{
set_pev(id, pev_viewmodel2, VIEW_DEAGLEGOLD);
set_pev(id, pev_weaponmodel2, PLAYER_DEAGLEGOLD);
}
if(ak47[id] && silahID == CSW_AK47)
{
set_pev(id, pev_viewmodel2, VIEW_AK47GOLD);
set_pev(id, pev_weaponmodel2, PLAYER_AK47GOLD);
}
if(m4a1[id] && silahID == CSW_M4A1)
{
set_pev(id, pev_viewmodel2, VIEW_M4A1GOLD);
set_pev(id, pev_weaponmodel2, PLAYER_M4A1GOLD);
}
if(mp5[id] && silahID == CSW_MP5NAVY)
{
set_pev(id, pev_viewmodel2, VIEW_MP5GOLD);
set_pev(id, pev_weaponmodel2, PLAYER_MP5GOLD);
}
if(xm1014[id] && silahID == CSW_XM1014)
{
set_pev(id, pev_viewmodel2, VIEW_XM1014GOLD);
set_pev(id, pev_weaponmodel2, PLAYER_XM1014GOLD);
}
}
}
return PLUGIN_HANDLED
}
stock renkli_yazi(const id, const input[], any:...)
{
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();
}
}
}
Vipmenu.sma(192) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(193) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(200) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(206) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(207) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(215) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(221) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(222) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(229) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(235) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(236) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(244) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(250) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(251) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(260) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(266) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(267) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(276) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(282) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(283) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(292) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(298) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(299) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(308) : error 017: undefined symbol "renkli_yazi"
Vipmenu.sma(314) : error 017: undefined symbol "renkli_yazi"
Yav Neden Ya