[Tutorial] HeadShot System [Explained]
#8

Quote:
Originally Posted by saffierr
Посмотреть сообщение
Nice tutorial, though I'm a bit confused with this line (Just the first two checks):
PHP код:
if(GetPlayerTeam(issuerid) == NO_TEAM || GetPlayerTeam(playerid) == NO_TEAM 
Can you elaborate this ?

And is NO_TEAM already defined by pawn its self?

Excuse me, but haven't worked with this before, hence the question.
PHP код:
if(GetPlayerTeam(issuerid) == NO_TEAM || GetPlayerTeam(playerid) == NO_TEAM || GetPlayerTeam(issuerid) != GetPlayerTeam(playerid)) 
It basically means, if both players have no team, then they can kill each other (typically freeroam / dm servers), OR if both players' teams are different (eg: playerid team: 3, issuerid team:2), then proceed, otherwise nope.

And yes, NO_TEAM is pre-defined just like MAX_PLAYERS.
Reply


Messages In This Thread
HeadShot System [Explained] - by iLearner - 11.01.2017, 17:35
Re: HeadShot System [Explained] - by Gammix - 11.01.2017, 17:43
Re: HeadShot System [Explained] - by Logic_ - 11.01.2017, 17:44
Re: HeadShot System [Explained] - by iLearner - 11.01.2017, 17:45
Re: HeadShot System [Explained] - by RedRex - 11.01.2017, 17:54
Re: HeadShot System [Explained] - by saffierr - 11.01.2017, 18:02
Re: HeadShot System [Explained] - by Logic_ - 11.01.2017, 18:05
Re: HeadShot System [Explained] - by iLearner - 11.01.2017, 18:06
Re: HeadShot System [Explained] - by saffierr - 11.01.2017, 18:08
Re: HeadShot System [Explained] - by RyderX - 11.01.2017, 18:32
Re: HeadShot System [Explained] - by PhoneixViper - 11.01.2017, 18:55
Re: HeadShot System [Explained] - by Gammix - 11.01.2017, 19:06
Re: HeadShot System [Explained] - by iLearner - 11.01.2017, 19:07
Re: HeadShot System [Explained] - by SickAttack - 11.01.2017, 19:27
Re: HeadShot System [Explained] - by iLearner - 11.01.2017, 19:35
Re: HeadShot System [Explained] - by SickAttack - 11.01.2017, 19:48
Re: HeadShot System [Explained] - by saffierr - 12.01.2017, 00:14
Re: HeadShot System [Explained] - by SickAttack - 12.01.2017, 00:28
Re: HeadShot System [Explained] - by saffierr - 12.01.2017, 00:58
Re: HeadShot System [Explained] - by muzammilfreeman - 12.01.2017, 01:01
Re: HeadShot System [Explained] - by Lordzy - 12.01.2017, 11:04
Re: HeadShot System [Explained] - by SyS - 12.01.2017, 11:57
Re: HeadShot System [Explained] - by iLearner - 12.01.2017, 12:39
Re: HeadShot System [Explained] - by Gammix - 12.01.2017, 13:16
Re: HeadShot System [Explained] - by SickAttack - 12.01.2017, 14:11
Re: HeadShot System [Explained] - by Lordzy - 12.01.2017, 14:23
Re: HeadShot System [Explained] - by iLearner - 12.01.2017, 14:27
Re: HeadShot System [Explained] - by GoldenLion - 12.01.2017, 14:32
Re: HeadShot System [Explained] - by SickAttack - 12.01.2017, 14:33
Re: HeadShot System [Explained] - by iLearner - 12.01.2017, 14:42
Re: HeadShot System [Explained] - by GoldenLion - 12.01.2017, 14:45
Re: HeadShot System [Explained] - by saffierr - 12.01.2017, 14:52
Re: HeadShot System [Explained] - by iLearner - 12.01.2017, 15:07
Re: HeadShot System [Explained] - by GhostHacker9 - 20.01.2017, 08:28

Forum Jump:


Users browsing this thread: 1 Guest(s)