Jump to content
  • 0

OnPlayerDeath chemat de 2 ori


Question

Posted

Salut, cand un jucator moare OnPlayerDeath este chemat de 2 ori, habar nu am de ce.

Am incercat sa sterg tot public-ul si sa las gol si la fel se intampla, practic e chemat de 2 ori.

OnPlayerDeath aici https://pastebin.com/yVCXtCkd

Ma poate ajuta cineva?

5 answers to this question

Recommended Posts

  • 0
Posted
9 hours ago, Rayan said:

Salut, cand un jucator moare OnPlayerDeath este chemat de 2 ori, habar nu am de ce.

Am incercat sa sterg tot public-ul si sa las gol si la fel se intampla, practic e chemat de 2 ori.

OnPlayerDeath aici https://pastebin.com/yVCXtCkd

Ma poate ajuta cineva?

OnPlayerDeath( playerid, issuerid, weaponid ); vezi poate mai accesezi pe undeva asa

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

  • 0
Posted (edited)
Acum 4 minute, Daedric-Fox a spus:

OnPlayerDeath( playerid, issuerid, weaponid ); vezi poate mai accesezi pe undeva asa

Da, am, la OnPlayerGiveDamage, insa am vazut in mai multe GM-uri care au in acest public, OnPlayerDeath si nu e chemat de 2 ori

https://pastebin.com/rkkqwj9w

 

Edited by Rayan
  • 0
Posted (edited)

Bump, am observat ca problema apare cand am SetPlayerTeam(playerid,255) la OnPlayerSpawn, am incercat sa o sterg, si la fel, OnPlayerDeath e chemat de 2 ori, dar daca pun de exemplu: SetPlayerTeam(playerid,4); OnPlayerDeath nu mai e chemat de 2 ori, insa jucatorii nu pot sa isi ia damage fie Heli blade, fie cu grenadele (explozii) etc..

Stie cineva cum as putea rezolva?

GM-ul wexgaming, un edit de la bigzone

Edited by Rayan
  • 0
Posted
22 minutes ago, Rayan said:

Bump, am observat ca problema apare cand am SetPlayerTeam(playerid,255) la OnPlayerSpawn, am incercat sa o sterg, si la fel, OnPlayerDeath e chemat de 2 ori, dar daca pun de exemplu: SetPlayerTeam(playerid,4); OnPlayerDeath nu mai e chemat de 2 ori, insa jucatorii nu pot sa isi ia damage fie Heli blade, fie cu grenadele (explozii) etc..

Stie cineva cum as putea rezolva?

GM-ul wexgaming, un edit de la bigzone

 

    Players can not damage/kill players on the same team unless they use a knife to slit their throat. As of SA-MP 0.3x, players are also unable to damage vehicles driven by a player from the same team. This can be enabled with EnableVehicleFriendlyFire.
    255 (or NO_TEAM) is the default team to be able to shoot other players, not 0.

 

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.