Jump to content
  • 0

Problema comanda /war


HORVENN

Question

Salutare. Am creat o comanda /war si daca sunt lider de mafie o pot folosi pentru a porni un war impotriva altei mafii, desigur cu acordul celuilalt lider, prin /accept war. In fine, dupa acest accept mafiile vor fi teleportate intr-o arena pentru a se lupta. (pana aici am creeat) Acum nu stiu cum sa fac cand nu mai ramane nici un player dintr-o anume mafie la war, sa se termine warul si sa anunte castigatorii. Defapt am facut o chestie la public onplayerdeath, am incercat sa fac ceva o verificare cand un player de la war moare, sa verifice cumva daca mai sunt playeri la war...dar n-am reusit pt ca ori dadea respawn la tot server, ori nu-i scotea pe toti de la war... va rog frumos sa ma ajutati...

Si as mai avea o problema cu modul 0.3d, ma urmaresc obiectele :)). Am pus cel mai nou streamer, am compilat gamemode cu includele de la pawno 0.3d-R2 si nimic .... Multumesc anticipat.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Simplu.

new PlayerInWar[MAX_PLAYERS];
public OnPlayerConnect()

pui sub : PlayerInWar[playerid] = 0;

apoi daca e la war ii da valoarea 1

if(War == 1) sa zicem...
PlayerInWar[playerid] = 1;

La OnPlayerDeath , pui PlayerInWar[playerid] = 0;

E doar un exemplu , daca pui si /war til fac mai personalizat

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.