[Pomoć] Damage system

Započeo Brain_Walker, Jul 11, 2019, 20:09:31 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): Sry ako krivi topic ,  ali  ako tko ima ovakav damage system ,  kao na zara gaming  , da ovo ispod pise zeleno  , Hvala
Deo skripte[/b]:nemam
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log)[/b]:
Slika/video ingame problema(obavezno ako je ingame problem)[/b]: https://imgur.com/G2KRrh9
Walker


Uhhh , hvala puno

jel mozda ima jos koja malo jednostavnija ?
Walker

I ovo je jednostavno, #include < weapon_config > | #include < SKY > ispod a_samp.

Onda plugin ubaciš i dodaš u server.cfg (http://prntscr.com/odrppq)

Dodaj i ovo ako bude potrebno ispod tih definicija tj includa tj. ako bude bacalo da je callback za damage već definisan
#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


Onda OnPlayerGiveDamage i OnPlayerTakeDamage ako koristiš prebaciš u
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)


i to je to,

ovo možeš dodati pod OnGameModeInit
SetVehiclePassengerDamage(true);
SetDisableSyncBugs(true);

Sory
malo mi zeznuto ovo

Znaci ovako u "server.cfg"  dodam samo  "SKY"

U skriptu sam dodao  "#include < weapon_config >"   i   "#include < SKY >"

Ispod ongamemodeint sam stavio
"SetVehiclePassengerDamage(true);
SetDisableSyncBugs(true);
"

"OnPlayerGiveDamage i OnPlayerTakeDamage"  ne koristim u skripti , i nistam nista dirao

i kad sam complie dode mi error:  ": fatal error 100: cannot read from file: "weapon_config""

Odavde nisam nista uzeo:  https://github.com/oscar-broman/samp-weapon-config   , trebam sta tu skinut ?


SOry malo sam se pogubio , ali hitno mi to teba ako mozete pomoc






Walker

Citat: Brain_Walker poslato Jul 11, 2019, 22:25:50 POSLE PODNE
Sory
malo mi zeznuto ovo

Znaci ovako u "server.cfg"  dodam samo  "SKY"

U skriptu sam dodao  "#include < weapon_config >"   i   "#include < SKY >"

Ispod ongamemodeint sam stavio
"SetVehiclePassengerDamage(true);
SetDisableSyncBugs(true);
"

"OnPlayerGiveDamage i OnPlayerTakeDamage"  ne koristim u skripti , i nistam nista dirao

i kad sam complie dode mi error:  ": fatal error 100: cannot read from file: "weapon_config""

Odavde nisam nista uzeo:  https://github.com/oscar-broman/samp-weapon-config   , trebam sta tu skinut ?


SOry malo sam se pogubio , ali hitno mi to teba ako mozete pomoc
Gdje si dodao inc? Mora biti u pawn  folderu odakle pokreces pawno ako si skonto ybg
• G A M E M O D E •
• F I L T E R S C R I P T •
• T U T O R I A L •


Citat
You are what you believe yoursefl to be.


weapon_config
• G A M E M O D E •
• F I L T E R S C R I P T •
• T U T O R I A L •


Citat
You are what you believe yoursefl to be.

A to da

u gamemod sam stavio to

evo slika
https://imgur.com/TX6AeJ5


Alo odave nisam nista skidao https://github.com/oscar-broman/samp-weapon-config   , trebam tu sta skinut i stavit negdje ?
Walker

weapon_config

weapon-config


// http://prntscr.com/odt2kh




Citat: Brain_Walker poslato Jul 11, 2019, 22:49:07 POSLE PODNE
A to da

u gamemod sam stavio to

evo slika
https://imgur.com/TX6AeJ5


Alo odave nisam nista skidao https://github.com/oscar-broman/samp-weapon-config   , trebam tu sta skinut i stavit negdje ?
pa naravno da moraš skinut, kako će ti učitat ako ne skineš i ne ubaciš u folder pawno>includes xd

Skines taj inc fajl otvoris gamemode ides u pawno folder ides u includes folder paste taj weapon_config.inc vratis se otvoris pawno.exe otvoris skriptu i rekompajliras
• G A M E M O D E •
• F I L T E R S C R I P T •
• T U T O R I A L •


Citat
You are what you believe yoursefl to be.

Sad mi doslo ovo
"The SKY plugin is required, get it here: github.com/oscar-broman/sky"

to sam skinuo i kamo da sada stavim te datoteke ?
Walker

Isto kao i prethodni stavljas SKY.inc gdje su inc fajlovi
• G A M E M O D E •
• F I L T E R S C R I P T •
• T U T O R I A L •


Citat
You are what you believe yoursefl to be.

e hvala


kad pokrenem samp.server.exe

"Script[gamemodes/TDM.amx]: Run time error 19: "File or function is not found""
Walker