Jump to content
  • 0

pomoc ANTI TEAM KILL - ZRUŠIŤ


RoBiK

Dotaz

Takže čaute mám taký problém, že keď dám SetPlayerTeam(playerid,nejakyteam);

tak mu to nastaví ako keby ANTI TEAM KILL Ochranu, takže tý čo sú v tom teamu sa nemôžu zabíjať

chcem sa spýtať či by to nešlo zrušiť, predom ďakujem ;)


chcem povedať že tým 

nejakyteam

 

som myslel nejaky tym napr. 1,2,3 a tak.. čislo tam mam samozrejme ;)

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0

y ale ja to potrebujem takto:

napiše prikaz napr. /blue - nastaví mu team 2, to mám ;)

ale potom potrebujem aj to do OnPlayerSpawn:

if (GetPlayerTeam(playerid) == 2) SetPlayerPos(playerid,X,Y,Z); // aj to mám  ale potrebujem ešte to, aby keby že su v tom istom teame, sa mohli zabíjať

proste aby sa ten istý team(napr. 2) mohol zabíjať

Link to comment
Share on other sites

  • 0

y ale ja to potrebujem takto:

napiše prikaz napr. /blue - nastaví mu team 2, to mám ;)

ale potom potrebujem aj to do OnPlayerSpawn:

if (GetPlayerTeam(playerid) == 2) SetPlayerPos(playerid,X,Y,Z); // aj to mám  ale potrebujem ešte to, aby keby že su v tom istom teame, sa mohli zabíjať

proste aby sa ten istý team(napr. 2) mohol zabíjať

udělej si to přes SetPVarInt(playerid, "Team", 1); a pak if(GetPVarInt(playerid, "Team") == 1)

 

Zbytek si snad domyslíš sám..

Link to comment
Share on other sites

  • 0

Místo SetPlayerTeam používej SetPVarInt(playerid, "Team", teamid) a místo GetPlayerTeam napiš GetPVarInt(playerid, "Team");
Vyjde to nastejno, akorát tam nebude AntiTeamKill.

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...