22.01.2010, 18:05
I'm not sure if you can make conditionals that way.
Notice that I'm using a different callback, this way it won't say that if the player ileaving the passenger seat.
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;
}