Anti Team Kill + No Timers
#1

What do I have to get to get a anti team kill with no timers. and something like ResetPlayerTeam so they are not on one. And the function on pawno SetPlayerTeam does not really work.
Reply
#2

Quote:
Originally Posted by djlobo[Awesome-games.tk
]
you answer your own question

"i want a anti team kill without timer and without using setplayerteam"

you simply cant ,use seif function and run a timer onplayerconnect every 5000 miliseconds (its rlly enough believe in me also will not lag your server)
If he's having the same problem as I am, it crashes my server when I test it on my pc, for some reason.
Reply
#3

Quote:
Originally Posted by [B
Vortex ]
Quote:
Originally Posted by djlobo[Awesome-games.tk
]
you answer your own question

"i want a anti team kill without timer and without using setplayerteam"

you simply cant ,use seif function and run a timer onplayerconnect every 5000 miliseconds (its rlly enough believe in me also will not lag your server)
If he's having the same problem as I am, it crashes my server when I test it on my pc, for some reason.
that means your coding it wrong.
Reply
#4

Use gTeam, then set their team by using if (gTeam[playerid] == YOUR_TEAM).
It works 90% of the time.
Reply
#5

Quote:
Originally Posted by Shady91
Quote:
Originally Posted by [B
Vortex ]
Quote:
Originally Posted by djlobo[Awesome-games.tk
]
you answer your own question

"i want a anti team kill without timer and without using setplayerteam"

you simply cant ,use seif function and run a timer onplayerconnect every 5000 miliseconds (its rlly enough believe in me also will not lag your server)
If he's having the same problem as I am, it crashes my server when I test it on my pc, for some reason.
that means your coding it wrong.
Nope, because it works fine on my host. So it's got to be the PC o_o
Quote:
Originally Posted by Abernethy♥
Use gTeam, then set their team by using if (gTeam[playerid] == YOUR_TEAM).
It works 90% of the time.
If someone is on the server, and another person joins, and they join the same team as the person who was on before, they can teamkill the player that was there before, but the other player cant. Or it's the other way around, I forgot xD
Reply
#6

Quote:
Originally Posted by Abernethy♥
Use gTeam, then set their team by using if (gTeam[playerid] == YOUR_TEAM).
It works 90% of the time.
You got gTeam and SetPlayerTeam mixed up.

SetPlayerTeam already works as an anti-teamkill.
Reply
#7

and for a ResetPlayerTeam?
Reply
#8

ResetPlayerTeam= SetPlayerTeam(playerid,playerid)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)