fail... :O
#3

I'm not sure if you can make conditionals that way.

pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
  if( (newstate==PLAYER_STATE_ON_FOOT) && (oldstate==PLAYER_STATE_DRIVER) )
  {
    new pvehid=GetPlayerVehicleID(playerid);
    new string[256];
    GetPlayerName(playerid,string,sizeof(string));
    if( ( (pvehid==PLANE_LS) || (pvehid==PLANE_SF) || (pvehid==PLANE_LS2) || (pvehid==PLANE_SF2) ) && ( (GetPlayerTeam(playerid)==TEAM_LS) ||(GetPlayerTeam(playerid)==TEAM_SF) ) )
    {
      //Code
    }
  }
  return 1;
}
Notice that I'm using a different callback, this way it won't say that if the player ileaving the passenger seat.
Reply


Messages In This Thread
fail... :O - by `FuTuRe- - 22.01.2010, 17:58
Re: fail... :O - by KnooL - 22.01.2010, 18:02
Re: fail... :O - by Joe Staff - 22.01.2010, 18:05
Re: fail... :O - by `FuTuRe- - 22.01.2010, 18:08
Re: fail... :O - by Joe Staff - 22.01.2010, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)