Jump to content
  • 0

pomoc Zrušení antiteamkillu


W1nCZ

Dotaz

Zdravím, potřebuji poradit jak zrušit antiteamkill. Nic jsem v kodu nedělal co by to mohlo narušit. V onplayerdeath mam akorát počítání score gangů. Musí to tam být nastavený od začátku. 

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0

public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
SendClientMessage(killerid, GREEN, "Zabil jsi nepřítele. (respekt +1)");
SendClientMessage(playerid, RED, "Zabil tě nepřítel. (respekt -1)");
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
}
else if(killerid == INVALID_PLAYER_ID)
{
SendClientMessage(killerid, RED, "Zabil jsi se. (respekt -1)");
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
}
return 1;
}

Tohle jsi myslel?
Link to comment
Share on other sites

  • 0
public OnPlayerSpawn(playerid)
{
SetPlayerTeam(playerid,NO_TEAM);
return 1;
}

melo by to fungovat i pokud mas jen amx ktere nemuzes menit. staci to dat jako FS. Popripade zalezi natom jak je ten kod udelany, mozna tam bude potreba dat nejaky spozdovaci timer

Link to comment
Share on other sites

  • 0

No právě já nevím o ničem v kódu, co by to mohlo způsobit. A právě chci mít nastavené týmy. Mám pocit, že to tak je jako výchozí, že hráči stejného týmu nemůžou zabíjet sami sebe, ale mělo by to nějak jít změnit.

Link to comment
Share on other sites

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
×
×
  • Create New...