Anti Team Kill + No Timers - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Anti Team Kill + No Timers (
/showthread.php?tid=100708)
Anti Team Kill + No Timers -
BP13 - 05.10.2009
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.
Re: Anti Team Kill + No Timers -
_Vortex - 06.10.2009
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.
Re: Anti Team Kill + No Timers -
shady91 - 06.10.2009
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.
Re: Anti Team Kill + No Timers -
Abernethy - 06.10.2009
Use gTeam, then set their team by using
if (gTeam[playerid] == YOUR_TEAM).
It works 90% of the time.
Re: Anti Team Kill + No Timers -
_Vortex - 06.10.2009
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
Re: Anti Team Kill + No Timers -
Gappy - 06.10.2009
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.
Re: Anti Team Kill + No Timers -
BP13 - 06.10.2009
and for a ResetPlayerTeam?
Re: Anti Team Kill + No Timers -
HuRRiCaNe - 06.10.2009
ResetPlayerTeam= SetPlayerTeam(playerid,playerid)