return function.
#3

What is it that you require? Please explain more !
EDIT: I guess he needs a stock which returns true/false depending on if the player is in a certain team or not.
If that is it, it's like:

pawn Код:
stock IsPlayerInTeam( playerid, teamid )
{
     if ( GetPlayerTeam( playerid ) == teamid ) return true;
     else return false;
}
This uses GetPlayerTeam And SetPlayerTeam which hardly anyone uses. If you use custom teams, specify them here.
Reply


Messages In This Thread
return function. - by -CyRAX - 30.03.2013, 09:49
Re: return function. - by -CyRAX - 30.03.2013, 10:00
Re: return function. - by RajatPawar - 30.03.2013, 14:45
Re: return function. - by Konstantinos - 30.03.2013, 14:48
Re: return function. - by -CyRAX - 30.03.2013, 16:44
Re: return function. - by Konstantinos - 30.03.2013, 17:03
Re: return function. - by -CyRAX - 30.03.2013, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)