14.11.2010, 16:34
Try this, it should work:
pawn Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new c = 0; c < sizeof(StarsCars); c++)
{
if(vehicleid == StarsCar[c])
{
if(team[playerid] != 6)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,GREEN,"You're not S.T.A.R.S.");
break;
}
}
}
return 1;
}