W1nCZ 2 Odesláno: 4. Listopad, 2014 Share Odesláno: 4. Listopad, 2014 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 More sharing options...
0 Lusky 4 Odesláno: 4. Listopad, 2014 Share Odesláno: 4. Listopad, 2014 A máš aj kód? Link to comment Share on other sites More sharing options...
0 W1nCZ 2 Odesláno: 4. Listopad, 2014 Author Share Odesláno: 4. Listopad, 2014 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 More sharing options...
0 Invouk 91 Odesláno: 4. Listopad, 2014 Share Odesláno: 4. Listopad, 2014 NIe skus dať do pastebinu cele pawno Toto je len že ak zabil nepriatela prida mu skore + a ked ta zabil nepriatel ubudne ... a ak si sa z abil minus skoretoto je len o nahadzovani score Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 4. Listopad, 2014 Share Odesláno: 4. Listopad, 2014 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 More sharing options...
0 W1nCZ 2 Odesláno: 4. Listopad, 2014 Author Share Odesláno: 4. Listopad, 2014 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 More sharing options...
Dotaz
W1nCZ 2
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now