Sonuç
Eklenti derleme sonucu aşağıdaki gibidir;
AMX Mod X Compiler 1.8.3-dev+5079
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team
//cstrike/addons/amxmodx/scripting/Emre-Aleykum-SELAM.sma(54) : error 010: invalid function or declaration
1 Error.
Could not locate output file /cstrike/addons/amxmodx/plugins/Emre-Aleykum-SELAM.amx (compile failed).
Derleme esnasında hata ile karşılaşmadıysanız eklentinizin ismini ( Emre-Aleykum-SELAM.amxx ) WebFTP > addons>amxmodx>configs>plugins.ini dosyasının en altına yazıp aktif edebilir veya sonradan kaldırabilirsiniz
HATAYI DUZELTIRMISINIZ
Aleykum Selam puligini HATAYI DUZELTIRMISINIZ
Moderatör: Moderatörler
-
Konu Sahibi - Mesajlar: 331
- Kayıt: Sal Eyl 12, 2017 8:02 pm
- Server Ip/DNS: 213.238.173.109
- Clan İsmi: ForgottenS
- İletişim:
Aleykum Selam puligini HATAYI DUZELTIRMISINIZ
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 331
- Kayıt: Sal Eyl 12, 2017 8:02 pm
- Server Ip/DNS: 213.238.173.109
- Clan İsmi: ForgottenS
- İletişim:
Aleykum Selam puligini HATAYI DUZELTIRMISINIZ
Sonuç
Eklenti derleme sonucu aşağıdaki gibidir;
AMX Mod X Compiler 1.8.3-dev+5079
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team
//cstrike/addons/amxmodx/scripting/emre-hp-bonus.sma(46) : error 020: invalid symbol name ""
//cstrike/addons/amxmodx/scripting/emre-hp-bonus.sma(103) : warning 233: symbol "client_disconnect" is marked as deprecated: Use client_disconnected() instead.
1 Error.
Could not locate output file /cstrike/addons/amxmodx/plugins/emre-hp-bonus.amx (compile failed).
Derleme esnasında hata ile karşılaşmadıysanız eklentinizin ismini ( emre-hp-bonus.amxx ) WebFTP > addons>amxmodx>configs>plugins.ini dosyasının en altına yazıp aktif edebilir veya sonradan kaldırabilirsiniz
bırde bunda var bunuda haledseniz
Eklenti derleme sonucu aşağıdaki gibidir;
AMX Mod X Compiler 1.8.3-dev+5079
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team
//cstrike/addons/amxmodx/scripting/emre-hp-bonus.sma(46) : error 020: invalid symbol name ""
//cstrike/addons/amxmodx/scripting/emre-hp-bonus.sma(103) : warning 233: symbol "client_disconnect" is marked as deprecated: Use client_disconnected() instead.
1 Error.
Could not locate output file /cstrike/addons/amxmodx/plugins/emre-hp-bonus.amx (compile failed).
Derleme esnasında hata ile karşılaşmadıysanız eklentinizin ismini ( emre-hp-bonus.amxx ) WebFTP > addons>amxmodx>configs>plugins.ini dosyasının en altına yazıp aktif edebilir veya sonradan kaldırabilirsiniz
bırde bunda var bunuda haledseniz
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
Link: | |
Linklerini gizle |
-
- Mesajlar: 4496
- Kayıt: Çrş Ağu 16, 2017 10:35 pm
- Server Ip/DNS: CSXX.CSDURAGI.COM
- Clan İsmi: NoMercy
Aleykum Selam puligini HATAYI DUZELTIRMISINIZ
HP BONUS
SA/AS
Kod: Tümünü seç
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
new const Version[] = "0.1";
const MaxPlayers = 32;
enum BonusType
{
Damage,
Death
}
enum WeaponType
{
Bullet,
Knife,
Grenade
}
enum RGB
{
Red,
Green,
Blue
}
enum _:BonusInfo
{
Attacker,
Victim,
DmgBits,
BonusType:btBonus
}
new const g_RGB[ WeaponType ][ BonusType ][ RGB ] =
{
{ { 0 , 255 , 0 } , { 0 , 255 , 0 } } , // [ [Bullet Damage] , [Bullet Death] ]
{ { 128 , 128 , 0 } , { 128 , 128 , 0 } } , // [ [Knife Damage] , [Knife Death] ] ]
{ { 255 , 0 , 0 } , { 255 , 0 , 0 } } // [ [Grenade Damage] , [Grenade Death] ]
}
const DMG_GRENADE = ( 1 << 24 );
const m_bitsDamageType = 76;
const Float:g_fHUDTime = 3.0;
const Float:g_fHUD_X_Coord = 0.10;
new const Float:g_fHUD_Y_Coords[] =
{
0.85,
0.80,
0.75,
0.70,
0.65,
0.60,
0.55,
0.50,
};
new g_pMaxHealth;
new g_pCVars[ WeaponType ][ BonusType ];
new g_iKiller[ MaxPlayers + 1 ];
new g_iLastDamage[ MaxPlayers + 1 ];
new g_BotBits;
new g_iMaxPlayers;
#define IsBot(%1) (g_BotBits & (1<<(%1&31)))
#define IsPlayer(%1) (1<=%1<=g_iMaxPlayers)
public plugin_init()
{
register_plugin( "HP Bonus", Version , "LockdowN" );
register_logevent( "fw_RoundStart" , 2 , "1=Round_Start" );
RegisterHam( Ham_TakeDamage , "player" , "fw_HamTakeDamage" );
RegisterHam( Ham_Killed , "player" , "fw_HamKilled_Post" , 1 );
g_pMaxHealth = register_cvar( "hpb_maxhealth" , "100" );
g_pCVars[ Bullet ][ Damage ] = register_cvar( "hpb_bulletdmg" , "1" );
g_pCVars[ Bullet ][ Death ] = register_cvar( "hpb_bulletkill" , "2" );
g_pCVars[ Knife ][ Damage ] = register_cvar( "hpb_knifedmg" , "2" );
g_pCVars[ Knife ][ Death ] = register_cvar( "hpb_knifekill" , "4" );
g_pCVars[ Grenade ][ Damage ] = register_cvar( "hpb_grenadedmg" , "3" );
g_pCVars[ Grenade ][ Death ] = register_cvar( "hpb_grenadekill" , "6" );
g_iMaxPlayers = get_maxplayers();
}
public client_putinserver( id )
{
if ( is_user_bot( id ) )
g_BotBits |= ( 1 << ( id & 31 ) );
}
public client_disconnected( id )
{
g_BotBits &= ~( 1 << ( id & 31 ) );
}
public fw_RoundStart()
{
arrayset( g_iKiller , 0 , sizeof( g_iKiller ) );
arrayset( g_iLastDamage , 0 , sizeof( g_iLastDamage ) );
}
public GiveBonus( iData[ BonusInfo ] )
{
static iPlayer , iVictim , DamageBits , BonusType:btType , WeaponType:wtWeapon;
static iHUDPos[ MaxPlayers + 1 ] , iHealth , iMaxHealth , iHealthBonus
iPlayer = iData[ Attacker ];
iVictim = iData[ Victim ];
DamageBits = iData[ DmgBits ];
btType = iData[ btBonus ];
if ( !is_user_alive( iPlayer ) || ( ( btType == Damage ) && ( g_iKiller[ iVictim ] == iPlayer ) ) )
return;
if ( DamageBits & DMG_BULLET )
wtWeapon = ( get_user_weapon( iPlayer ) == CSW_KNIFE ) ? Knife : Bullet;
else if ( DamageBits & DMG_GRENADE )
wtWeapon = Grenade;
iHealth = get_user_health( iPlayer );
iMaxHealth = get_pcvar_num( g_pMaxHealth );
iHealthBonus = get_pcvar_num( g_pCVars[ wtWeapon ][ btType ] );
if ( iHealth < iMaxHealth )
{
if ( ( float( get_systime() - g_iLastDamage[ iPlayer ] ) >= g_fHUDTime ) || ( iHUDPos[ iPlayer ] == sizeof( g_fHUD_Y_Coords ) ) )
iHUDPos[ iPlayer ] = 0;
set_user_health( iPlayer , clamp( iHealth + iHealthBonus , 1 , iMaxHealth ) );
set_hudmessage( g_RGB[ wtWeapon ][ btType ][ Red ] , g_RGB[ wtWeapon ][ btType ][ Green ] , g_RGB[ wtWeapon ][ btType ][ Blue ] , g_fHUD_X_Coord , g_fHUD_Y_Coords[ iHUDPos[ iPlayer ]++ ] , 0 , 0.1 , g_fHUDTime , _, _, -1 );
show_hudmessage( iPlayer , "+%dhp" , iHealthBonus );
}
g_iLastDamage[ iPlayer ] = get_systime();
}
public fw_HamTakeDamage( iVictim , iInflictor , iAttacker , Float:fDamage , DamageBits )
{
if( IsPlayer( iAttacker ) && !IsBot( iAttacker ) && ( iVictim != iAttacker ) && ( cs_get_user_team( iVictim ) != cs_get_user_team( iAttacker ) ) )
{
static iInfo[ BonusInfo ];
iInfo[ Attacker ] = iAttacker;
iInfo[ Victim ] = iVictim;
iInfo[ DmgBits ] = DamageBits;
iInfo[ btBonus ] = _:Damage;
set_task( 0.15 , "GiveBonus" , _, iInfo , sizeof( iInfo ) );
}
}
public fw_HamKilled_Post( iVictim , iAttacker )
{
if( IsPlayer( iAttacker ) && !IsBot( iAttacker ) && ( iVictim != iAttacker ) && ( cs_get_user_team( iVictim ) != cs_get_user_team( iAttacker ) ) )
{
static iInfo[ BonusInfo ];
iInfo[ Attacker ] = iAttacker;
iInfo[ Victim ] = iVictim;
iInfo[ DmgBits ] = get_pdata_int( iVictim , m_bitsDamageType );
iInfo[ btBonus ] = _:Death;
g_iKiller[ iVictim ] = iAttacker;
set_task( 0.15 , "GiveBonus" , _, iInfo , sizeof( iInfo ) );
}
}
Kod: Tümünü seç
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>
#include <cstrike>
#define PLUGIN "Selamun Aleykum"
#define VERSION "1.0"
#define AUTHOR "Saitama"
public plugin_precache()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd("say S.a","as")
register_clcmd("say s.a","as")
register_clcmd("say Sa","as")
register_clcmd("say Sea","as")
register_clcmd("say sa","as")
register_clcmd("say sea","as")
register_clcmd("say Selamun aleykum","as")
register_clcmd("say Selamun Aleykum","as")
register_clcmd("say selamun aleykum","as")
register_clcmd("say selamun Aleykum","as")
}
public as(id)
{
renkli_yazi(id, "!t[ !g%s !t] !nAleyküm Selam Hosgeldin..^n 213.238.173.176")
}
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();
}
}
}
}
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 331
- Kayıt: Sal Eyl 12, 2017 8:02 pm
- Server Ip/DNS: 213.238.173.109
- Clan İsmi: ForgottenS
- İletişim:
-
- Mesajlar: 4496
- Kayıt: Çrş Ağu 16, 2017 10:35 pm
- Server Ip/DNS: CSXX.CSDURAGI.COM
- Clan İsmi: NoMercy
Aleykum Selam puligini HATAYI DUZELTIRMISINIZ
HP Bonusda 46 satırda bi hata görunmuyor tekrar hata verirse konuya cevap atarsınız.
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 331
- Kayıt: Sal Eyl 12, 2017 8:02 pm
- Server Ip/DNS: 213.238.173.109
- Clan İsmi: ForgottenS
- İletişim:
Aleykum Selam puligini HATAYI DUZELTIRMISINIZ
Sonuç
Eklenti derleme sonucu aşağıdaki gibidir;
AMX Mod X Compiler 1.8.3-dev+5079
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team
//cstrike/addons/amxmodx/scripting/emre-hp-bos.sma(46) : error 020: invalid symbol name ""
1 Error.
Could not locate output file /cstrike/addons/amxmodx/plugins/emre-hp-bos.amx (compile failed).
Derleme esnasında hata ile karşılaşmadıysanız eklentinizin ismini ( emre-hp-bos.amxx ) WebFTP > addons>amxmodx>configs>plugins.ini dosyasının en altına yazıp aktif edebilir veya sonradan kaldırabilirsiniz
hataa var
Eklenti derleme sonucu aşağıdaki gibidir;
AMX Mod X Compiler 1.8.3-dev+5079
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team
//cstrike/addons/amxmodx/scripting/emre-hp-bos.sma(46) : error 020: invalid symbol name ""
1 Error.
Could not locate output file /cstrike/addons/amxmodx/plugins/emre-hp-bos.amx (compile failed).
Derleme esnasında hata ile karşılaşmadıysanız eklentinizin ismini ( emre-hp-bos.amxx ) WebFTP > addons>amxmodx>configs>plugins.ini dosyasının en altına yazıp aktif edebilir veya sonradan kaldırabilirsiniz
hataa var
Link: | |
Linklerini gizle |
-
- Mesajlar: 4496
- Kayıt: Çrş Ağu 16, 2017 10:35 pm
- Server Ip/DNS: CSXX.CSDURAGI.COM
- Clan İsmi: NoMercy
Aleykum Selam puligini HATAYI DUZELTIRMISINIZ
Kod: Tümünü seç
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
new const Version[] = "0.1";
const MaxPlayers = 32;
enum BonusType
{
Damage,
Death
}
enum WeaponType
{
Bullet,
Knife,
Grenade
}
enum RGB
{
Red,
Green,
Blue
}
enum _:BonusInfo
{
Attacker,
Victim,
DmgBits,
BonusType:btBonus
}
new const g_RGB[ WeaponType ][ BonusType ][ RGB ] =
{
{ { 0 , 255 , 0 } , { 0 , 255 , 0 } } , // [ [Bullet Damage] , [Bullet Death] ]
{ { 128 , 128 , 0 } , { 128 , 128 , 0 } } , // [ [Knife Damage] , [Knife Death] ] ]
{ { 255 , 0 , 0 } , { 255 , 0 , 0 } } // [ [Grenade Damage] , [Grenade Death] ]
}
const DMG_GRENADE = 1 << 24;
const m_bitsDamageType = 76;
const Float:g_fHUDTime = 3.0;
const Float:g_fHUD_X_Coord = 0.10;
new const Float:g_fHUD_Y_Coords[] =
{
0.85,
0.80,
0.75,
0.70,
0.65,
0.60,
0.55,
0.50,
};
new g_pMaxHealth;
new g_pCVars[ WeaponType ][ BonusType ];
new g_iKiller[ MaxPlayers + 1 ];
new g_iLastDamage[ MaxPlayers + 1 ];
new g_BotBits;
new g_iMaxPlayers;
#define IsBot(%1) (g_BotBits & (1<<(%1&31)))
#define IsPlayer(%1) (1<=%1<=g_iMaxPlayers)
public plugin_init()
{
register_plugin( "HP Bonus", Version , "LockdowN" );
register_logevent( "fw_RoundStart" , 2 , "1=Round_Start" );
RegisterHam( Ham_TakeDamage , "player" , "fw_HamTakeDamage" );
RegisterHam( Ham_Killed , "player" , "fw_HamKilled_Post" , 1 );
g_pMaxHealth = register_cvar( "hpb_maxhealth" , "100" );
g_pCVars[ Bullet ][ Damage ] = register_cvar( "hpb_bulletdmg" , "1" );
g_pCVars[ Bullet ][ Death ] = register_cvar( "hpb_bulletkill" , "2" );
g_pCVars[ Knife ][ Damage ] = register_cvar( "hpb_knifedmg" , "2" );
g_pCVars[ Knife ][ Death ] = register_cvar( "hpb_knifekill" , "4" );
g_pCVars[ Grenade ][ Damage ] = register_cvar( "hpb_grenadedmg" , "3" );
g_pCVars[ Grenade ][ Death ] = register_cvar( "hpb_grenadekill" , "6" );
g_iMaxPlayers = get_maxplayers();
}
public client_putinserver( id )
{
if ( is_user_bot( id ) )
g_BotBits |= ( 1 << ( id & 31 ) );
}
public client_disconnected( id )
{
g_BotBits &= ~( 1 << ( id & 31 ) );
}
public fw_RoundStart()
{
arrayset( g_iKiller , 0 , sizeof( g_iKiller ) );
arrayset( g_iLastDamage , 0 , sizeof( g_iLastDamage ) );
}
public GiveBonus( iData[ BonusInfo ] )
{
static iPlayer , iVictim , DamageBits , BonusType:btType , WeaponType:wtWeapon;
static iHUDPos[ MaxPlayers + 1 ] , iHealth , iMaxHealth , iHealthBonus
iPlayer = iData[ Attacker ];
iVictim = iData[ Victim ];
DamageBits = iData[ DmgBits ];
btType = iData[ btBonus ];
if ( !is_user_alive( iPlayer ) || ( ( btType == Damage ) && ( g_iKiller[ iVictim ] == iPlayer ) ) )
return;
if ( DamageBits & DMG_BULLET )
wtWeapon = ( get_user_weapon( iPlayer ) == CSW_KNIFE ) ? Knife : Bullet;
else if ( DamageBits & DMG_GRENADE )
wtWeapon = Grenade;
iHealth = get_user_health( iPlayer );
iMaxHealth = get_pcvar_num( g_pMaxHealth );
iHealthBonus = get_pcvar_num( g_pCVars[ wtWeapon ][ btType ] );
if ( iHealth < iMaxHealth )
{
if ( ( float( get_systime() - g_iLastDamage[ iPlayer ] ) >= g_fHUDTime ) || ( iHUDPos[ iPlayer ] == sizeof( g_fHUD_Y_Coords ) ) )
iHUDPos[ iPlayer ] = 0;
set_user_health( iPlayer , clamp( iHealth + iHealthBonus , 1 , iMaxHealth ) );
set_hudmessage( g_RGB[ wtWeapon ][ btType ][ Red ] , g_RGB[ wtWeapon ][ btType ][ Green ] , g_RGB[ wtWeapon ][ btType ][ Blue ] , g_fHUD_X_Coord , g_fHUD_Y_Coords[ iHUDPos[ iPlayer ]++ ] , 0 , 0.1 , g_fHUDTime , _, _, -1 );
show_hudmessage( iPlayer , "+%dhp" , iHealthBonus );
}
g_iLastDamage[ iPlayer ] = get_systime();
}
public fw_HamTakeDamage( iVictim , iInflictor , iAttacker , Float:fDamage , DamageBits )
{
if( IsPlayer( iAttacker ) && !IsBot( iAttacker ) && ( iVictim != iAttacker ) && ( cs_get_user_team( iVictim ) != cs_get_user_team( iAttacker ) ) )
{
static iInfo[ BonusInfo ];
iInfo[ Attacker ] = iAttacker;
iInfo[ Victim ] = iVictim;
iInfo[ DmgBits ] = DamageBits;
iInfo[ btBonus ] = _:Damage;
set_task( 0.15 , "GiveBonus" , _, iInfo , sizeof( iInfo ) );
}
}
public fw_HamKilled_Post( iVictim , iAttacker )
{
if( IsPlayer( iAttacker ) && !IsBot( iAttacker ) && ( iVictim != iAttacker ) && ( cs_get_user_team( iVictim ) != cs_get_user_team( iAttacker ) ) )
{
static iInfo[ BonusInfo ];
iInfo[ Attacker ] = iAttacker;
iInfo[ Victim ] = iVictim;
iInfo[ DmgBits ] = get_pdata_int( iVictim , m_bitsDamageType );
iInfo[ btBonus ] = _:Death;
g_iKiller[ iVictim ] = iAttacker;
set_task( 0.15 , "GiveBonus" , _, iInfo , sizeof( iInfo ) );
}
}
Link: | |
Linklerini gizle |