Oko Weapon-Configa

Započeo Claus
12. Jul 2019. Zaključano
1,062
pregleda
9
postova
TIMIC
4
Enforcer
12. Jul 2019.
Problem(error/warning): Ne znam kako da resim ove errore. Ako bi mogao neko da mi pomogne, hvala unapred. Probao sam da ubacim Damage Informer i ovi errori su izasli. Koristim San Marino mod. Ako treba jos nesto da dodam, napisite.
Dio skripte: /
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): http://prntscr.com/oe9m55
Mister Naithan
5
Kingpin
TIMIC
4
Enforcer
12. Jul 2019.
imnaithan wrote on July 12, 2019, 9:22 pm:
http://balkan-samp.com/forum/index.php?topic=129981.0

Nema za sve errore.
Muma Rascall
6
Forum Don
12. Jul 2019.
Ala si objasnio šta je problem, svaka čast!

Daj kopiraj sve includse kako si definisao, ovo pokazuje da imaš 2x iste funkcije ili šta već
TIMIC
4
Enforcer
13. Jul 2019.
mumitza. wrote on July 12, 2019, 10:10 pm:
Ala si objasnio šta je problem, svaka čast!

Daj kopiraj sve includse kako si definisao, ovo pokazuje da imaš 2x iste funkcije ili šta već
#include 
#include
#include
#if defined _ALS_OnPlayerGiveDamage
#undef OnPlayerGiveDamage
#else
#define _ALS_OnPlayerGiveDamage
#endif
#define OnPlayerGiveDamage NULL_OnPlayerGiveDamage
#if defined NULL_OnPlayerGiveDamage
forward NULL_OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);
#endif
#if defined _ALS_OnPlayerTakeDamage
#undef OnPlayerTakeDamage
#else
#define _ALS_OnPlayerTakeDamage
#endif
#define OnPlayerTakeDamage NULL_OnPlayerTakeDamage
#if defined NULL_OnPlayerTakeDamage
forward NULL_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
#endif
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "MythwilleMaps.pwn"

public OnPlayerDamage( &playerid, &Float:amount, &issuerid, &weapon, &bodypart ) {
if( issuerid != INVALID_PLAYER_ID && issuerid != INVALID_PLAYER_ID && amount == 0 && weapon == 0 && bodypart == 3 ) {
    format( globalstring, sizeof( globalstring ), "|| M:AC || %s je kickovan sa servera. Razlog: "col_white"Command kill", ImeIgraca( issuerid ) );
AdminPoruka( SVETLOCRVENA, globalstring );
Kickovanje( issuerid, ""col_white"Ti si kickovan sa servera. Razlog: "col_ig"Command kill");
      return 0;
}

if( issuerid != INVALID_PLAYER_ID  ) {
if( OI[ PlayerInfo[ issuerid ][ xClan ] ][ oTip ] == ORG_TIP_PD && !IsPlayerInAnyVehicle( issuerid ) && !IsPlayerInAnyVehicle( playerid ) && GetWeapon( issuerid ) == 23 && ImaTazer[ issuerid ] == true && !AdminDuty[ playerid ] ) {
    if( GetFactionType( playerid ) == ORG_TIP_PD ) return SCM( issuerid, CRVENA, "Ne mozes tazovati PD!" );

new Float:Pos[ 3 ];
GetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
if( IsPlayerInRangeOfPoint( issuerid, 10.0, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] ) ) {

format( globalstring, sizeof( globalstring ), "%s puca tazerom na %s-a i pogadja ga.", ImeIgraca( issuerid ), ImeIgraca( playerid ) );
PorukaRadius( 20.0, issuerid, globalstring, LJUBICASTA );
TogglePlayerControllable( playerid, false );

                if( Maskuse[ playerid ] == true ) {
            SetPlayerName( playerid, RealName[ playerid ] );
Maskuse[ playerid ] = false;
}

PlayerCuffed[ playerid ] = 1;
DjoLe_SetPlayerHealth( playerid, 50 );
SetPVarInt( playerid, "CuffTimerCalled", 1 );
TazerTimer[ playerid ] = SetTimerEx("TazovanTajmer", 15000, false, "i", playerid );
OnePlayAnim( playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0 );
return 0;
}
        }
       
        if( NaDmEventu[ playerid ] == false && WARPInfo[ playerid ][ WARIgrac ] == -1 && !AdminDuty[ playerid ] && PlayerCuffed[ playerid ] == 0 ) {
        if( weapon <= 42 ) {
        new Float:takeHealth = antiCheatCS[ playerid ][ TrueHealth ] - WeaponDamage[ weapon ][ bodypart - 3 ];
        DjoLe_SetPlayerHealth( playerid, takeHealth );
}
}

printf( "%s je naneo %.0f demidza %s-u, oruzje: %d, deo tela: %d", ImeIgraca( issuerid ), amount, ImeIgraca( playerid ), weapon, bodypart );
}
return 1;
}
TIMIC
4
Enforcer
14. Jul 2019.
BUMP... Neko?
Master1
4
Made Man
14. Jul 2019.
ovdje imas 1 error ostalo su warning , eh taj error ces rijesiti ako je SM mod samo dodaj ovo
 IsMeleeWeapon(weaponid)
{
switch(weaponid)
{
case 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15: return true;
}
return false;
}


a za ove warninge nisam ih skontao moras mi dati tacne linije gdje ih izbacuje ako ih izbacuje uopste na nekoj konkretnoj liniji a ne na dnu koda.
TIMIC
4
Enforcer
14. Jul 2019.
Riv3R4 wrote on July 14, 2019, 11:21 am:
ovdje imas 1 error ostalo su warning , eh taj error ces rijesiti ako je SM mod samo dodaj ovo
 IsMeleeWeapon(weaponid)
{
switch(weaponid)
{
case 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15: return true;
}
return false;
}

Ima vec u skripti

a za ove warninge nisam ih skontao moras mi dati tacne linije gdje ih izbacuje ako ih izbacuje uopste na nekoj konkretnoj liniji a ne na dnu koda.
Master1
4
Made Man
14. Jul 2019.
pardoniram nisam procitao, onda slobodno taj iz skripte mozes staviti pod comment znakove , nemoj brisat mozda ti nekad zatreba /* */

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha